Hi there – I want to add a line to the event details on the event-meta-event-single.php template to display the recurrence of the event eg ‘This event occurs on the third friday of the month’ etc. Could you let me know how to do that? I’m pretty much a PHP newbie so apologies in advance for my ignorance!
I’ve isolated the following code as the bit that needs editing – I’m just not sure what to replace it with!
<!– Is event recurring or a single event –> <?php if(
eo_reoccurs() ):?> <!– Event reoccurs – is there a next
> occurrence? –> <?php $next =
eo_get_next_occurrence($date_format);?>
<?php if($next): ?>
<!-- If the event is occurring again in the future, display the date -->
<?php printf(''.__('This event is running from %1$s until %2$s. It is next occurring on %3$s','eventorganiser').'.
',
> eo_get_schedule_start('j F Y'), eo_get_schedule_last('j F Y'),
> $next);?>
<?php else: ?>
<!-- Otherwise the event has finished (no more occurrences) -->
<?php printf(''.__('This event finished on %s','eventorganiser').'.
', eo_get_schedule_last('d F Y',''));?>
<?php endif; ?> <?php endif; ?>

alex parsonage
Hi alex,
You could use:
<?php echo eo_get_schedule_summary( get_the_ID() ); ?>
That displays the occurrence has it appears in the events admin calendar. If that’s not appropriate you could copy that function, giving it a new name and modify it as required (it is defined in event-organiser/includes/event-organiser-event-functions.php

Stephen Harris