Ticket #4601 (new enhancement)

Opened 1 year ago

Last modified 2 months ago

Add extra formatting parameters to wp_list_categories

Reported by: Otto42 Assigned to:
Priority: low Milestone: 2.7
Component: Template Version: 2.2.1
Severity: normal Keywords: has-patch dev-feedback 2nd-opinion
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

4601 patch.patch (1.4 kB) - added by thee17 on 03/01/08 22:57:17.
adds $before $after $link_before and $link_after

Change History

02/27/08 00:11:23 changed by thee17

  • owner changed from anonymous to thee17.
  • status changed from new to assigned.

I'm gonna write a patch tomorrow for this.

03/01/08 22:57:17 changed by thee17

  • attachment 4601 patch.patch added.

adds $before $after $link_before and $link_after

03/01/08 23:01:21 changed by thee17

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>';

03/01/08 23:01:55 changed by thee17

  • keywords set to has-patch dev-feedback 2nd-opinion.

03/04/08 13:58:22 changed by thee17

  • owner changed from thee17 to anonymous.
  • status changed from assigned to new.

03/19/08 03:13:51 changed by thee17

  • milestone changed from 2.5 to 2.6.

06/25/08 03:01:59 changed by thee17

  • owner changed from anonymous to thee17.
  • status changed from new to assigned.
  • milestone changed from 2.6 to 2.7.

07/20/08 00:02:17 changed by thee17

  • owner deleted.
  • status changed from assigned to new.