[wp-trac] [WordPress Trac] #16587: wp_list_categories hide_empty counts unpublished posts
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 18 02:55:11 UTC 2011
#16587: wp_list_categories hide_empty counts unpublished posts
---------------------------+-----------------------------
Reporter: grandslambert | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
---------------------------+-----------------------------
The template tag '''wp_list_categories()''' has an option to
''hide_empty'', however, this only hides categories that have no posts, no
just no ''published'' posts. The result is that categories with only posts
that are draft or pending show on the front end, and the links go to blank
pages. It would be better if this argument for the tag would display only
categories with published posts.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16587>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list