Make WordPress Core

Opened 14 years ago

Closed 8 years ago

#9025 closed enhancement (fixed)

wp_list_categories lacks the vital options of wp_get_archives

Reported by: jidanni's profile jidanni Owned by: wonderboymusic's profile wonderboymusic
Milestone: 4.4 Priority: normal
Severity: normal Version: 2.7
Component: Taxonomy Keywords: has-patch
Focuses: template Cc:


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.

Attachments (2)

9025.diff (1.0 KB) - added by wojtek.szkutnik 13 years ago.
9025.2.diff (928 bytes) - added by wonderboymusic 8 years ago.

Download all attachments as: .zip

Change History (11)

#1 @jidanni
14 years ago

  • Cc jidanni@… added

#2 @ryan
14 years ago

  • Type changed from defect (bug) to enhancement

#3 @thee17
14 years ago

  • Milestone changed from 2.8 to Future Release

Looks like this will not make it for 2.8 in feature freeze

#4 @wojtek.szkutnik
13 years ago

  • Keywords has-patch needs-testing gsoc added

#5 @wojtek.szkutnik
13 years ago

  • Cc wojtek.szkutnik@… added

#6 @nacin
9 years ago

  • Component changed from Template to Taxonomy
  • Focuses template added

#7 @chriscct7
8 years ago

  • Keywords needs-refresh added; needs-testing gsoc removed

#8 @wonderboymusic
8 years ago

  • Keywords needs-refresh removed
  • Milestone changed from Future Release to 4.4

#9 @wonderboymusic
8 years ago

  • Owner set to wonderboymusic
  • Resolution set to fixed
  • Status changed from new to closed

In 35140:

Taxonomy: in wp_list_categories(), add an arg: separator, to allow the overriding of <br/>.

Props wojtek.szkutnik.
Fixes #9025.

Note: See TracTickets for help on using tickets.