Date ranges

Forums › Forums › Search & Filter Pro › Date ranges

Viewing 4 posts – 1 through 4 (of 4 total)
  • Anonymous
    #236930

    Hello,
    Lera Krasnoselska is bulding a search filter for me on my website. She has an issue we would like support for. Here is her explanation:

    I have post meta unavailable-date date format YYYYMMDD, that save some dates. I need to use the post meta date filter range, so the user inputs from-to dates. And search result excludes posts that have any unavailable-date within the input range.

    For example, user inputs such dates: from 22/12/2020 to 24/12/2020. Any posts with unavailable-date equal to 22/12/2020 or 23/12/2020 or 24/12/2020 will be excluded from the search results.

    Can I add her email address to be included in the conversation somehow? Her address is:
    [email protected]

    Thank you!
    Kind regards,
    Boris Hoekmeijer

    Trevor
    #236961

    I am sorry, I cannot add her to the conversation. If she had an account here (you can make one with purchasing, she could then make a dummy post and follow the thread. BUT, she would not be able to read any private posts.

    I understand what she wants in the form, to use the date range as an exclusion instead of as an inclusion, but I know of no way to do this. Our form filters act only as inclusions.

    Anonymous
    #237009

    Hi Trevor,
    I understand she cannot be added to the ticket. No worries, I will forward the information to her.

    She would then like to know: Can I create a hook for updating the search?

    Trevor
    #237013

    Hi. This is what she is asking for, but I cannot be sure if she can achieve what she wants:

    https://searchandfilter.com/documentation/action-filter-reference/#edit-query-arguments

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.