Show all wordpress categories with no posts

If you would like to show all of the categories on a wordpress site even if they have no posts, here’s what to do…

There’s an argument called hide_empty which is true by default.

File Location is: wp-includes/category-template.php

Look of this code and change from true to false

$args = array(‘hide_empty’ => FALSE);
wp_list_categories($args);

Also look for ‘hide_empty’ =>1 and change to ‘hide_empty’ =>0

 

Bookmark & Share
Featured Products
  • G001
Sponsors
Best Sellers
Recommended
  • S002