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


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.

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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 2 months, 1 week ago ago

Topic Tags

Tagged: 

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!
[i]
[i]