0

I'd like to count the number of posts created for every category, so:

12 Works (12 posts in works category)
36 Pictures (36 posts in pictures category)
17 Furnitures (17 posts in furnitures category)

How can I do that?

3

You can use wp_list_categories() function and set show_count to 1 (true) http://codex.wordpress.org/Template_Tags/wp_list_categories

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.