Support Forums

Hey there, it looks like you've been redirected from designsandcode.com - as you can see we have a new home - read more

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Datefilter

Viewing 10 posts - 1 through 10 (of 32 total)
  • introma
    #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 Moderator
    #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.

    introma
    #238469
    This reply has been marked as private.
    Trevor Moderator
    #238505
    This reply has been marked as private.
    introma
    #238522
    This reply has been marked as private.
    introma
    #238529
    This reply has been marked as private.
    Trevor Moderator
    #238570
    This reply has been marked as private.
    introma
    #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 Moderator
    #238583

    You have a lot of posts?

    introma
    #238587

    actually about 80, every year 12-15 more

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

You must be logged in to reply to this topic.