Hi there,
I have a module on the frontpage of my site which provides a feed of upcoming events.
At the moment, it is not correctly displaying events by event date and it is showing expired events as well.
http://b4-business.white-staging.co.uk/
It’s the member events module at the bottom.
Could you help me identify the problem with my code?
<?php
extract(array(
‘events’ => []
), EXTR_SKIP);
$heading = (($heading) ? $heading : ‘Member Events’);
?>
<div class=”col-xxs-12 col-xs-6 col-md-3 isotope-item”>
<div class=”panel panel-default module module-member-event”>
<div class=”panel-heading”>
See All
<?php echo $heading; ?>
</div>
<div class=”list-group” data-compare>
<?php $args = array( ‘orderby’ => ‘date’); foreach($events as $event ): ?>
” class=”list-group-item”>
<?php render_template(‘subtitle-with-date’, array(‘text’ => $event[‘title’], ‘date’ => $event[‘date’])); ?>
<?php endforeach; ?>
</div>
</div>
</div>