[wp-trac] [WordPress Trac] #13490: Permalinks Issues for Custom Post Types with Parents

WordPress Trac wp-trac at lists.automattic.com
Sun May 23 01:17:42 UTC 2010


#13490: Permalinks Issues for Custom Post Types with Parents
--------------------------+-------------------------------------------------
 Reporter:  mikeschinkel  |       Owner:                   
     Type:  defect (bug)  |      Status:  new              
 Priority:  normal        |   Milestone:  Unassigned       
Component:  Post Types    |     Version:  3.0              
 Severity:  normal        |    Keywords:  reporter-feedback
--------------------------+-------------------------------------------------

Comment(by mikeschinkel):

 Replying to [comment:2 mikeschinkel]:
 > Also, there's another aspect of the ticket I don't think you picked up
 on and that's the strong interest in having URLs that have the same slug,
 i.e. "miami" is the location for all three restaurants in this case:
 >
 > {{{
 > http://example.com/restaurants/johns-seafood/miami/
 > http://example.com/restaurants/marys-ale-house/miami/
 > http://example.com/restaurants/big-jims/miami/
 > }}}
 >
 > Currently WordPress doesn't handle duplicate slugs and wants to make it
 look like this which is sub-optimal for UX:
 >
 > {{{
 > http://example.com/restaurants/johns-seafood/miami/
 > http://example.com/restaurants/marys-ale-house/miami-2/
 > http://example.com/restaurants/big-jims/miami-3/
 > }}}
 >

 '''Point of note, I was wrong about this.  it seems that if you hook
 '`hierarchical_post_type`' and add your custom post types it does the
 trick.'''

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


More information about the wp-trac mailing list