I have created two custom post types, each with it's own slug. Each custom post type contains some articles with the same title.

So ideally I would have . .



Instead I get . . .


customposttype2/mainarticle2/ <-- with the extra 2 on the end

The permalinks are set to "postname".

Any help would be appreciated.

1 Answer 1


This is normal WordPress behaviour. Any time it detects that a slug is a duplicate - regardless of post-type or parents or categories - it will append a number to differentiate the newer version. As far as I know, there is no way to override this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.