[wp-trac] [WordPress Trac] #11162: Order in wp_list_categories

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 17 13:19:20 UTC 2009


#11162: Order in wp_list_categories
----------------------------+-----------------------------------------------
 Reporter:  bi0xid          |       Owner:                 
     Type:  task (blessed)  |      Status:  new            
 Priority:  low             |   Milestone:  2.9            
Component:  General         |     Version:  2.9            
 Severity:  minor           |    Keywords:  list categories
----------------------------+-----------------------------------------------
 Now, if you want a custom order when listing categories, you must write a
 list of calls to wp_list_categories() with different includes.

 {{{
 <?php wp_list_categories('show_count=0&title_li=&include=84'); ?>
 <?php wp_list_categories('show_count=0&title_li=&include=23'); ?>
 <?php wp_list_categories('show_count=0&title_li=&include=174'); ?>
 <?php wp_list_categories('show_count=0&title_li=&include=175'); ?>
 }}}


 Maybe we could do a custom order which reads the include order:

 {{{
 <?php
 wp_list_categories('show_count=0&title_li=&orderby=include_order&include=84,23,174,175');
 ?>
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11162>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list