Make WordPress Core

Opened 21 years ago

Closed 20 years ago

Last modified 2 years ago

#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)

#1 @saadiq
21 years ago

  • PatchNo

#2 @rob1n
20 years ago

  • Component TemplateGeneral
  • Keywords dev-feedback 2nd-opinion added
  • Owner changed from anonymous to rob1n
  • Priority normallow
  • Status newassigned
  • Version 1.5.12.1

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

#3 @markjaquith
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 @foolswisdom
20 years ago

  • Milestone2.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
20 years ago

This is only the default behavior.

Inheritance can be turned on by the pad_counts parameter.

#6 @andy
20 years ago

  • Resolutioninvalid
  • Status assignedclosed

#7 @foolswisdom
20 years ago

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