Date Range from to fallback

Forums › Forums › Search & Filter Pro › Date Range from to fallback

Viewing 2 posts – 1 through 2 (of 2 total)
  • Anonymous
    #41134

    Hi,

    Great plugin btw! We’re having trouble with the date range field. Search results are returned fine if the user selects both enter from and to date fields; however, if one field is not set then the date range has no upper/lower value and thus the search returns no results.

    Is there a way to set a fallback date (i.e. from today and to infinity)? Alternatively, can we make both fields required if the user updates the other?

    Website here: https://awardsfinder.com/

    Thanks,
    Tom

    Trevor
    #41139

    Hi

    Yes, it is possible. You need to be using a child theme so that you can add one of Search & Filter pro’s add_filter actions. See here. I am tired now, but in the morning I will show how to do this for the post date field.

Viewing 2 posts – 1 through 2 (of 2 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.