• Resolved topitoconnectey

    (@topitoconnectey)


    Hello !
    On list view, I’m trying to query event based on their month. I already know I can query by month like this :

    $events = tribe_get_events( array(
    	'start_date' => '2015-06-01 00:00',
    	'end_date'   => '2015-06-30 23:59'
    ));

    To display the available month, I’m using a carousel, like so . :

    <(past) . July . August . September(current) . October . November . (future)>

    I’m querying the current month via PHP basic function date().

    My problem is that I need to query the furthest event back in time, and the furthest event forward in time, so that my carousel has a finite number of month, is it clear ?

    How can I query those two events start date ?

    Thanks ??

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to get the most past event and the most future event’ is closed to new replies.