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)