Home › Forums › Event Espresso Premium › Show map of venue on another page
Posted: September 8, 2018 at 10:25 am
EE4 Developer License
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.
September 8, 2018 at 10:35 am
The espresso_venue_gmap() function actually accepts the venue ID:
You should be able to use the espresso_venue_id() template tag to get the venue ID first:
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
Updated by Josh 1 week, 6 days ago ago