Forums › Forums › Search & Filter Pro › Sliders over a range of values
- This topic has 33 replies, 3 voices, and was last updated 7 years, 11 months ago by Trevor.
-
Anonymous(Private) December 9, 2016 at 10:40 am #75322
Hi
I have a min and max value (from ACF) for an item. An analogous example would be minimum and maximum prices (Max. and Min.).
What I want from my slider is for it to return any post wherein either Max. OR Min. is within the slider range. At the moment I’m having to set up two sliders, one for Max. and one for Min.
For example, if the Max. in some product range X is $100 and the Min. is $10, when the slider covers either $1-$11 or $99-$1 000 000 (or infinity, whatever) for that product to be returned.
How do I achieve this?
Anonymous(Private) December 9, 2016 at 12:43 pm #75329Sorry, I’m fairly new to the plugin.
What do you mean by extra multi-value field?
From a UX perspective I’d really like to avoid multiplying my sliders. I already have two sets of min/max values, which means four sliders at the minutes. While I can cope (barely) with that outcome, it means that I’m double space restricted.
Thanks for the support. I hope I can continue to receive help with this.
Trevor(Private) December 9, 2016 at 12:52 pm #75331In your ACF Fields Group, you currently have the 2 fields; Min and Max. Add a third field called MinMax and in the ACF setup allow it to have multiple values. so, let’s say your post has a Min of 100 and a max of 400. You would have three field in the post:
Min = 100
Max = 400
MinMax = 100 & 400Set the slider to search on that last one. If the range matches either value, it will count as a hit. I think.
Anonymous(Private) December 9, 2016 at 1:17 pm #75349It must be possible. It’s a change of the return test.
It’s also a really clear search necessity – it should be shipped with the product to begin with.
I might be getting my set-up wrong, of course, but I really think this should be answerable without massive trouble.
Perfectly fine with altering the search query as needed but I don’t have the time to go digging into the plugin and figuring out how it’s enacted – but the dev should know.
Anyway, I appreciate the help and anticipate a clear response from Ross.
Thanks again for the helpfulness so far.
Ross Moderator(Private) December 12, 2016 at 3:00 pm #75729Hi Saul
I’ve read the above and it seems like its something we already offer.
Are you just saying you would like min to be defined by one meta key, and the max by another?
Then I would have though you just need to untick “use same for end key” and choose the correct key?
Let me know if I missed something.
Thanks
-
AuthorPosts