我想要显示父项选择,这样我就可以出于布局目的选择父项。
这个问题在WordPress论坛上没有得到回答。它可能是一个缺失的或即将到来的功能。有没有人把这个弄好了?
register_post_type('foo', array(
'hierarchical' => true,
'labels' => array(
'name' => 'Foo',
'singular_name' => 'Foo'
),
'public' => true,
'supports' => array(
'title', 'editor', 'author', 'page-attributes'
)
));发布于 2012-04-19 16:08:58
仅当此自定义类型至少有1个条目时,才会显示父选择选项。
https://stackoverflow.com/questions/10223759
复制相似问题