Only show future events
-
Hello!
I have about 30 events in one day. I have a short list on my homepage showing the upcoming 7 events, but this list isn’t updated during the day. For instance – when the time is 17.00 – events that ended before 17.00 is still showing. How can I make only events after the present time to show.
This is the code I use to generate the list:
<?php if (class_exists('EM_Events')) { echo EM_Events::output( array('limit'=>7, 'category'=>9, 'scope'=>'future') ); } ?>
I’m using the latest version of WP and Events Manager.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Only show future events’ is closed to new replies.