[wp-trac] [WordPress Trac] #16832: Trouble if the slug of a custom taxonomy is the same as the url of page/post

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 11 20:12:19 UTC 2011


#16832: Trouble if the slug of a custom taxonomy is the same as the url of
page/post
---------------------------+------------------------------
 Reporter:  LucasHantz     |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Rewrite Rules  |     Version:  3.1
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |
---------------------------+------------------------------

Comment (by sterlo):

 Replying to [comment:3 scribu]:
 > @sterlo: That's different. First of all, WP always gives way to actual
 files. Secondly, WP doesn't have a taxonomy index, so /agency/ would
 return a 404 anyway.

 WordPress by "Default" does not have a taxonomy index.

 You can add it and it won't return a 404.

 If he tries to get to page www.example.com/agency <- by default the page
 would show.

 If he tries to go to www.example.com/agency/john-smith <- by default the
 taxonomy shows.

 He could make www.example.com/agency point to the taxonomy still or
 whatever he wants it to point to for that matter - a file/page/taxonomy
 etc.

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


More information about the wp-trac mailing list