[wp-trac] Re: [WordPress Trac] #2481: Cannot display hierarchical
categories list of all blog's categories (including children)
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 20 14:44:25 GMT 2006
#2481: Cannot display hierarchical categories list of all blog's categories
(including children)
-----------------------+----------------------------------------------------
Id: 2481 | Status: new
Component: Template | Modified: Mon Feb 20 14:44:25 2006
Severity: minor | Milestone:
Priority: normal | Version: 2.0.1
Owner: anonymous | Reporter: kwa1975
-----------------------+----------------------------------------------------
Comment (by MichaelH):
Can't duplicate this problem at 2.0.1 or 2.0.1 alpha1 but I may not
understand the issue.
Using your example
wp_list_cats('hierarchical=1&children=1&child_of=0')
or
wp_list_cats('hierarchical=1&children=1')
or
wp_list_cats('')
returns the same thing--all categories (see Note).
Note: If a parent category has no posts, then neither the parent or its
children will display using the above examples. Using hide_empty=0 would
force them to display.
Interestingly, this returns no categories;
wp_list_cats('hierarchical=1&children=1&child_of=')
--
Ticket URL: <http://trac.wordpress.org/ticket/2481>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list