Additional Styling to Category List
I’m currently using
<?php wp_list_categories('orderby=name&show_count=1&hierarchical=0&title_li='); ?>to output my categories list into my sidebar. I’m wanting to modify the style slightly so that when the list of cats is outputted into each
<li></li>the total number of posts within that category is outputted next to it. It seems that the count is outside of the
<a></a>block element during output. I’ve been searching through the codex, support forums and even looked into hacking up the function that is outputting the code itself and I cannot find a resolution.
Currently the output is as such:
and I want it to appear as:
so on and so forth, I checked into my style, tried everything I can think of .. any assistance is appreciated.
- The topic ‘Additional Styling to Category List’ is closed to new replies.