WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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