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 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 (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 (animals-adopt is the CPT slug)
Also, when I try the "quick edit" option for each single CPT page, the Parent shows as Main Page (no parent) rather than the static page I've assigned as the parent.
In the Edit Custom Post Type settings for animals-adopt, I tried the Use a custom URL format option, and put /our-work/adoptions/ in there. The internal links are coded correctly, but when I click through from the link on the static Adoptions page to the http:___.ca/our-work/adoptions/fluffy page, I get a 404 error.
What steps am I missing here?