[wp-trac] [WordPress Trac] #9025: wp_list_categories lacks the vital options of wp_get_archives

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 3 04:51:45 GMT 2009


#9025: wp_list_categories lacks the vital options of wp_get_archives
--------------------------+-------------------------------------------------
 Reporter:  jidanni       |       Owner:  anonymous
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  2.8      
Component:  Template      |     Version:  2.7      
 Severity:  normal        |    Keywords:           
--------------------------+-------------------------------------------------
 To achieve
 {{{
 Archives: 2004 (2); 2003 (1); Categories: Elections (1); Iraq (1);
 }}}
 One needs
 {{{
 <p>Archives:<?php
 wp_get_archives('format=custom&show_post_count=1&type=yearly&after=;'); ?>
 Categories:<?php echo str_replace('<br />',';',
 wp_list_categories('style=&show_count=1&echo=0'));?></p>
 }}}
 As you see, wp_list_categories lacks the vital options of
 wp_get_archives, forcing us to resort to str_replace.

 Note: I am talking about HTML and do not wish to talk about CSS.

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


More information about the wp-trac mailing list