• Resolved twilitegxa

    (@twilitegxa)


    I have the following code that lists my categories:

    <ul>
    					<?php wp_list_categories('title_li=<h3 class="widget-title">' . __('Topics', 'yoko') . '</h3>'); ?>
    				</ul>

    But I want to add in the option to get the number of posts within each category:

    show_count=1

    How can I add it to the current function? Everything I have tried either shows the number of posts and not the custom h3 tag, or vise versa. Can anyone help?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Michael

    (@alchymyth)

    <ul>
    		<?php wp_list_categories('title_li=<h3 class="widget-title">' . __('Topics', 'yoko') . '</h3>'.'&show_count=1'); ?>
    				</ul>
    Thread Starter twilitegxa

    (@twilitegxa)

    It worked! Thank you soooo much!!!!

    wprock

    (@wprock)

    can you provide your site link?

    Thread Starter twilitegxa

    (@twilitegxa)

    Sorry, I had just put it in the wrong place. Sorry about the confusion!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Adding count to category list’ is closed to new replies.