• 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)
  • Hi @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.