Forums › Forums › Search & Filter Pro › Filtering by Events Manager dates
Tagged: Events Manager, post meta date
- This topic has 8 replies, 2 voices, and was last updated 6 years, 4 months ago by Trevor.
-
Anonymous(Private) August 9, 2018 at 9:42 am #184906
Hi,
I’m using Search & Filter with events in Events Manager. On the Post Meta tab, I am using the event date (_event_start_local) in order to display the events chronologically by the event start date, beginning with today’s date.I would also like to enable a search by event start date, using the Post Meta Date selection field. I cannot get it to work at all. Do you have any ideas what I would need to do to get it to function?
Thanks.
Trevor(Private) August 9, 2018 at 9:54 am #184907It depends what format Events Manager is storing the dates in the database in. For the Date filtering to work in Search and Filter, the dates must be stored in the yyyymmdd format (always eight digits, with zeroes to pad, e.g. today is 20180809.
You can (quickly) inspect what data is there using our plugin in the Form UI.
Add a Post Meta to the Form UI. Of the three types tabs, choose ‘Choice’. Select the Meta key for your dates and Under get Options select ‘Manual Entry’. Below that you will now see an option to ‘Browse Values’. A box will appear with all the values stored in the database.
Trevor(Private) August 10, 2018 at 9:48 am #185062Great to speak with you Jean. It looks like the only solutions are to either persuade the Events Manager author to add an option for the save format of the dates, or create a dummy date field and copy the date and alter the format and hook in to the WordPress save_post hook.
-
AuthorPosts