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'
)
));
The parent select option will show only if you have at least 1 entry for this custom type.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With