Forums Forums Search & Filter Pro Datefilter

Viewing 10 posts - 1 through 10 (of 32 total)
  • Anonymous
    #238438

    Hello
    I can’t find a solution for my problem. Please I need urgently help.
    I have Custom Post Types „MyEvents“
    Data from ACF Fields. One field is for eventdate.
    How can I display:
    1.) Upcoming events ( eventdate >= current date )
    2.) Events in a special year (eventdate is between 01.01.2016 and 31.12.2016)
    3.) Events respectively in the current year (without mentioning the year. Just getting it from the current date)

    Thanks you.
    Peter

    Trevor
    #238441

    This could only be done with either settings in the form setup (I think in the case of 1 and 2) and in the case of 3, this would have to be done using custom PHP coding using this filter:

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

    The user would not be able to make these choices from the front end.

    Each of the 3 options would make the other not possible within the form setup (you would have to choose just one option).

    In the case of 1 and 2, it should be possible on the Post Meta settings tab. #2 would require two conditions to be set, for the start and end dates.

    Anonymous
    #238469
    This reply has been marked as private.
    Trevor
    #238505
    This reply has been marked as private.
    Anonymous
    #238522
    This reply has been marked as private.
    Anonymous
    #238529
    This reply has been marked as private.
    Trevor
    #238570
    This reply has been marked as private.
    Anonymous
    #238581

    Hi Trevor,
    yes you are correct. On the page “Archiv” there should be the filter option.

    “But, to have a list as you said to select the years, this cannot be done directly from the date field.”
    OHH. Not good to hear that 🙁

    Trevor
    #238583

    You have a lot of posts?

    Anonymous
    #238587

    actually about 80, every year 12-15 more

Viewing 10 posts - 1 through 10 (of 32 total)