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 a situation that I thought WordPress handled, but I seem to have a misunderstanding about how it works.

Posts of the same name, under different custom post types, are auto incrementing.

I thought wordpress would handle /post-type-red/about and /post-type-blue/about as unique, but in with the post that I enter later, WP auto increments that post number.

Is my understanding wrong here of how this should work?

share|improve this question

You could potentially have all permalinks use only the post_name (as many do, for SEO purposes), so therefore it must be unique across all types.

share|improve this answer
Thanks Biranit. I currently have /%postname%/ set for permalinks. I think that WordPress, needs to have the actual "slug" be a unique value, regardless of the preceeding structure. I never knew that to be the case until this project I'm working on. A Child and parent page structure will give me what I want, but I need to have custom post types for this to work as expected. – Alex V. Oct 3 '12 at 18:21
This is correct, it not about seo, it's about how WordPress stores the data in the database. You basically cannot have duplicate slugs for posts, categories or anything, there are trac tickets to fix this because at one point way back it was possible. – Wyck Feb 6 '13 at 4:28

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.