Make WordPress Core

Opened 20 years ago

Closed 18 years ago

Last modified 11 months ago

#1062 closed defect (bug) (invalid)

Categories display items from subcategories but don't count them

Reported by: saadiq's profile saadiq Owned by: rob1n's profile 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)

#1 @saadiq
20 years ago

  • Patch set to No

#2 @rob1n
18 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?

#3 @markjaquith
18 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 @foolswisdom
18 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.

#5 @andy
18 years ago

This is only the default behavior.

Inheritance can be turned on by the pad_counts parameter.

#6 @andy
18 years ago

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

#7 @foolswisdom
18 years ago

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