Ticket #9 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

wp_list_cats() always shows children categories

Reported by: skippy Assigned to: JasonV
Priority: normal Milestone:
Component: General Version:
Severity: normal Keywords:
Cc:

Description

Documentation for wp_list_cats() in the wiki states:

children - boolean - TRUE or FALSE; Whether you want to hide or show the children of the main categories (top categories only)

When set to "children=FALSE", the only appearant difference is that children categories are output, they're just not nested in the display.

Change History

06/11/04 08:05:31 changed by skippy

06/11/04 09:09:45 changed by JasonV

As it stands, 'children' determines whether the child categories are displayed hierarchically or not. Perhaps it would be best to rename 'children' to 'hierarchical' and update the documentation.

Should there be a 'children' option? Is it desirable to be able to display only the top-level categories? Seems to me somebody will want to do this at some point.

06/11/04 09:26:12 changed by skippy

Displaying only top-level categories is _exactly_ what I wanted to do. Then I'll include logic to see if the reader is looking at a specific category. If they are, then that categories' children categories should be displayed nested underneath it.

06/11/04 09:42:17 changed by JasonV

  • owner changed from anonymous to JasonV.
  • status changed from new to assigned.

06/11/04 14:03:37 changed by JasonV

children=0 will now stop categories below the top level from being displayed hierarchical=0 will stop categories from being displayed hierarchically

By default, children will be displayed and the display is hierarchical.

06/11/04 14:03:59 changed by JasonV

  • status changed from assigned to closed.
  • resolution changed from 10 to 20.

06/11/04 14:04:23 changed by skippy

Sounds like a good fix. Thanks very much!

06/14/04 21:28:03 changed by JasonV

  • status changed from closed to closed.