[wp-trac] [WordPress Trac] #18962: Allow duplicate slugs for different content

WordPress Trac wp-trac at lists.automattic.com
Sun Oct 16 18:02:35 UTC 2011


#18962: Allow duplicate slugs for different content
---------------------------+------------------------------
 Reporter:  maorb          |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Rewrite Rules  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:                 |
---------------------------+------------------------------

Comment (by johnbillion):

 Hmm, I thought you could have the same slug across multiple most types,
 but I've just tested it and evidently you can't. Maybe this is a
 regression?

 The only case where you can have the same slug for multiple posts is on
 different levels within hierarchical post types. Eg. example.com/hello and
 example.com/sub-page/hello. If this is allowed then it's odd that the same
 slug isn't allowed across post types.

 I've built a plugin for WPML which allows duplicate slugs for the same
 content across languages. If you're interested email me at my username at
 gmail and I'll send it over.

 And just to address your core point, slugs have to remain unique within
 their post type for obvious reasons, so they are uniquely identifiable at
 their URL.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18962#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list