Support

Home Forums Event Espresso Premium How do I get the venue for an event?

How do I get the venue for an event?

Posted: June 29, 2016 at 1:40 pm


joshuaneubert

June 29, 2016 at 1:40 pm

I’m building a custom template that shows events in a given category. I need to get the location, which appears to be part of the venue information. Where can I find the link between the event and the venue? Once I get it, are Venues built on Custom Post Types like the Events are?

Thanks


joshuaneubert

June 29, 2016 at 1:53 pm

I’ve found the info I need in the database.

Venues are a Custom Post Type of “espresso_venues”.
Info about the venue is in the esp_venue_meta table.
The links between events and venues are in the esp_event_venue table.

I’m still wondering if there is a “correct” way of getting this info.
Thanks


Josh

  • Support Staff

June 29, 2016 at 2:44 pm

You can see the way the Event Espresso developers get the venue information for an event by opening up the

/public/Espresso_Arabica_2014/content-espresso_events-venues.php

file in your favorite IDE. Then do a search for any of the functions/template tags used in that template.

See also:

https://github.com/eventespresso/event-espresso-core/tree/master/docs/G–Model-System

The support post ‘How do I get the venue for an event?’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso