Support

Home Forums Event Espresso Premium Show map of venue on another page

Show map of venue on another page

Posted: September 8, 2018 at 10:25 am

Viewing 1 reply thread


Peyton Earey

September 8, 2018 at 10:25 am

I”m having a hard time getting the map to show off the regular event single view. We need to link off to another page to show the map.

I’m passing the ID of the event by the url and trying to do a custom query based off that ID (and post_type) to show the map using: espresso_venue_gmap($post->ID);

Not sure what I’m doing wrong. If I dump the query, it looks like the event object is coming through.


Josh

  • Support Staff

September 8, 2018 at 10:35 am

Hi Peyton,

The espresso_venue_gmap() function actually accepts the venue ID:
https://github.com/eventespresso/event-espresso-core/blob/master/public/template_tags.php#L1127

You should be able to use the espresso_venue_id() template tag to get the venue ID first:
https://github.com/eventespresso/event-espresso-core/blob/master/public/template_tags.php#L910

then pass the venue ID to the espresso_venue_gmap() template tag.

Viewing 1 reply thread

The support post ‘Show map of venue on another page’ 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