Forums › Forums › Search & Filter Pro › Range slider working not correct
- This topic has 18 replies, 2 voices, and was last updated 9 years, 7 months ago by
Trevor.
-
Trevor(Private) June 9, 2016 at 11:40 am #47917
OK. That now makes sense to my tired old brain. Thanks.
For now, we cannot resolve. For the future, it is in our plans. Is it OK for me to move the thread to the feature requests to make sure?
So, to explain what happens. When you go to the page, the filter is not active. As soon as you make a selection, then it is active.
The problem is the range slider looks in the post cache for the search form and finds only posts that have a value. We need to change the cache mechanism so that when it searches the posts’ values in that field, any empty value is assumed to be 0. It does not do this now.
Trevor(Private) June 9, 2016 at 2:04 pm #47921My guess is that you could use the modify url filter/action here:
http://www.designsandcode.com/documentation/search-filter-pro/action-filter-reference/
The url will always have the slider part in, so you could search the strong for that and remove it when it is at default.
Trevor(Private) June 9, 2016 at 6:55 pm #47962OK, I will reply in the morning. Before I do. There are three eventualities regarding the search:
No search parameters == ALL posts to be found
Search parameters set, but slider not used (at default ranges) == include posts with no value set.
Search parameters might be set, but slider IS used (at values different from default) == exclude posts with no value set.Is this correct?
-
AuthorPosts