How to remove CPT archive item/link from trail
-
Hi!
I am using your plugin more and more and loving it but I’ve now run in a little snag on a site I’m subcontracting on. The designer has created a “page” hierarchy where I have custom post types “under” normal pages. That usually works great with your plugin with the “Solution Root Page” setting.
But in this case, the real page the CPT is under has the same name as the CPT so the trails looks like it shows them twice:
https://integrim.zonew3.com/solutions/our-solutions/?by=solutions_industries
The first “Solutions” link points to the root page /solutions/ (which is automatically redirected to a child page… don’t ask ?? and the second to the CPT archive (/solutions/our-solutions/). I would like to remove the /our-solutions/ part. Also, in this particular CPT, I’m not using the normal archive but I use the archive template to show a specific taxonomy (of two) depending on the link clicked in the menu or a default if visitors end up on the CPT archive.
It’s weird but it works except for the breadcrumb trail. I’ve been looking at your plugin’s hooks and filters but I have no idea which one I might use or how to code it as your docs have no code examples I could find.
I would really appreciate any help or guidance you could give me on this.
Thank you!
- The topic ‘How to remove CPT archive item/link from trail’ is closed to new replies.