[wp-trac] [WordPress Trac] #11838: Add hierarchical taxonomies to the Menu bar

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 2 19:14:55 UTC 2010


#11838: Add hierarchical taxonomies to the Menu bar
----------------------------+-----------------------------------------------
 Reporter:  dd32            |       Owner:  dd32     
     Type:  task (blessed)  |      Status:  accepted 
 Priority:  normal          |   Milestone:  3.0      
Component:  Taxonomy        |     Version:  3.0      
 Severity:  normal          |    Keywords:  has-patch
----------------------------+-----------------------------------------------
Changes (by jfarthing84):

 * cc: jeff@… (added)


Comment:

 A couple of functions need to be adapted, or new functions added to cater
 to our hierarchical (and non-hierarchical) taxonomies, namely
 wp_list_categories() and its corresponding Walker_Category class. If you
 use either of these, you'll notice that they only generate links for
 categories (e.g. ?cat=12).

 We need to alter wp_list_categories() to accept a 'taxonomy' argument
 (just as wp_dropdown_categories() has been adapted). Also, the
 Walker_Category class needs to use get_term_link() instead of
 get_category_link() for any term that is not a category.

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


More information about the wp-trac mailing list