Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › range slider for numeric values not prices
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 1 year, 11 months ago.
- AuthorPosts
- April 12, 2021 at 2:06 pm #32667
Hi,
is there a way to use a range slider for numeric values as defined in a ACF fieldtype defined as select.?
I have values 0,1,2,3,4,5,6,7,8 and would like to present these in a slider in the frontend instead of a multiselect box or dropdown list.regards
Marco van DijkApril 12, 2021 at 2:19 pm #32668Hi,
I believe so, it should work. As far as the field has only a single value, it is very likely stored as a single value as well, in which case the range slider should work.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
April 12, 2021 at 9:52 pm #32674Hi Ernest,
unfortunate the field is a multi valued ACF field (product is suitable for child age 1,2,3,4 years or 1,2,3,4,5 for another product. The range slider is not able to deal with this kind of data.
Any other suggestion how I could use a range slider to select these values?The alternative now is a multiselect dropdown with search so the customer can select the years , but this is not so user friendly.
regards,
MarcoApril 13, 2021 at 9:17 am #32678In that case it is probably not possible. You can try altering the query arguments via the asp_query_args filters. The post meta filters can be found under this key.
Best,
The problem is, that the SQL between operator needs numeric values to work, so it will automatically cast the field value to an integer. As far as I know, there is no way of emulating a between operator to choose from multiple values.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.