Forums › Forums › Search & Filter Pro › can I use the checkbox to search a range of meta value
Tagged: checkbox range of meta value
- This topic has 11 replies, 2 voices, and was last updated 7 years, 1 month ago by Trevor.
-
Anonymous(Private) September 19, 2017 at 12:19 pm #131861
hello everyone, the question is how to perform the range search with checkbox?
For example, there are 26 characters. and I only provide 10 character options (a,b,c,d,..,j) to user.
and the last option j which option I want to show the characters J and after J like k,l…. .Trevor(Private) September 19, 2017 at 2:49 pm #131892You would need to be running a child theme, and inside the child theme folder on your server would be a file called functions.php
Edit that and add the sample code on new lines in the file.
There are examples of using the code in this forum, using this search:
https://support.searchandfilter.com/forums/search/sf_edit_query_args/
But I am unable to provide help with the coding. For that you would need to hire a coder.
Trevor(Private) September 19, 2017 at 4:29 pm #131905Not within our cache of the data. The actual value stored in the database would have to be. This also presumes you use no special characters. I think the issue would then become that a range search on numbers cannot be done with checkboxes, but it can with radio buttons, in the radio buttons option only allows to regularly spaced/stepped ranges. E.g
11-20
21-30
31-40
41-50All steps of 10, but this is not allowed:
11-20
21-30
31-40
41-50
51-100Steps of 10, but the last is a step of 50.
-
AuthorPosts