5

我想显示父选择,以便我可以选择父以进行布局。

这在 WordPress 论坛中没有得到回答。它可能是一个缺失或即将到来的功能。有没有人让这个工作?

register_post_type('foo', array(
    'hierarchical' => true,
    'labels' => array(
        'name' => 'Foo',
        'singular_name' => 'Foo'
    ),
    'public' => true,
    'supports' => array(
        'title', 'editor', 'author', 'page-attributes'
    )
));
4

1 回答 1

4

仅当您对此自定义类型至少有 1 个条目时,才会显示父选择选项。

于 2012-04-19T08:08:58.463 回答