Wordpress/Adding category posts numbers

asked Aug 10, 2012 in Website Builder by SaraSX (2,770 points)
I have a wordpress blog, and I want to add the number of posts for each category after category name in the function itself. Does anyone know how to do this?

Thanks in advanced

1 Answer

0 like 0 dislike
answered Aug 10, 2012 by WebProX (12,200 points)
This code should do it
<?php echo $category->name.'(' . $category->count. ')'; ?>