[wp-trac] [WordPress Trac] #2922: wp_list_cats() doesn't show
categories with empty parents
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 6 11:25:10 GMT 2006
#2922: wp_list_cats() doesn't show categories with empty parents
----------------------+-----------------------------------------------------
Reporter: ketsugi | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: Template | Version: 2.1
Severity: normal | Keywords:
----------------------+-----------------------------------------------------
I'm using the Sidebar Widgets plugin. The issue here is with the
Categories widget, which according to my settings makes this function
call:
`wp_list_cats("sort_column=name&optioncount=1&hierarchical=1")`
I have three categories with posts: two are top-level ("Blog" and
"Software") and another is a child ("Software" --> "Plugins").
If "Plugins" has posts, but "Software" has no posts, the wp_list_cats
function call ''only'' shows the "Blog" category. "Plugins" is not shown
despite having posts within it.
--
Ticket URL: <http://trac.wordpress.org/ticket/2922>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list