[wp-trac] Re: [WordPress Trac] #9269: Proper handling of custom taxonomy in query

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 3 22:12:24 GMT 2009


#9269: Proper handling of custom taxonomy in query
--------------------------+-------------------------------------------------
 Reporter:  dfellars1     |       Owner:  ryan                      
     Type:  defect (bug)  |      Status:  new                       
 Priority:  normal        |   Milestone:  Unassigned                
Component:  Permalinks    |     Version:  2.7.1                     
 Severity:  normal        |    Keywords:  taxonomy wp_queried_object
--------------------------+-------------------------------------------------

Comment(by dfellars1):

 Not sure I understand your comment.  I don't think we are on the same
 page.

 Some more clarification:  I am using the 'custom taxonomy' plugin to
 handle any new custom taxonomies.  This handles adding the custom rewrite
 rule for me (via add_permastruct) - so it is there.  Everything works as
 expected if there is a post associated with a custom term taxonomy.  Its
 just when there are no posts associated with that term where this issue
 introduces itself.

 Wordpress already makes the taxonomy structure public by default -
 apparently just not that many people use it :)

 I just want to fix the scenario for when a custom term taxonomy does not
 have any posts associated with it to not return a 404, but to go through
 proper template loading procedures (i.e. check for
 taxonomy-$taxonomy-$term.php, then taxonomy-$taxonomy.php, then
 taxonomy.php) instead of returning a 404 in this scenario.  Especially
 since that is how categories work.

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


More information about the wp-trac mailing list