Two Custom Post Types in Permalink + Duplicate Slugs Issue


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:


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:


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?

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

Leave an answer