Hi Stephen,
Okay, I’m pretty sure this is functioning as expected, but it results in some odd archive pages.
On my events archive, I am using the following to display the event:
<i class="fa fa-calendar"> </i> <time itemprop="startDate" datetime="<?php eo_the_start($microformat); ?>"><?php echo eo_get_next_occurrence($format); ?> - <?php eo_the_end($format); ?> (all day)</time>
I decided to use eo_get_next… so that if it’s recurring, you’re seeing the correct date for the event as opposed to eo_the_start which will show the date in the past if there’s an upcoming event. However, this means that you can have events that are out of order, as the event may have started on the 9th (two days ago) but is still showing first even though the next occurrence isn’t until the 16th or whatever.
What am I doing wrong?
Thanks!

Matthew Tarzwell
Are you grouping events (in Settings > Event Organiser > General)?

Stephen Harris
No, I wasn’t. But even if I do, it still has a quirk – if I’m using eo_the_start, it’ll show the past date. If I use eo_next_occurence – and the start time has begun, for example at 9am this morning – it’ll show tomorrow’s date.. but it’ll show up before the next event today that starts at 6pm.

Matthew Tarzwell
Just to clarify, if you’re not grouping the events, then each occurrence of the event will be displayed, in date order. If you’re not excluding past events (see Settings > Event Organiser > General) then the first occurrence pulled out will be (possibly) in the past, and eo_the_start()
will print the event’s date. If however you use eo_next_occurence()
it will show the next future occurrence of that event. But then the ordering my look wrong, because the order is actulally of the occurrences, not the event’s next date.
I think what you’re trying to display is only future events, in which case you should enable this in Settings > Event Organiser > General.
You can then either group occurrences or not – depending on whether you want an event to appear multiple times.
In either case, you probably don’t want to use eo_next_occurence()
.
I hope that clears it up!

Stephen Harris