Hi,
I would like to have the event lists but separated by month:
that is
April
-event 1
-event 2
May
-event3
-event1
etc
instead of just listing event titles and dates. is that possible?

Gabriela Halac
Hi Gabriela,
There is a template file in event-organiser/templates
, event-list-shortcode.php
. You can copy that your theme and edit it there. (There is a similarly named template for widgets).
This thread contains an example of that template edited to group by month.

Stephen Harris
Also, your site will already have pages listing events on any given month (see https://wordpress.org/support/topic/group-events-by-month-archive-eventphp for details)

Stephen Harris
Hi,
I tried this approach and it worked but it is showing me past events.
this is my template I just noticed this now that I am loading the dates and the real data.
<?php while ( have_posts() ) : the_post();?>
<?php
if( $current_month != eo_get_the_start('m') ){
//End previous group
echo '';
//Start new group
echo '<div class="mes-agenda">'.eo_get_the_start('F Y').'</div>';
echo '';
}
$current_month = eo_get_the_start('m');
//Generate HTML classes for this event
$eo_event_classes = eo_get_event_classes();
//For non-all-day events, include time format
$format = ( eo_is_all_day() ? $date_format : $date_format. '--' .$time_format );
?>
<div class="row">
<div class=”col-xs-3 col-sm-2″>
<div class="dia-agenda">
<?php
echo eo_format_event_occurrence( $post->ID, $post->occurrence_id, 'd \d\e F', ' ', ' - ', true );
?>
</div>
</div>
<div class="col-xs-6 col-sm-2">
<div class="hora-agenda">
<?php
echo eo_format_event_occurrence( $post->ID, $post->occurrence_id, ' ', 'H:s \h\s', ' - ', true );
?>
</div>
</div>
<div class="col-xs-12 col-md-6">
<div class="evento-agenda">
" ><?php the_title() ?>
</div>
</div>
<div class="col-xs-2" style="text-align:right">#reservas" class="section-scroll btn btn-border-w btn-round">Reservas</div>
</div>
<?php endwhile; ?>

Gabriela Halac
Is this the list created by the shortcode or the widget?

Stephen Harris
HI, I need to make a new post and even I login I can’t write a new post on the forums.
I am having trouble with this:
$next = eo_get_next_occurrence_of();
if( $next ){
$start = $next[‘start’];
echo $start->format(‘d \d\e F H:s \h\s’);
}
the month is not localized Spanish, that is only on the front page, in other pages it works.

Gabriela Halac
Hi Gabriela,
That’s odd, you should be able to open new topics here: http://wp-event-organiser.com/forums/forum/general-question/
The format
method for DateTime doesn’t provide translations. Instead you would have to use the eo_format_datetime()
function (codex):
//echo $start->format(‘d \d\e F H:s \h\s’);
echo eo_format_datetime( $start, 'd \d\e F H:s \h\s' );

Stephen Harris