[wp-trac] [WordPress Trac] #12659: Hierarchical Taxonomy URL's do not include parent terms

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 24 12:40:23 UTC 2010

#12659: Hierarchical Taxonomy URL's do not include parent terms
 Reporter:  dd32         |       Owner:  dd32                   
     Type:  enhancement  |      Status:  assigned               
 Priority:  normal       |   Milestone:  3.1                    
Component:  Taxonomy     |     Version:  3.0                    
 Severity:  normal       |    Keywords:  has-patch needs-testing
Changes (by dd32):

  * keywords:  needs-patch => has-patch needs-testing


 > attachment 12659.diff  added

  * Initial run
  * Non-optimized
   * Causes multiple repeditive queries (May just be showing that Taxonomy-
 related queries are not always cached)
  * Implements Canonicalisation as well

 In order to test this, you'll need to register a taxonomy as such, AND
 flush your rewrite rules:
         register_taxonomy('state', array('post'), array('hierarchical' =>
 true, 'hierarchical_uri' => true, 'label' => 'States', 'singular_label' =>
 'State', 'show_ui' => true, 'query_var' => 'state', 'rewrite' => true) );
         global $wp_rewrite;

 URL previously: http://localhost/wordpress-commit/state/kyogle/ After:

Ticket URL: <http://core.trac.wordpress.org/ticket/12659#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list