Title: events_map and locations_map shortcode
Last modified: July 8, 2019

---

# events_map and locations_map shortcode

 *  Resolved [jeeltcraft](https://wordpress.org/support/users/jeeltcraft/)
 * (@jeeltcraft)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/events_map-and-locations_map-shortcode/)
 * Hi I’m trying to display the booked event for each user’s public page, I finally
   could get the ids of the events but the events_map shortcode doesn’t display 
   the map, is seems that it doesn’t recognize the event with the given id the map
   results as without a latitude and longitude…
    On the contrary the locations_map
   shortcode works but it doesn’t link to the event itself, just to the location…
   Why is the event id different from the post id given by wordpress? and is there
   any workaround on this? Thanks, LauraC

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/events_map-and-locations_map-shortcode/#post-11713234)
 * hi,
 * EM supports custom post type which creates post_id where in we need event_id 
   for internal EM functions.
 * also, can you give us additional details with regards to the issue?
 *  Thread Starter [jeeltcraft](https://wordpress.org/support/users/jeeltcraft/)
 * (@jeeltcraft)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/events_map-and-locations_map-shortcode/#post-11713516)
 * Hi, thanks for your answer,
    This is the page with the map, as you can see the
   locations_map shortcode loads correctly:
 * [http://www.jeeltcraft.com/ambulanti-online/author/ambulante1/](http://www.jeeltcraft.com/ambulanti-online/author/ambulante1/)
 * I echoed the events_map shortcode I used without success above the map, the resulting
   javascript doesnt load the map center, the javascript returns a
 * `center:{NaN.NaN}`
    Please let me know if I did anything wrong.
 * Regards,
    LauraC
 *  Thread Starter [jeeltcraft](https://wordpress.org/support/users/jeeltcraft/)
 * (@jeeltcraft)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/events_map-and-locations_map-shortcode/#post-11713521)
 * sorry `center: {NaN,NaN}`
 *  [Stonehenge Creations](https://wordpress.org/support/users/duisterdenhaag/)
 * (@duisterdenhaag)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/events_map-and-locations_map-shortcode/#post-11713847)
 * Okay, hooking in here… You are using the OSM add-on, so no longer the native 
   Google Maps. So all EM maps are handled by the add-on and not EM anymore.
 * You need to repost it on the correct forum:
    [https://wordpress.org/support/plugin/stonehenge-em-osm/](https://wordpress.org/support/plugin/stonehenge-em-osm/)
 * That being said, [events_map event=”60″], is “60” the event id and not the post
   id?
 * Pease make sure you are using the latest version of the add-on OSM plugin. To
   ensure you are using the right templates files, you can deactivate and reactive
   the add-on.
 *  Thread Starter [jeeltcraft](https://wordpress.org/support/users/jeeltcraft/)
 * (@jeeltcraft)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/events_map-and-locations_map-shortcode/#post-11713868)
 * Yes 60 is the event id, I’ll try on that forum then, I have the latest version
   of the osm add-on plugin.
 *  [Stonehenge Creations](https://wordpress.org/support/users/duisterdenhaag/)
 * (@duisterdenhaag)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/events_map-and-locations_map-shortcode/#post-11715707)
 * Let’s continue there then 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘events_map and locations_map shortcode’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [events_map](https://wordpress.org/support/topic-tag/events_map/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 6 replies
 * 3 participants
 * Last reply from: [Stonehenge Creations](https://wordpress.org/support/users/duisterdenhaag/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/events_map-and-locations_map-shortcode/#post-11715707)
 * Status: resolved