Forums › Forums › Search & Filter Pro › Filter by _EventStartDate with The Events Calendar PRO by Modern Tribe
Tagged: date, The Events Calendar, tribe events, V3
- This topic has 7 replies, 2 voices, and was last updated 2 years, 5 months ago by
Trevor.
-
Anonymous(Private) February 22, 2019 at 9:50 am #202989
Dates are stored in this format: YYYY-MM-DD HH:MM:SS
But the global filter to show only content from the current date to the future works perfectly.Is there a way I can make it work? Maybe modifying the code of the plugin manually?
Thanks for your help!
Trevor(Private) February 22, 2019 at 12:14 pm #203006The only way you could make it work is to have a second date field, that holds the date in our required format. You could add a function to your child theme’s functions.php file to hook in to the WordPress save_post() function to process the saved date and save it in the desired format into this new field.
Anonymous(Private) February 22, 2019 at 2:47 pm #203056Seems not very efficient to duplicate meta fields just to do this.
There is an option for Date Input Format: Timestamp or YYYYMMDD (ACF). Could you make a new one for
The Events Calendar plugin, so they are compatible? This is by far the top 1 calendar plugin:
https://wordpress.org/plugins/tags/calendar/ -
AuthorPosts