Forums Forums Search & Filter Pro Range filter stays on

Viewing 2 posts - 1 through 2 (of 2 total)
  • Anonymous
    #254233

    Hello,
    The filter is implemented on this page https://pepitone.hammertech.network/listings/
    It displays perfectly.

    However, as soon as user performs any action on the filter, the range field stays and prevents the results that do not contain “available size” values from being displayed. In this case it’s “waterfront canal residential lot” – has no “available space” value, so it is dropped as soon as user selects any filter value for “Filter by” or “Property Type”. The URL appended displays “available space” effectively removing that result from the list. Furthermore, if user selects “All properties” the “available space” criteria still stays in the URL and prevents the “waterfront post” from being added.

    QUESTION: is there a way to not append range filter into URL every time any other other filter action is taken by a user?

    I can take a video of user action to replicate the problem if needed.

    Trevor
    #254274

    Any range field will be appended. There are, at present, only 2 solutions to this:

    1. Add a default value of 0 to each post that has no value, and use PHP or JavaScript to hide that in the post display details.

    2. Add a second field that contains text strings to represent pre-selected ranges, where the user can choose from a dropdown list of values instead, like this:

    NO Value Selected
    0 – 999
    1000 – 4999
    5000 – 19999
    20000 and over

    (this is just an example). It is possible to make use of the WordPress autosave feature to ‘calculate’ and populate this new field based on the value entered in the original field. This post shows an example of a year field being auto populated:

    https://support.searchandfilter.com/forums/topic/datefilter/page/3/#post-238869

Viewing 2 posts - 1 through 2 (of 2 total)