Postal Code in Database

Home Forums Calendar Products Events Calendar PRO Postal Code in Database

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1450393
    Marcus
    Participant

    Hello,

    where can i find the Postal Codes in the Database?

    I’m trying to program a widget where I can use the zip code to display upcoming events in the sidebar

    #1452022
    Barry
    Member

    Hi Marcus,

    That information is stored in the post meta table: the post ID field will be set to match the ID of the venue itself and meta key will be set to _VenueZip.

    The Events Calendar provides a function called tribe_get_zip() which can be used to retrieve this information and, conveniently, it accepts either the venue ID or the event ID (if you provide the latter, it determines the venue ID by itself).

    I hope that helps but do let me know if you have any further questions 🙂

    #1472263
    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 ‘Postal Code in Database’ is closed to new replies.