Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14655 reviews 1734 hosting providers

Questions & Answers

Wordpress/Adding category posts numbers

Aug 10, 2012 by SaraSX
Hi,
 
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 votes
Aug 10, 2012 by WebProX
This code should do it
<?php echo $category->name.'(' . $category->count. ')'; ?>