How to read the details of a specific venue?

Home Forums Calendar Products Events Calendar PRO How to read the details of a specific venue?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1163529
    Oliver
    Participant

    Hi,

    I want to read out the venue details with tribe_get_venue_details().
    How can I read the data of a specific venue? I tried something like tribe_get_venue_details(ID), but I only got back an empty array.

    Regards,
    Oliver

    #1164189
    Geoff
    Member

    Hey Oliver,

    (Love the new avatar!)

    I believe the best way to get those details would be to call the venue as a post type. Using the tribe_get_venue() function will fetch a venue that is associated with a particular event but, since Venues themselves are a post type, you could pull the data with get_posts().

    Is that what you’re looking for? Let me know. 🙂

    Cheers!
    Geoff

    #1167043
    Oliver
    Participant

    Thanks Geoff! I took the photo on Palma de Mallorca 😉

    I managed to find a solution with get_post_meta(), which returns an array with the details:

    $ort1_details = get_post_meta($ort1->ID);
    echo $ort1_details[_VenueAddress][0];
    echo $ort1_details[_VenueZip][0];
    ...

    Best regards,
    Oliver

    #1167247
    Geoff B.
    Member

    Hey Oliver,

    I am just chiming in for my colleague Geoff.

    I am super stoked that you found a solution.
    Is there anything else we can help you with on this topic ?

    Best regards,

    Geoff B.

    #1167260
    Oliver
    Participant

    No, thanks! I’m fine ?

    #1167446
    Geoff B.
    Member

    Good afternoon Oliver,

    Awesome!

    You are welcome back on our support forums any time 🙂

    For now, I am going to close this thread.

    Have a great week!

    Geoff B.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘How to read the details of a specific venue?’ is closed to new replies.