BUG: category with no content but children with content counts as empty
-
If you have a category that in and of itself, has no posts. But has child categories that have posts and you do a wp_list_cats(‘hide_empty=1’).. the parent category gets hidden.
This seems like a bug to me, as the children have content.
So forexample if you do something like this;
wp_list_cats('sort_column=name&hide_empty=0&children='.((isset($_REQUEST['cat']))?$_REQUEST['cat']:'0'));
Which will display categories, but only the children of the category you’re in.. and you flip hide to 1, suddenly the parent category will be hidden.. this is wrong.
Thoughts?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘BUG: category with no content but children with content counts as empty’ is closed to new replies.