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.

You must be logged in to reply to this support post. Sign In or Register for an Account

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: publish

Updated by  Josh 1 week, 6 days ago ago

Topic Tags

Tagged: 

Notifications

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