i tried it and it looks like its working fine :) Maybe it was the last update but I am not complaining anymore!!!
Here is the code to display the past events while it didn’t work. Just another way to use your wonderful plugin!
<div class=”events-maker-custom-heading”>PAST EVENTS</div><hr>
<?php
$args = array(
‘number_of_events’ => 0
,’order’ => ‘desc’
,’show_past_events’ => true
,’date_format’ =>’Y-m-d’
,’event_start_before’ => date(“Y-m-d”, time() – 3600*24)
);
echo em_display_events($args);
?>
…and..
<div class=”events-maker-custom-heading”>UPCOMING EVENTS</div><hr>
<?php
$args = array(
‘number_of_events’ => 0
,’order’ => ‘desc’
,’show_past_events’ => false
,’date_format’ =>’Y-m-d’
,” => date(“Y-m-d”, time() – 3600*24)
,’event_start_after’ => date(“Y-m-d”, time() – 3600*24)
);
echo em_display_events($args);
?>
I used the id to style the title and the php function to return yesterdays date. This may return yesterday date and the day before yesterday. Havent checked that yet, but I am sure someone will :)
Maybe my friends at dFactory can put a option list for “today” and “yesterday”? Thanks for you prompt response and understanding.
Happy Holidays!