Get country / zip / city of venue

Home Forums Calendar Products Events Calendar PRO Get country / zip / city of venue

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

    Hi guys!

    I want to create a list of all venues for our website.
    With the function tribe_get_venues(); an array is given, which is exactly what I was searching.
    Unfortunately the array doesn’t contain the country, zip and city of the venues, which is an important information I want to include for easier usability.
    How can I read out the three fields?

    Best regards,
    Oliver

    #918933
    Brian
    Member

    Hi,

    I can help you out here.

    These fields country, zip and city of the venue are all custom fields.

    So when using tribe_get_venues(); it will not return custom fields typical of any query in WordPress.

    You can use these functions instead:

    tribe_get_city( $postId )

    tribe_get_zip( $postId )

    tribe_get_country( $postId )

    Let me know if that helps.

    Thanks

    #919658
    Oliver
    Participant

    Thanks for the fast reply, Brian! That sounds good! I will try it with these functions the next days!

    #919683
    Brian
    Member

    Ok sounds good. Let me know if you have any questions.

    Thanks

    #935713
    Brian
    Member

    Since there is has not been any activity on this thread for over 2 weeks so I am now closing it. Feel free to start a new thread if you have further issues. Thanks! 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Get country / zip / city of venue’ is closed to new replies.