Forums › Forums › Search & Filter Pro › Datefilter
Tagged: current date, custom date, events, V3
- This topic has 31 replies, 2 voices, and was last updated 4 years, 7 months ago by Trevor.
-
Anonymous(Private) March 31, 2020 at 11:06 am #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.
PeterTrevor(Private) March 31, 2020 at 11:15 am #238441This 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.
-
AuthorPosts