Title: Term Count is wrong
Last modified: June 3, 2024

---

# Term Count is wrong

 *  Resolved [damian96](https://wordpress.org/support/users/damian96/)
 * (@damian96)
 * [2 years ago](https://wordpress.org/support/topic/term-count-is-wrong/)
 * Hello,
 * I use WPML and Woocommrce Mutlilingual, I have debugged locally the term count,
   also run the wp term recount pa_colour command with the wp-cli on the server,
   but still I can’t get the count to show the correct number.
 * Even though the filters are working correctly, the count is wrong.
 * Steps to reproduce: * just add a woocommerce attribute of colour to a product
   and try searching it in a custom search page.
 * Thanks, Damianos
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fterm-count-is-wrong%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [fesupportteam](https://wordpress.org/support/users/fesupportteam/)
 * (@fesupportteam)
 * [2 years ago](https://wordpress.org/support/topic/term-count-is-wrong/#post-17798685)
 * Hi [@damian96](https://wordpress.org/support/users/damian96/)
 * Thank you for your interest in the Filter Everything plugin.
 * The AWS search plugin uses its own search algorithms that are currently not compatible
   with the filtering. You can use the Woo search widget to search products. But
   our development team has plans to add this compatibility with future updates.
 * Best Regards – Victor
 *  Thread Starter [damian96](https://wordpress.org/support/users/damian96/)
 * (@damian96)
 * [2 years ago](https://wordpress.org/support/topic/term-count-is-wrong/#post-17800378)
 * Hi Victor,
 * I managed to remove the AWS search algorithm, by removing the GET type_aws parameter,
   using the below hook:
 *     ```wp-block-code
       add_filter('aws_searchbox_markup', 'add_type_aws_hidden_field', 10, 2);
       function add_type_aws_hidden_field($markup, $params)
       {
         $hidden_field = '<input type="hidden" name="type_aws" value="true">';
   
         $markup = str_replace($hidden_field, '', $markup);
   
         return $markup;
       }
       ```
   
 * Now, I wish to make the search results page work with WPML.
   e.g. /?s=92&post_type
   =product&lang=en&product_colour=blackwould be translated to /?s=92&post_type=
   product&lang=en&product_colour=<german_product_colour_slug>, and of course the
   filters too.Is this possible with the free version, or is it included in the 
   PRO Version of Filter Everything?
 * Best regards,
   Damianos
 *  Plugin Support [fesupportteam](https://wordpress.org/support/users/fesupportteam/)
 * (@fesupportteam)
 * [2 years ago](https://wordpress.org/support/topic/term-count-is-wrong/#post-17800646)
 * Hi [@damian96](https://wordpress.org/support/users/damian96/)
 * If you have translated attributes for each language then it should work and display
   different attribute names for each language. Also, you might want to check this
   documentation page – [https://filtereverything.pro/resources/with-wpml-polylang/](https://filtereverything.pro/resources/with-wpml-polylang/)
 * Best Regards – Victor

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Term Count is wrong’ is closed to new replies.

 * ![](https://ps.w.org/filter-everything/assets/icon-256x256.png?rev=3487105)
 * [Filter Everything — WordPress & WooCommerce Filters](https://wordpress.org/plugins/filter-everything/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/filter-everything/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/filter-everything/)
 * [Active Topics](https://wordpress.org/support/plugin/filter-everything/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/filter-everything/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/filter-everything/reviews/)

## Tags

 * [count](https://wordpress.org/support/topic-tag/count/)
 * [terms](https://wordpress.org/support/topic-tag/terms/)

 * 3 replies
 * 2 participants
 * Last reply from: [fesupportteam](https://wordpress.org/support/users/fesupportteam/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/term-count-is-wrong/#post-17800646)
 * Status: resolved