WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 4 years ago

#9715 closed defect (bug) (duplicate)

Category List in a drop down does not pad term counts

Reported by: CTassisF Owned by: markjaquith
Milestone: Priority: low
Severity: minor Version: 2.7.1
Component: Template Keywords: has-patch
Focuses: Cc:

Description

Hello.
I am using WordPress 2.7.1.
I have a blog with many categories, subcategories, sub-subcategories etc. When I post, I link that post only to the last sub-subcategory available.
The issue is: Sometimes, WordPress does not consider a post linked to a subcategory as a post of the mother category of that subcategory. As it does not count a post linked to a subcategory as a post of the mother category, some plugins hide that category because it is apparently empty.
Look at this pictures so you'll be able to understand what I am saying:
http://cesar.z0p.org/CategoryList1.PNG
http://cesar.z0p.org/CategoryList2.PNG
I was using the official WordPress category list widget plugin on both of them.
Could you please fix that?
Thanks in advance.
César

Attachments (3)

Category List 1.PNG (15.6 KB) - added by CTassisF 5 years ago.
Category List 2.PNG (18.8 KB) - added by CTassisF 5 years ago.
9715.diff (636 bytes) - added by scohoust 5 years ago.

Download all attachments as: .zip

Change History (10)

CTassisF5 years ago

CTassisF5 years ago

comment:1 thee175 years ago

  • Milestone changed from 2.7.2 to Future Release

comment:2 Denis-de-Bernardy5 years ago

  • Component changed from General to Template
  • Summary changed from Category List Issue to Category List in a drop down does not pad term counts

comment:3 Denis-de-Bernardy5 years ago

  • Keywords needs-patch added
  • Priority changed from normal to low
  • Severity changed from normal to minor

comment:4 Denis-de-Bernardy5 years ago

  • Milestone changed from Future Release to 2.9

scohoust5 years ago

comment:5 scohoust5 years ago

  • Keywords has-patch added; needs-patch removed

Patch adds pad counts to drop down function similar to that in wp_list_categories.

comment:6 markjaquith4 years ago

  • Milestone changed from 2.9 to 3.0
  • Owner changed from anonymous to markjaquith
  • Status changed from new to reviewing

Will review for 3.0

comment:7 dd324 years ago

  • Milestone 3.0 deleted
  • Resolution set to duplicate
  • Status changed from reviewing to closed

See: [11981] Pad counts in wp_dropdown_categories. Props mtdewvirus. fixes #10870

Note: See TracTickets for help on using tickets.