Get all events

Home Forums Calendar Products Events Calendar PRO Get all events

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #79532
    Oliver
    Participant

    Hi!
    when using the tribe_get_events() function as described here
    http://docs.tri.be/Events-Calendar/function-tribe_get_events.html
    I get back a list of events.

    Unfortunately this list is incomplete. I have around 2000 events in the calendar, but get back only five events.
    Do you have any idea why the output is limited?

    Best regards,
    Oliver

    #80112
    Chris
    Participant

    The default number of posts to return is 5 on a get_posts query in WordPress.

    You can grab all using the parameter ‘posts_per_page’ => -1, but keep in mind a 2000 post grab is likely going to be very expensive memory and load wise

    -Chris

    #80307
    Oliver
    Participant

    Thank you for the info! It works!
    (I use this function not very often so it’s not a performance issue)

    Best regards,
    Oliver

    #80318
    Kelly
    Participant

    That’s great news, Oliver! Thanks for letting us know. 🙂

    By the way, if you have a minute or two, we will love it if you would write a few words for us here:
    http://wordpress.org/support/view/plugin-reviews/the-events-calendar?filter=5

    Thanks in advance. 🙂

    #982515
    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 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Get all events’ is closed to new replies.