Title: wpsl_map id
Last modified: August 30, 2016

---

# wpsl_map id

 *  Resolved [stuartjsmith](https://wordpress.org/support/users/stuartjsmith/)
 * (@stuartjsmith)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/wpsl_map-id/)
 * Hi,
 * when using the wpsl_map shortcode, is the only way to get the id by looking at
   the link address and getting the id from there? Is there an easier way? Is it
   possible to use the slug instead somehow? Not sure if id is safely preserved 
   when importing nd exporting wordpress sites, maybe it is…
 * thanks, Stu
 * [https://wordpress.org/plugins/wp-store-locator/](https://wordpress.org/plugins/wp-store-locator/)

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

 *  Plugin Author [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/wpsl_map-id/#post-6652507)
 * The ID it takes is the ID from the page itself. Based on the permalink settings
   you can indeed take it from the url, or otherwise you can see it when you edit
   it in the wp admin area in the url. The ID is the only way, slugs won’t work.
 * But if you use the wpsl_map shortcode on a page that is registered as a wpsl_stores
   custom post type, then you don’t need to provide the id.
 * I never really paid much attention to whether or not it preserves the page ids
   when export/importing data. You will just have to try it out.
 *  [buzznerd](https://wordpress.org/support/users/buzznerd/)
 * (@buzznerd)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/wpsl_map-id/#post-6652727)
 * Is there a way to show Directions when using the wpsl_map shortcode?
 *  Plugin Author [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/wpsl_map-id/#post-6652728)
 * [@buzznerd](https://wordpress.org/support/users/buzznerd/) not yet, but in the
   future I will add this.
 * You can, if you use the shortcode on a custom template, grab the location meta
   data and create a link like this [https://www.google.com/maps?saddr=+&daddr=106+MOTT+ST,NEW+YORK,NY+10013](https://www.google.com/maps?saddr=+&daddr=106+MOTT+ST,NEW+YORK,NY+10013).
   Just replace the daddr value with the details from your location.

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

 The topic ‘wpsl_map id’ is closed to new replies.

 * ![](https://ps.w.org/wp-store-locator/assets/icon-256x256.png?rev=3705779)
 * [WP Store Locator](https://wordpress.org/plugins/wp-store-locator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-store-locator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-store-locator/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-store-locator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-store-locator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-store-locator/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/wpsl_map-id/#post-6652728)
 * Status: resolved