The event locations can be shown on any post or page with the [em-google-map] shortcode.

These are the default parameters:

width=100%
height=300px
zoom=15
maptype=roadmap // hybrid, roadmap, satellite, terrain
maptypecontrol=on
zoomcontrol=on
streetviewcontrol=on
overviewmapcontrol=off
pancontrol=off
rotatecontrol=off
scalecontrol=off
draggable=on
keyboardshortcuts=on
scrollzoom=on

You may also use “locations” parameter to provide comma separated list of location ids, for ex. 3,5,15 like this:

[em-google-map locations=3,5,15]

The above will display Google Map with 3 markers, for each location respectively.

By default, the [em-google-map] shortcode tries to get location id from queried object, but it will work only if location archive is being displayed. It will not get location ids from currently displayed single event – you need to provide specific location id or use the em_display_google_map() function.

No replies yet

Be first to start the conversation.

Leave a Reply

Please, do not use this form for technical support. To get support for our plugins, use the support forum.

Your email address will not be published. Required fields are marked *