Select based on custom type date rangf
-
I have a custom post of type ctc_event which holds calendar events. I wish to find the next event (after today) for a particular category. I can do the category filter (see above) but I can’t work out how to date select or order by the custom field that holds the next event start time (_ctc_event_start_date_end_time). This date is not the same as the published date and will be updated by a wp-cron job if it is set as recurring and the event date has passed. I would ideally like to select the first post with _ctc_event_start_date_end_time >= today ordered by _ctc_event_start_date_end_time. Am I expecting too much from the plugin?
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.