#4601 closed enhancement (wontfix)
Add extra formatting parameters to wp_list_categories
Reported by: | Otto42 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.2.1 |
Component: | Taxonomy | Keywords: | needs-refresh 2nd-opinion |
Focuses: | template | Cc: |
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 (20)
#2
@
17 years ago
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>';
#6
@
17 years ago
- Milestone changed from 2.6 to 2.7
- Owner changed from anonymous to thee17
- Status changed from new to assigned
#9
@
16 years ago
- 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
#11
@
14 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
#14
@
9 years ago
- Keywords 2nd-opinion added; has-patch needs-testing removed
I've looked that patch that add that content before and after but I can see that in the meanwhile that function have the style
parameter that able the user to choose if he wants a html list or not.
So I think that we can consider obsolete.
I'm gonna write a patch tomorrow for this.