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

WordPress Trac noreply at wordpress.org
Sun Jun 29 00:27:15 UTC 2014


#18962: Allow duplicate slugs for different content
-------------------------------------------------+-------------------------
 Reporter:  maorb                                |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Rewrite Rules                        |  Release
 Severity:  normal                               |     Version:
 Keywords:  needs-unit-tests has-patch needs-    |  Resolution:
  testing                                        |     Focuses:
-------------------------------------------------+-------------------------

Comment (by trymedo):

 Replying to [comment:24 johnbillion]:
 > Looks like I never posted it on this ticket;
 [https://github.com/johnbillion/allow-duplicate-slugs here's a plugin
 which allows duplicate slugs across post types].

 The plugin only seems to allow you to specify duplicate slugs, but if you
 have the following permalink structure you only seem to be able to view
 one post (I presume it's the post with the highest/lowest ID)

 {{{
 /%category%/%postname%/
 }}}

 A site I've recently migrated has multiple posts that have the same slug,
 but they are all within separate categories so I originally assumed it
 would be ok.

 Is there a way to get this to work? Maybe a hook into the
 'template_redirect' action or something?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/18962#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list