Creating custom taxonomy / custom cpt / permalink URL with same permalinks
I have been playing with trying to define a custom taxonomy, tied to custom post type with the same permalink with success. So for example – say I have a taxonomy called “region” and a cpt called “job”, in an ideal world I’d be able to define URL’s as such:
/region/job/permalink
For a given region, there will only ever be one job. So ideally I could make something like this:
/us/mechanic/master-technician
/de/mechanic/master-technician
I’ve gotten as far as getting the /region/job/ portion working fine, but where things break down is I see no way for them to share the same permalink. Everytime I try, WordPress just appends a -2 or whatever the iteration is.
Is this just impossible within’ the same post type?
Thank you.
Leave an answer