Incorrect breadcrumbs/permalinks when CPT parent is static page
-
I’m currently working on an animal rescue site 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.
In the main settings for each CPT, I’ve set the Post Relationship as Parent: Page.
On the individual custom post pages, in the Fields Table metabox where it says This CPT belongs to, I’ve set the “Sponsor” or “Adoptions” static pages as the parent page for each custom page.
My problem is that the breadcrumbs and permalinks aren’t displaying correctly.
On the front end for user experience, what I’m trying to achieve is:
Desired URL structure: http:___.ca/our-work/adoptions/fluffy
Desired breadcrumb path: Home > Our Work > Adoptions > Fluffy(Adoptions is the static parent page, Fluffy is the single CPT page)
However, what I have is:
Problem URL structure: http:___.ca/animals-adopt/fluffy
Problem breadcrumb path: Home > FluffyAlso, when I try the “quick edit” option for each custom post, the Parent shows as Main Page (no parent) rather than the static page I’ve assigned as the parent.
What am I missing here? Have I skipped a few required steps?
- The topic ‘Incorrect breadcrumbs/permalinks when CPT parent is static page’ is closed to new replies.