Tosmomiaccils
New Member
This is my current code\[code\]<ul class="navigation"><li><a href="http://wordpress.stackexchange.com/">Blog Home</a></li><? wp_list_categories('show_count=1&title_li=&orderby=name');?><li><a href="http://wordpress.stackexchange.com/">Back to Site</a></li></ul>\[/code\]It displays:\[code\]<ul class="navigation"><li><a href="http://wordpress.stackexchange.com/">Blog Home</a></li><li class="cat-item cat-item-1"><a href="http://wordpress.stackexchange.com/questions/77330/blog/category/uncategorized/" title="View all posts filed under Uncategorized">Uncategorized</a> (1)</li>\[/code\]I want my it like \[code\]<li><a href="http://wordpress.stackexchange.com/questions/77330/blog/category/uncategorized/" title="View all posts filed under Uncategorized">Category Name (11)</a></li>\[/code\] I want the post count inside the LI and not inside the anchor.I tried:\[code\]<?php$list = wp_list_categories('show_count=1&title_li=&echo=0&orderby=name');$list = str_replace( "</a> (", " (", $list );echo $list?>\[/code\]But it executes this HTML:\[code\]<ul class="navigation"><li><a href="http://wordpress.stackexchange.com/">Blog Home</a></li><li class="cat-item cat-item-1"><a title="View all posts filed under Uncategorized" href="http://wordpress.stackexchange.com/questions/77330/blog/category/uncategorized/">Uncategorized (1)</a></li><a title="View all posts filed under Uncategorized" href="http://wordpress.stackexchange.com/questions/77330/blog/category/uncategorized/"></a><li><a title="View all posts filed under Uncategorized" href="http://wordpress.stackexchange.com/questions/77330/blog/category/uncategorized/"></a><a href="http://wordpress.stackexchange.com/">Back to Site</a></li></ul>\[/code\]Notice it creates an extra \[code\]<a\[/code\] anchor. WordPress is a nice platform but it is quite frustrating working with it. The documentation is incredibly helpful however to my knowledge this will require an edit of the core /wp-includes type files?