Support » Plugin: Collapsing Categories » Post count error

  • Resolved motmat

    (@motmat)


    The post count is product_cat is currently a sum for products in main cat and sub cat , so all product in subcat are counted twice.

Viewing 2 replies - 1 through 2 (of 2 total)
  • PS code correction! 🙂

    : error condition: “Expanding shows: Just Sub-categories” (by option “Expanding shows: Sub-categories and Post” the post count is showed correctly”)

    Code correction:
    plugin editor …. collapscatlist.php
    from text below:
    $theCount=$subCatPostCount2 + $totalCatPostCount;
    just remove :
    + $totalCatPostCount

    • This reply was modified 6 months, 3 weeks ago by motmat.
    • This reply was modified 6 months, 3 weeks ago by motmat.

    I have the same problem, this solve problem partially.

    I have this estructure:

    • Cat 1 (25) This perferct with the abobe solution.
    • sub Cat 1.1 (50) this doesn’t work
    • sub sub Cat 1.1.1 (50) this also doesn’t work.
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.