Title: Filter Function not working
Last modified: April 10, 2019

---

# Filter Function not working

 *  Resolved [olstadesigns](https://wordpress.org/support/users/olstadesigns/)
 * (@olstadesigns)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/filter-function-not-working/)
 * Hi,
 * I have noticed that the filter function isn’t working the same way the Search
   function does. For example:
 * In the Search you select the 1st dropdown which then activates the 2nd dropdown
   and from a selection in the 2nd dropdown it then activates the 3rd which then
   you click SEARCH to get a result.
 * If you go onto a product page as I have linked for you and then select the first
   dropdown it does not activate the 2nd dropdown.
 * I can get this to work by selecting the 1st dropdown and then clicking the FILTER
   button which then shows results on the page and activates the 2nd dropdown. Then
   again click the FILTER button which then displays results and activates the 3rd
   dropdown.
 * Should the dropdowns not automatically activate once the a selection has been
   made just like in the SEARCH function?
 * I had this issue previously with the search which you then gave an update to 
   replace require() with require_once(). Could there be a similare issue here for
   the filter part? There are no errors in error_log file.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffilter-function-not-working%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Pektsekye](https://wordpress.org/support/users/pektsekye/)
 * (@pektsekye)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/filter-function-not-working/#post-11410952)
 * Hello,
 * Can you send your file:
    wp-content/plugins/ymm-search/ymm_ajax.php
 * to me [pektsekye@gmail.com](https://wordpress.org/support/topic/filter-function-not-working/pektsekye@gmail.com?output_format=md)
 * ?
 * Stanislav
 *  Thread Starter [olstadesigns](https://wordpress.org/support/users/olstadesigns/)
 * (@olstadesigns)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/filter-function-not-working/#post-11410977)
 * Hello Stanislav,
 * Email send from olstadesigns email account.
 * Thanks
 *  [dmarty](https://wordpress.org/support/users/dmarty/)
 * (@dmarty)
 * [7 years ago](https://wordpress.org/support/topic/filter-function-not-working/#post-11584399)
 * Hi same problem i send you the file…
 * please help me
 * kind Regards
    Dominik

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

The topic ‘Filter Function not working’ is closed to new replies.

 * ![](https://ps.w.org/ymm-search/assets/icon-256x256.png?rev=1750193)
 * [Year Make Model Search for WooCommerce](https://wordpress.org/plugins/ymm-search/)
 * [Support Threads](https://wordpress.org/support/plugin/ymm-search/)
 * [Active Topics](https://wordpress.org/support/plugin/ymm-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ymm-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ymm-search/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [dmarty](https://wordpress.org/support/users/dmarty/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/filter-function-not-working/#post-11584399)
 * Status: resolved