Relative Content

Tag Archive for wordpresscustom-post-type

WordPress Custom Post Type not allowing Parent/Child pages

Quite stuck on this one. I have a CPT set up and it’s working just fine, except for one small issue. The ‘Parent’ select box does not show up under the ‘Page Attributes’ meta box. I’ve checked and rechecks, so I unless I am missing something really obvious, I am at a loss as to why this is happening. Here’s the code:

Show “Add New” button only for current CPT

I made a custom CPT “Blog” and disabled the standard “Posts” CPT. However, when I’m on a Blog single or archive page, the “Add New” button lets me create a Post, not a Blog which is problematic because my client will create a post and then not be able to find it. When I hover over it gives me all the options of post types to add a post in.