Welcome to Web Hosting Forum - Net Hosting Talk

Register now and be part of our community! When you register with the Net Hosting Talk you can join in with topics, start new topics, and generally be a part of the first level of our community. It's also quick and totally free, so what are you waiting for?

How to show empty categories in the WordPress category widget


Reaction score
Hi all,

By default, WordPress does not show empty categories in the category widget, but some times when, especially as a developer, you need to show categories, even if they are "still" empty.

Well, It is very easy to show the categories in the widget, you just have to add this code into the functions.php file of your theme.
You don't have permission to view the spoiler content. Log in or register now.

That’s all, you can now drag and drop categories widget to any sidebar or widget ready area on your WordPress site. The category widget will now display empty categories as well.