Get the next 3 venues with upcoming events

Home Forums Calendar Products Events Calendar PRO Get the next 3 venues with upcoming events

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1177435
    ricardpanades
    Participant

    Hello,

    I want to get the future 3 venues with upcoming events. If its possible will be cool to display a countdown like the featured venue widget.

    I see that the tribe_get_venues(); give you the next venues but i don’t know how to use it :S

    I attach a mockup of what i want to accomplish if is possible.

    Thanks and sorry for my english.

    #1177881
    Josh
    Participant

    Hey,

    Thanks for reaching out to us!

    I can’t help with full customizations that you’re looking for here but hopefully I can help to get you pointed in the right direction.

    You could use the tribe_get_venues() function to get the venues as well as only get those venues with upcoming events. However, I don’t believe there would be a good way to get the venues ordered based on the dates of those associated events.

    Alternatively, I would suggest using “tribe_get_events()” function to:

    1. query the upcoming events
    2. Foreach upcoming event use “tribe_get_venue()” to get the associated venue
    3. You could then assign each venue to an array and then get the first 3 unique venues in that array

    Once you have that, you can output the venues however you would like to from there.

    Let me know if this helps.

    Thanks!

    #1189156
    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 ‘Get the next 3 venues with upcoming events’ is closed to new replies.