Query and include event that's underway

Home Forums Calendar Products Events Calendar PRO Query and include event that's underway

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1374324
    kwel_com
    Participant

    Hi there. I feel like I’m just not finding this information. I’ve tried the kb, search feature, and google to no avail. Anyway, seems like a simple issue and that it must have been addressed a dozen times over already but here goes.

    When I run the bare-bones query:

    $events = tribe_get_events( array(
    'posts_per_page' => 2,
    ) );

    The results don’t include an event that’s already underway. The first $event is the next upcoming event. I need the results to include the event that’s currently underway until the conclusion of that event.

    Probably missing something simple. Thanks in advance!

    #1375980
    Victor
    Member

    Hi Jon!

    Thanks for reaching out to us! Let me help you with this topic.

    By default, the tribe_get_events will fetch only upcoming events. You can modify the query by using the start_date argument. You can learn more about it in the following article > https://theeventscalendar.com/knowledgebase/using-tribe_get_events/

    I hope it helps! Let me know if you have any follow up questions.

    Best,
    Victor

    #1393779
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Query and include event that's underway’ is closed to new replies.