Does WordPress consider a post name unique if that same post name is in multiple Post Types?

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.

Read More

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?

Related posts

Leave a Reply

1 comment

  1. 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.