Hierarchical custom post type help needed
-
I have a site in development with an interesting custom post type arrangement. So far, I haven’t found a way to get Breadcrumb NavXT to do what I want, I was hoping someone could help.
The site has the following post types: page, post, private-page, private-post
The titles should be self-explanatory, the “private” versions of page and post are CPTs that are only accessible to logged in visitors. I set it up this way to simplify administration for my client, since the entire “private” section has it’s own complex sitemap in addition to the public sitemap.
The private-page CPT is hierarchical and the root is set to a page called “members”. The private-post CPT is non-hierarchical and the root should be under the private-page called “news”.
Example private-page: https://example.com/members/resources/handbook
Example private-post: https://example.com/members/news/single-private-postProblem 1: NavXT doesn’t seem to respect the hierarchy of my private-page CPT. With the example private page, where members is the root, and resources and handbook are the hierarchical CPT. Logically, the breadcrumb trail should be Home | Members | Resources | Handbook.
Instead I get Home | Members | Handbook. NavXT doesn’t seem to respect the CPT hierarchy. Is this the expected behavior or is something wrong with my config?
Problem 2: I need to set a private-page as the root for my private-post CPT, but NavXT doesn’t have an admin feature to support this. Is there a simple bit of code to enable this?
Thanks for your help! I love this plugin and have used it a few times now.
Cheers,
Dalton
- The topic ‘Hierarchical custom post type help needed’ is closed to new replies.