#1062 closed defect (bug) (invalid)
Categories display items from subcategories but don't count them
| Reported by: | saadiq | Owned by: | rob1n |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | General | Version: | 2.1 |
| Severity: | minor | Keywords: | dev-feedback 2nd-opinion |
| Cc: | Focuses: |
Description
wp_list_cats('sort_column=name&optioncount=1')
That currently returns the list of categories hierarchically and counts the entries in each category. If you have an entry tagged with a subcategory and not the parent, the parent category correctly displays subcategory items. However, it doesn't "count" the items that belong to a subcategory and not the parent.
Change History (7)
#2
@
20 years ago
- Component Template → General
- Keywords dev-feedback 2nd-opinion added
- Owner changed from to
- Priority normal → low
- Status new → assigned
- Version 1.5.1 → 2.1
#3
@
20 years ago
Could go either way... although it would certainly be a little bit more computationally intense to do it the way this ticket wants. We'd have to drill down from each category adding up the totals of the subcategories. With a big tree structure, that could be a lot of drilling.
#4
@
20 years ago
- Milestone → 2.3
I can't remember who it was, but I thought either Andy or Ryan spent a fair amount of time coming to the current behavior.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
IMO this isn't really a bug... devs?