Two Custom Post Types in Permalink + Duplicate Slugs Issue

Question

I’m having some trouble with WP adding those numbers onto the end of my slugs if it thinks it’s a duplicate slug. The issue, though, is that it’s not actually a fully duplicate URL, since I include a separate Custom Post Type post in the URL.

So for example:

/w/CPT-post/a/post

If I make another post of the same name, even if I put it under a different CPT “parent” post, WP is stil thinking it’s a duplicate slug, like so:

/w/CPT-another-post/a/post-2

How can I make WP check the entire URL to see if it’s a duplicate instead of just the slug itself? Or if that’s not possible, how can I properly set up Parent-Child hierarchy for separate Custom Post Types?

0
, , , , Malachi Draven 2 years 2019-11-23T13:09:10-05:00 0 Answers 95 views 0

Leave an answer

Browse
Browse