I have a custom search (as seen on hidden link) with two taxonomy filters and two numeric filters (amount from/to). All 4 filters have default labels. I expect that when a user does not make a selection (so the default label is active), the search does not use that filter.
My problem is that despite the default labels there is no search result if only one filter was used. I see that when the default label is active this gives a url string with value '0'
hidden link
But there is no "locatie-woning" with value '0'.
So I expect that when 'wpv-soort-woning' had a value and 'wpv-locatie-woning' not, all posts are showed no matter what wpv-locatie-woning it is.
Hello. Thank you for contacting the Toolset support.
We have known issues with range filters and its already reported to our next level support.
I'll get in touch with you once I get some updates on it. Please hold on for further updates.
For now, there are two workarounds:
1)
You can downgrade Views plugin to version 2.9.4
OR
2)
Use the "wpv_filter_query" hook:
- Add the following code to your theme's functions.php file: