Title: Execute the same shortcode multiple times
Last modified: December 11, 2019

---

# Execute the same shortcode multiple times

 *  [pavipath](https://wordpress.org/support/users/pavipath/)
 * (@pavipath)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/execute-the-same-shortcode-multiple-times/)
 * I have a website where-in I am using the same map in two separate sections on
   a page. One section which is only shown on desktop the other on mobile. These
   sections both have the same map. But only one map renders is there any-way to
   get around this? If so how?

Viewing 1 replies (of 1 total)

 *  [Carlos Moreira](https://wordpress.org/support/users/carlosmoreirapt/)
 * (@carlosmoreirapt)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/execute-the-same-shortcode-multiple-times/#post-12227955)
 * Hi [@pavipath](https://wordpress.org/support/users/pavipath/) thank you for using
   the plugin.
 * In the current version of the plugin, each map can only be rendered once in a
   page. It can render as many times as you want in the same website in different
   pages, but only once per page.
 * This is because each map has a unique ID and the script that generates the map
   will look for that ID. If the same map is added twice on the same page, the map
   will be generated twice, but on the first container with that ID, so the map 
   will only display once. For now, for the next versions, this will continue to
   be like this. Sorry for this limitation.
 * But there’s a workaround.
 * You can have multiple maps in the same page, as long as they are different entries.
   You can create the exact same map twice and use it on the same page, like you
   said, one for desktop and another for mobile. As long as they have different 
   IDs, they can render on the same page, no problem.
 * Hope it helps.
    Greetings, Carlos

Viewing 1 replies (of 1 total)

The topic ‘Execute the same shortcode multiple times’ is closed to new replies.

 * ![](https://ps.w.org/interactive-geo-maps/assets/icon-256x256.png?rev=3115060)
 * [MapGeo - Interactive Geo Maps](https://wordpress.org/plugins/interactive-geo-maps/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/interactive-geo-maps/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/interactive-geo-maps/)
 * [Active Topics](https://wordpress.org/support/plugin/interactive-geo-maps/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/interactive-geo-maps/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/interactive-geo-maps/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Carlos Moreira](https://wordpress.org/support/users/carlosmoreirapt/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/execute-the-same-shortcode-multiple-times/#post-12227955)
 * Status: not a support question