Viewing 2 replies - 1 through 2 (of 2 total)
  • Yes. The event_start_before,event_start_after, event_end_before, event_end_after options allow relative as well as specific dates. Relative is whatever relative dates PHP allows (this is version dependent).

    See this page and this page on relative dates.

    In your example, something like the following should be what you are after:

    $events = eo_get_events(
         'showpastevents'=>1,
         'event_start_after'=>'last Monday',
         'event_start_before'=>'next Sunday',
    );

    Date queries are inclusive. This will get events that start after last Monday and before next Sunday. (You can use the corresponding arguments for events ending before/after a relative/specified date.

    Thread Starter jjdualan

    (@jjdualan)

    Hi Stephen,

    Thanks for the help. Great plugin.

    Joel

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Event Organiser] List events of current week’ is closed to new replies.