Forums › Forums › Search & Filter Pro › Post meta – number
- This topic has 3 replies, 2 voices, and was last updated 10 years, 7 months ago by
Anonymous.
-
Anonymous(Private) September 29, 2015 at 11:09 am #26148
Hello,
First of all – thank you for this plugin – it saved my project ๐I have one problem with it.
I am using Post Meta (ACF) for filtering conference rooms.
The problem is I don’t need Range but something even more simpler. I need to filter conferrence rooms.
Let’s say there is 5 conference rooms with a space: 20, 40, 60, 80, 100.
When a person enters for example – 50. It -shows up 20, 40. 50 is MAX VALUE.I did an ugly workaround where I hidden “Min Value” on the website so that people couldn’t set it.
The problem is that “Max Value” field on site has number “1000” in it (this is my MAX value on SEARCH UI).I want it to show up “0.” How to do that? Also “-” sign between min max is still visible, though min field is hidden. Which looks ugly. ๐
Or.. if it is possible- how to select number ONLY with mathematical condition (like equal or lower number than entered)Thanks in advance.
Anonymous(Private) September 29, 2015 at 2:52 pm #26159Okay, so I deleted the “-” sign from class-search-filter-generate-input.php (on line 503).
I guess that will do the trick.. ๐
Now, the only thing I really need is to show it 0 instead of MAX possible value – 1000.And I thought – even better option would be if it could have a placeholder. ๐
Ross Moderator(Private) September 30, 2015 at 1:56 pm #26230Hey there
Thanks for the feedback – yeah having the functionality where setting a min / max only is something I’ve wanted to add for a while, and certainly will be coming in the not too far future ๐
Thanks
Anonymous(Private) October 1, 2015 at 11:04 am #26299Good, looking forward to it.
Though, this workaround did the trick.
Just a quick shout out. I completely messed the logic. Instead of hiding “MIN VALUE” I should hide “MAX VALUE”.
As now the conference rooms are shown only if number exceeds the available space. If you select 0-200 where MIN VALUE can’t be changed (since it’s hidden) – it shows all hotels that have capacity below 200 when it should show above 200. xD
The right way:.searchandfilter .range-max { display: none; } -
AuthorPosts