How to set static page as parent of Custom Post Type page
-
I’m currently working on an animal rescue site (built with Headway v.3.5.5) that has animals available to sponsor on a monthly basis, as well as animals available to adopt.
I’ve created 2 custom post types, one is animals-adopt and one is animals-sponsor, to showcase individual animals.
I’ve already figured out how to list the animals available for adoption on my static Adoptions page, and list the animals available to sponsor on the static Sponsorship page.
Here’s where I’m stuck. I want the static Adoptions and Sponsorship pages to be assigned as the parent pages for my respective custom post type single pages.
Right now, when someone clicks through on one of the animals listed on the static page to open the single CPT page, the breadcrumb navigation on the CPT page shows the Home page as the parent page of the CPT and not one of the respective static pages I’ve mentioned.
It shows: Home > Fluffy
I want it to show: Home > Our Work > Adoptions > FluffyI’ve tried to figure out a way to set a static page as a parent page for the custom post type in the page editor, but there is no metabox that allows for a static page to be a parent of a custom post type – it only allows another custom post type to be a parent of a CPT page.
I’ve tried timstl and ipixelsmediaworks’s suggestions from this page https://www.ads-software.com/support/topic/custom-post-type-parent (adding them to functions.php with the appropriate customizations) to no avail.
I’ve spent almost a week researching to try to figure this out. Anything else I’ve found in www.ads-software.com forums is either unresolved or closed to new replies.
Can anyone help me?
- The topic ‘How to set static page as parent of Custom Post Type page’ is closed to new replies.