tribe_get_events() stopped working after update

Home Forums Calendar Products Events Calendar PRO tribe_get_events() stopped working after update

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #65822
    Trevor Albrecht
    Participant

    I’m assuming this function has been removed in v3, as it worked in v2 just fine. What is the new one called? I just need to get an array of the upcoming events. It’s for a custom news ticker.

    #65855
    Barry
    Member

    Hi Trevor! Actually tribe_get_events() remains a core plugin function and should still operate, though event querying has tightened up some so it could be that some queries which used to return results no longer do so.

    #65866
    Trevor Albrecht
    Participant

    Here’s how I’m using it now and it’s returning an empty array:

    $events = tribe_get_events(array(
    ‘start_date’ => $current_date,
    ‘end_date’ => $end_date,
    ‘eventDisplay’ => ‘all’,
    ‘posts_per_page’ => -1
    ));

    Can you show me an example of show it should be used?

    #65868
    Barry
    Member

    How are your $current_date and $end_date variables formatted? Are they in Y-m-d (yyyy-mm-dd) format?

    #65877
    Trevor Albrecht
    Participant

    That was the issue, that must have changed in the recent update. It’s working now, thank you.

    #66060
    Barry
    Member

    Excellent!

    #980803
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘tribe_get_events() stopped working after update’ is closed to new replies.