Post meta – number

Forums › Forums › Search & Filter Pro › Post meta – number

Viewing 4 posts – 1 through 4 (of 4 total)
  • Anonymous
    #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
    #26159

    Okay, 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
    #26230

    Hey 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
    #26299

    Good, 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;
    }
Viewing 4 posts – 1 through 4 (of 4 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.