最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

customization - Custom post-type working except for Selecting page-parent

programmeradmin0浏览0评论

I created a custom post type in functions.php with these values (amongst others):

'hierarchical'        => true,
'supports'            => array( 'title', 'thumbnail', 'revisions', 'page-attributes'),
'capability_type'     => 'page',

I understood this should be the bits needed to get page attributes to offer parent page as a dropdown to make it a child of another page, however all that shows in page attributes is Order with a number box. Have I missed something to get this working? I assume also that if this was working my custom content-type page would be available to choose as the homepage in Settings/Reading ?

发布评论

评论列表(0)

  1. 暂无评论