i have a CPT event.
A single event can have multiple date/time/localisation
So i use ACF repeater for each event with line: DATEPICKER / TIMEPICKER / TEXT
i am just wondering if there is a way to optimize my wpquery
You’re going to need to explain to me what “localisation” means.
A date picker + a time picker is just a date/time and could be converted to a standard MySQL date for searching. But I have no idea what localisation means of how this will effect how you are searching or what you war searching for. You’ll need to provide details on this.
Also, how you plan to search these dates, will you be searching for exact dates or do you plan to look for dates > or < a date?
If all you are searching on is the date sub field and not concerned about the rest then the basic information I gave in the post you references should be all you need. You only need to copy the date field to standard WP meta format.
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users