I’m making a list display of ‘events’ (using custom post types), and there’s meta fields for beginning date and ending date (each storing the date as an integer usable with PHP’s date() function). I want to show current and upcoming events, so events whose ‘end date’ meta field is greater than or equal to the current date.
I also want to order events by start date, so how can I order by a meta field?
Thanks to anyone who can point me in the right direction!
- The topic ‘How to query and order posts with meta field 'event-date' > some date?’ is closed to new replies.