• When selecting the option to show post counts, this plugin doubles the count on the top level category. It appears to count the posts in the subcategory, the counts them again as being in the parent category, which results in double counting.

    Example:

    Category (20)
    –Subcategory1(5)
    –Subcategory2(5)

    Category should be (10) .. not (20).

    Any ideas?

Viewing 1 replies (of 1 total)
  • Thread Starter UVScott

    (@uvscott)

    Solution (I’m using Woocommerce but should work in other cases where this issue exists).

    In collapscatlist.php line: 608

    Change:
    $theCount=$subCatPostCount2 + $totalCatPostCount;

    to:
    $theCount=$subCatPostCount2;

    That fixed it!

    • This reply was modified 7 years, 9 months ago by UVScott.
Viewing 1 replies (of 1 total)
  • The topic ‘Product Category Count Doubled When Using Subcategories’ is closed to new replies.