WordPress.org

Ready to get started?Download WordPress

Forums

Single Custom Post Type Displaying as Part of Main Blog (2 posts)

  1. subpopular
    Member
    Posted 3 years ago #

    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".

  2. richarduk
    Member
    Posted 3 years ago #

    Off the top of my head:

    Have you resaved permalinks, checked .htaccess is rewritable?

    Have you set the new post type to be hierarchical?

    Have you disabled the plugin temporarily?

Topic Closed

This topic has been closed to new replies.

About this Topic