#2710 closed defect (bug) (fixed)
list_cats / wp_list_cats: hide_empty does not hide cats with non-empty sub-cats
| Reported by: | janX | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.3 |
| Component: | Template | Version: | 2.0.2 |
| Severity: | normal | Keywords: | list_cats wp_list_cats hide_empty |
| Cc: | Focuses: |
Description
I'd like for the hide_empty options in list_cats and wp_list_cats to NOT hide categories which are empty, but that have sub-categories that have posts in them. Looking at the code it is obvious why this happens (template-functions-category.php, line 322). I have a fix for this, though.
Attachments (1)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Diff to release version 2.0.2 of the file