[wp-trac] Re: [WordPress Trac] #3371: Request for additional
$before and $after parameters to wp_list_cats()
WordPress Trac
wp-trac at lists.automattic.com
Sun Nov 19 12:19:31 GMT 2006
#3371: Request for additional $before and $after parameters to wp_list_cats()
-------------------------+--------------------------------------------------
Reporter: vdzhuvinov | Owner: westi
Type: enhancement | Status: assigned
Priority: low | Milestone: 2.1
Component: Template | Version: 2.0.5
Severity: trivial | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Changes (by westi):
* status: new => assigned
* owner: anonymous => westi
Comment:
We can easyily add wp_list_bookmarks alike $before and $after support to
wp_list_categories in trunk (wp_list_cats is deprecated).
However, for now you may be able to get what you want by adding style=none
to the arguments for the function call.
The before and after li tags are toggled by this:
http://trac.wordpress.org/browser/trunk/wp-includes/category-
template.php#L231
{{{
if ( $title_li && 'list' == $style )
$output = '<li class="categories">' . $r['title_li'] . '<ul>';
}}}
And
http://trac.wordpress.org/browser/trunk/wp-includes/category-
template.php#L250
{{{
if ( $title_li && 'list' == $style )
$output .= '</ul></li>';
}}}
I'll add the before and after support to my todo list.
--
Ticket URL: <http://trac.wordpress.org/ticket/3371#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list