Show Current events

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 8 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23715

    Hello,

    How I can make the plugin show all day the events that are currently happening?
    Like if an event started last week and ends tomorrow, all day, then this event should be included when using eo_get_events($args), because today is happening too.

    Karen Acklin
    #23758

    Hi Karen,

    You can use the event_start_after and event_end_before and ensure ‘past’ events are included (assuming you’ve configured the site to treat events that have already started as past events).

    $events = eo_get_events(array(
          'event_start_before' => 'now',
          'event_end_after'    => 'now', //these are inclusive,
          'showpastevents'     => true,
    ));
    

    The event list widget also provides a ‘running event’ option.

    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.