How to Show Empty Categories in WordPress 2.7
Here’s an update of how to show empty categories using the default Category widget in WordPress 2.7. My previous post was for pre-2.7 WordPress sites, this update is still simple; actually it’s easier since WordPress switched to using an array for the category arguments.
In your includes/widget.php file around line 1090, change this line:
$cat_args = array(‘orderby’ => ‘name’, ‘show_count’ => $c, ‘hierarchical’ => $h);
to:
$cat_args = array(‘orderby’ => ‘name’, ‘show_count’ => $c, ‘hierarchical’ => $h, ‘hide_empty’ => ’0′);
Click here to see the hack for pre-2.7 versions.
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.

Comments
Leave a comment Trackback