Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Custom search filters
- This topic has 3 replies, 2 voices, and was last updated 2 years, 3 months ago by
Ernest Marcinko.
-
AuthorPosts
-
February 20, 2024 at 1:23 pm #47018
collin43
ParticipantHi!
I have a question regarding the following.
I get the price range slider to work, as it makes sense, in ACF I have filled in for example “10.000”, and when that value is in between the sliders (so for example between 8000 and 15.000), it shows, as it falls “in the range”.
I have trouble setting up other filters. I am making a website where people can find wedding venues.
One part of the filter is the capacity of a wedding venue in terms of people that can come.
A venue could have a max capacity of for example:
Wedding ceremony: max capacity “60” people.
Diner: max capacity of “80” people
Party: max capacity of “150” people.Where in the brackets number, that number is storedd in ACF.
But when I try to do a slider, where people put in how many people they expect at the ceremony / diner / party, I am not getting it to work. I tried playing with the “less then” and “less and equal” operators, but I think i’m “thinking” wrong about it.
What I do not get to work is that any value below “max capacity” is allowed / valid to show as a result.
So in the example above, the max capacity of the party is 150, but when someone puts in 80 as their party group, the 150 is “valid”, as 80 people fit in a 150 capacity venue.
Can you help me on my way? Because right now, when people put in 80, it does not show the locations that have more than enough capacity.
Thanks 🙂 !
February 20, 2024 at 3:57 pm #47021Ernest Marcinko
KeymasterHi,
Sure!
Okay, so in this case the best option is to use a “MORE OR EQUALS THEN” operator, as you want to show venues which have more capacity as the user input: https://i.imgur.com/fyA4MMr.png
So say they input 100 and the capacity of a venue is 180, then it passes as 180 is more or equals than 100.
February 20, 2024 at 7:11 pm #47026collin43
ParticipantAhhh…… So I was thinking exactly the wrong way with that it should be less.
Thank you! Working great now 🙂 It’s fun to learn new things haha, thanks!
February 21, 2024 at 10:48 am #47028Ernest Marcinko
KeymasterIt’s all right, it is easy to get confused 🙂
If you don’t mind, I will close this topic soon and mark it as resolved, feel free to open another one if you have other questions or issues.
If you like the plugin and have not rated already, feel free to leave a rating on your codecanyon downloads page and on the wordpress plugin repository, it’s greatly appreciated.
-
AuthorPosts
- You must be logged in to reply to this topic.