Custom Post Type Parent
-
I am having an issue with the “Current States” and “Parent Pages” on a custom post type.
Here is my setup:
I have created a custom post type (Called Radiologist). Hierarchical is set to “true”. Capability Type is “post”.
In the “Reading Settings”, my “Front Page” is set to be a static page called “Home”. My “Posts” (the blog) page is set to show on a static page called “News”.
I have a third static Page called “Physicians”. When a visitor clicks on “Physicians”, they will see a list of all the radiologists (the radiologists being all the pages created with the new Custom Post Type).
When a visitor clicks on a Radiologist’s name, they go that Custom Post Type.
Here is the issue: WordPress seems to think that The Radiologist’s Parent Page is “News” (the blog page), when I want it to be “Physicians”. So the navigation is not showing “current_page_parent” on the wrong
<li>
.
- The topic ‘Custom Post Type Parent’ is closed to new replies.