Opened 4 years ago

Last modified 3 years ago

#9875 assigned defect (bug)

Postcount not set for parent in category dropdown.

Reported by: petervanderdoes Owned by:
Priority: normal Milestone: Future Release
Component: Taxonomy Version: 3.0
Severity: normal Keywords: has-patch
Cc: kevinB

Description

When showing categories in a dropdown with show_count and hierarchical , the parent of the categories won't show the total amount of posts of its children.
When selecting a list this teh total amount is shown.

Attachments (1)

padcount_in_dropdown.diff (550 bytes) - added by petervanderdoes 4 years ago.

Download all attachments as: .zip

Change History (12)

The padcount_in_dropdown patch should fix the bug.

  • Keywords has-patch added
  • Milestone changed from 2.8 to 2.9

punting per IRC discussion

  • Milestone changed from 2.9 to Future Release

No community testing of patch > punting b/c we're in beta.

  • Keywords has-patch removed
  • Version changed from 2.8 to 2.9

Postcount in the dropdown is not the sum of the parent and children.

comment:6 in reply to: ↑ description   hakre3 years ago

  • Keywords reporter-feedback added

Replying to petervanderdoes:

When showing categories in a dropdown with show_count and hierarchical , the parent of the categories won't show the total amount of posts of its children.

Well, should it? Is this a bug or a enhancement / feature request? Please name the API functions you're experiencing this.

  • Keywords reporter-feedback removed

It works that way in the wp_list_categories, not in wp_dropdown_categories

  • Keywords has-patch added
  • Version changed from 2.9 to 3.0

So your suggestion here would streamline the behaviour in wp_dropdown_categroies with wp_list_categories, right?

If so I think this is a good idea to have more consistency between the two.

Realted: #11514

  • Owner filosofo deleted
  • Status changed from new to assigned
  • Cc kevinB added
Note: See TracTickets for help on using tickets.