Opened 7 years ago
Closed 7 years ago
#3015 closed defect (bug) (fixed)
wp_list_cats doesn't hide category with only a future post
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1 |
| Component: | Administration | Version: | 2.0.4 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I have a futurepost in the category 'rugby' - it is the only post in this category.
There is no published post already posted in that category with a date before now.
On
http://www.murky.org/blg/category/sport/
wp_list_cats shows a link to the 'rugby' category, despite no posts being available. This makes for a broken link.
Here is the relevant code:
{{{ <?php
$query='sort_column=name&hide_empty=true&child_of=' . $cat;
wp_list_cats($query);
?>}}}
Change History (4)
- Version set to 2.0.4
I can confirm this problem using WP 2.0.4 and list_cats(). A user has reported me the problem since I am using list_cats() in my plugin Category Tagging.
Note: See
TracTickets for help on using
tickets.

Which version of WordPress? I think this is fixed in 2.1. Need to verify.