WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 7 years ago

Last modified 7 years ago

#1062 closed defect (bug) (invalid)

Categories display items from subcategories but don't count them

Reported by: saadiq Owned by: rob1n
Milestone: Priority: low
Severity: minor Version: 2.1
Component: General Keywords: dev-feedback 2nd-opinion
Focuses: Cc:

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)

comment:1 saadiq9 years ago

  • Patch set to No

comment:2 rob1n7 years ago

  • Component changed from Template to General
  • Keywords dev-feedback 2nd-opinion added
  • Owner changed from anonymous to rob1n
  • Priority changed from normal to low
  • Status changed from new to assigned
  • Version changed from 1.5.1 to 2.1

IMO this isn't really a bug... devs?

comment:3 markjaquith7 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.

comment:4 foolswisdom7 years ago

  • Milestone set to 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.

comment:5 andy7 years ago

This is only the default behavior.

Inheritance can be turned on by the pad_counts parameter.

comment:6 andy7 years ago

  • Resolution set to invalid
  • Status changed from assigned to closed

comment:7 foolswisdom7 years ago

  • Milestone 2.3 deleted
Note: See TracTickets for help on using tickets.