How to list out your WordPress categories with a post count for each

6 January 2019

Recently I shared a snippet of code that will list out your WordPress tags with a post count for each. I should have mentioned that it's easy to adjust this code so that it lists out categories instead of tags. Here's the adjusted snippet:

That gives you something like the following (a live example!):

Subscribe
Notify of
guest
2 Comments
Oldest
Newest
Inline Feedbacks
View all comments
Josh
Josh
1 year ago

How do you do it for a specific category count?

Amit Srivastava
1 month ago

Hi Sir,

Woking fine, thanks.

James Clark
Hi! I'm James Clark and this is my website. Need help with your own website's analytics, SEO, content or ads? Contact me
Copyright © James Clark
2
0
What do you think? Leave a commentx
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram