• Resolved adda3web

    (@adda3web)


    Hello guys,

    I’m a bit in trouble getting all events between two dates in PHP.

    I did this piece of code :
    $startDate = ‘2020-06-16 00:00:00’;
    $endDate = ‘2020-06-16 23:59:59’;
    $events = tribe_get_events( array( ‘eventDisplay’ => ‘list’,
    ‘ends_after’ => $startDate,
    ‘ends_before’ => $endDate
    ) );

    It only showing events between those two dates and not events which started before or ended after that date.
    Unsuccessfully I also tried with ‘start_date’ & ‘end_date’.

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘The Events Calendar 4.9.1 problems getting events between dates’ is closed to new replies.