Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'hierarchical' => true not bringing up the parent selector

I want to display the parent select so I can select the parent for layout purposes.

This was un answered in the WordPress forum. It may be a missing or coming feature. Has anyone got this to work?

register_post_type('foo', array(
    'hierarchical' => true,
    'labels' => array(
        'name' => 'Foo',
        'singular_name' => 'Foo'
    ),
    'public' => true,
    'supports' => array(
        'title', 'editor', 'author', 'page-attributes'
    )
));
like image 700
Dean Oakley Avatar asked Oct 09 '22 01:10

Dean Oakley


1 Answers

The parent select option will show only if you have at least 1 entry for this custom type.

like image 79
soju Avatar answered Oct 18 '22 07:10

soju