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!):

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright © James Clark
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram