Opened 6 years ago
Last modified 3 years ago
#4601 new enhancement
Add extra formatting parameters to wp_list_categories
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | Future Release |
| Component: | Template | Version: | 2.2.1 |
| Severity: | normal | Keywords: | has-patch needs-testing gsoc |
| Cc: | wojtek.szkutnik@… |
Description
The wp_list_categories() function should have the following parameters added to it:
before, after, between, show_description. These would behave much the same as they do in the wp_list_bookmarks() function.
Request for this sort of functionality was made here: http://wordpress.org/support/topic/124374
I think it's a good idea as it further standardizes the wp_list_* functions.
Implementing this would require changes to the wp_list_categories() function, as well as changes to the Walker_Category class to actually perform the output.
Attachments (2)
Change History (13)
- Owner changed from anonymous to thee17
- Status changed from new to assigned
If I could just figure out how to work around the li and ul problem like bookmarks does it then $style could be sent to pasture.
Line 289
$output = ''; if ( $title_li && 'list' == $style ) $output = '<li class="categories">' . $r['title_li'] . '<ul>';
Line 314
if ( $title_li && 'list' == $style ) $output .= '</ul></li>';
- Owner changed from thee17 to anonymous
- Status changed from assigned to new
- Milestone changed from 2.6 to 2.7
- Owner changed from anonymous to thee17
- Status changed from new to assigned
- Keywords needs-patch added; has-patch dev-feedback 2nd-opinion removed
someone should consolidate the various wp_list_* tickets into one per item type, and write a big patch.
patch is broken
- Milestone changed from 2.9 to Future Release
comment:11
wojtek.szkutnik — 3 years ago
- Cc wojtek.szkutnik@… added
- Keywords has-patch needs-testing gsoc added; needs-patch removed
Most of other wp_list_* tickets have been already taken care of

I'm gonna write a patch tomorrow for this.