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:
    v.krasnoselska@gmail.com

    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)