Title: Adding count to category list
Last modified: August 20, 2016

---

# Adding count to category list

 *  Resolved [twilitegxa](https://wordpress.org/support/users/twilitegxa/)
 * (@twilitegxa)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/adding-count-to-category-list/)
 * 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](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/adding-count-to-category-list/#post-2117218)
 *     ```
       <ul>
       		<?php wp_list_categories('title_li=<h3 class="widget-title">' . __('Topics', 'yoko') . '</h3>'.'&show_count=1'); ?>
       				</ul>
       ```
   
 *  Thread Starter [twilitegxa](https://wordpress.org/support/users/twilitegxa/)
 * (@twilitegxa)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/adding-count-to-category-list/#post-2117270)
 * It worked! Thank you soooo much!!!!
 *  [wprock](https://wordpress.org/support/users/wprock/)
 * (@wprock)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/adding-count-to-category-list/#post-2117271)
 * can you provide your site link?
 *  Thread Starter [twilitegxa](https://wordpress.org/support/users/twilitegxa/)
 * (@twilitegxa)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/adding-count-to-category-list/#post-2117273)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [twilitegxa](https://wordpress.org/support/users/twilitegxa/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/adding-count-to-category-list/#post-2117273)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
