I have a custom post type named ‘Volunteer Openings’ and I’m using a custom page template called “Volunteer” to display a list of those custom posts. The volunteer page is a child of another page called “Get Involved”. Everything works fine when I go to /get-involved/volunteer/ – all my volunteer openings are listed.
The problem is when I click on one of the posts, it takes me to volunteer-openings/custom-post-title instead of get-involved/volunteer/custom-post-title. I also have a breadcrumb plugin and current nav styling that shows the single custom post being listed under my “Recent News” section – which I use for the main blog.
I’ve tried changing the rewrite slug on the custom post type to match the permalink structure but no matter what, whenever I display a single custom post it shows the page as being a child of the Recent News section, instead of being a child of “Volunteer”.