#4987 closed defect (bug) (fixed)
Posts can be counted twice in taxonomy counts
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.3 |
| Component: | General | Version: | 2.3 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Create a parent category and a child category, then put a post under both at the same time.
The parent category will then show to have 2 posts, even though it only has 1.
Change History (8)
I do like including the counts, but if it says (7) and you click the category and see 4 posts, it can be pretty confusing. I think counts should represent what you get if you click the category link.
comment:3
Viper007Bond — 6 years ago
I'd personally think child counts should be included, but uniquely if possible.
comment:5
darkdragon — 5 years ago
- Milestone changed from 2.3 to 2.3.2
Was the patch for 2.4, backported to 2.3.x? If not, then will it be or was it already? I remember discussions about something along those lines, but I forget what the conclusion was.
Darkdragon, I just tested this in both 2.3.1 and 2.4-bleeding and like Ryan said, it was fixed before release. In both, a post posted in both a parent and child category, will only be counted once in the parent, not twice like what was occurring.

Parents include child counts if pad_counts is enabled, which it is by default for hierarchical taxonomies. So, it's sort of a feature. :-)