I have a custom post type djs
and a custom taxonomy city
with two terms: boston
and nyc
. So a DJ can either be tagged as Boston or NYC.
DJ profiles (a single djs
post) are located at /nyc-wedding-dj/joe-shmoe/
, for example, or for a Boston DJ, /boston-wedding-dj/jane-doe/
. In other words, the rewrite slug for that custom post type is set as %city%-wedding-dj
.
I have two regular pages called /boston-wedding-djs/
and /nyc-wedding-djs/
(note the plural DJs with an s) where I use a custom page template to loop through the DJs from the corresponding city and display a list of links to DJ Profiles from that page's city.
What I would like to do is to have the rewrite slug be %city%-wedding-djs
so that the custom post type single pages "appear" (at least to google) as child pages of those pages mentioned above.
There's a conflict however, that when I change the rewrite slug for the custom post type djs
to %city%-wedding-djs
, I get a 404 Not Found error for the pages /boston-wedding-djs/
and /nyc-wedding-djs/
.
How can I have a rewrite slug with the same name as a page?
/post-types/
is a Page with a nice overview, then/post-type/xyz/
is the specific details about thexyz
post-type
- never had SEO issues with it; both come up forpost-type
Google searches – Peepul