Closed gwin closed 7 years ago
We are discarding this change for now, as it will affect all categories, for example if your categories structure is
-A +-- AA +-- AB -B
and you will create Ad which is in A, AA and B categories then counts will be A (1), AA (1), B (0). With the current version, the counts would be A (2), AA (1), BB (1) which i think is more accurate.
When some other method for calculating counts will be available we will get back to this.
For now we will be adding adverts_category_post_count filter which allows recalculating number of posts in the category.
If there is a Parent category and sub-category , Example: the user selects TICKETS - CONCERT when submitting, so both parent and child are selected. The total count shows 2 as opposed to just one. Here is code modification to correct that:
File: home/allira6/public_html/wp-content/plugins/wpadverts/includes/functions.php /**