我想显示父选择,以便我可以选择父以进行布局。
这在 WordPress 论坛中没有得到回答。它可能是一个缺失或即将到来的功能。有没有人让这个工作?
register_post_type('foo', array(
    'hierarchical' => true,
    'labels' => array(
        'name' => 'Foo',
        'singular_name' => 'Foo'
    ),
    'public' => true,
    'supports' => array(
        'title', 'editor', 'author', 'page-attributes'
    )
));