I’m using wp_list_categories to pull in a list of custom taxonomy terms into a sidebar. The terms (named ‘Keywords’) are being pulled in with the following code:
<?php wp_list_categories('taxonomy=keywords&hide_empty=1&show_count=1&title_li='); ?>
The problem is that the function is counting posts that are currently marked with a ‘draft’ publish status. These posts are showing in the count figures so the ‘hide_empty’ parameter is not working as expected.
Has anyone else had the same problem? is there a workaround or a fix out there?
- The topic ‘Draft posts being counted by wp_list_categories’ is closed to new replies.