I've been breaking my head over this for days now and can't seem to figure it out (with the limited knowledge I have). I want to achieve the following:
I have a custom post type 'Events'. Each event can take place multiple times per year, so I have custom fields for the dates, let's say 'dateA', 'dateB', 'dateC'. I want to display all the event-date combinations on a page chronologically after checking if the date is in the future.
There are a couple of easy ways to do this, but they have major flaws:
Create separate events for each date, but this would be a nightmare to maintain.
Loop through the events multiple times, first loop displaying the events with dateA, second loop displaying events with dateB etc. This requires all dateB's to be after the last dateA.
So basically what I need to (somehow) do is:
Create unique date event combinations
Compare the dates to the currentdate
Display the future events chronologically by the event date.
Can this be done, and if so, how would I approach it. Any pointers would be greatly appreciated!