• 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)
Viewing 4 replies - 1 through 4 (of 4 total)

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