Support » Fixing WordPress » Google Maps broken after transfer to site

  • So I recently moved by blog over from to an outside hosted site. The transfer went relatively smoothly using the Export/Import tools of wordpress. However, I noticed when going through my posts that my google maps didn’t transfer over as they were on my blog and rather stayed as a giant url (and even more annoying doesn’t keep within the confines of the page and runs way off to the side).

    After reading and scouring forums, I’ve found that what happened is that was automatically converting google maps to using its built in shortcode and changed the actual coding in the process. Unfortunately, this functionality did not transfer over in the move and so I’m just stuck with a lot of unwieldy URLs. I tried a whole bunch of different plugins but none that I found matched the exact functionality of the shortcode.

    Also, the blog is a motorcycle travel one and so we have a lot of google maps throughout our posts which means it wouldn’t be feasible to go through and replace all the maps (and have to remap them on Google).

    Here is the page with the broken map:

    and here is the page on the site:

    If anyone has any ideas how to fix this it would be greatly appreciated. My guess is that I need to be able to imitate the google maps shortcode somehow.

    One sort of side, related question is that my pictures haven’t been saved in a very efficient fashion so that, if you load up my homepage ( for instance and look at the most recent post, it takes forever to load because of the pictures

Viewing 12 replies - 1 through 12 (of 12 total)
  • Moderator Ipstenu (Mika Epstein)


    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    The problem is the [googlemap] short code is built into, but not

    You need something like this:

    Right, I did. As I mentioned I’ve tried a bunch of plugins. The problem is in that these don’t duplicate the plugin but only provide an alternative and thus a different short code. And since has already gone through the trouble of changing every single one of my google map links, none of them work with any other plugins, even if I replace the short code [googlemaps] with the new plugins short code, which in this case is google-map-sc, because of the fact that system changes all the urls.

    Moderator Ipstenu (Mika Epstein)


    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    The problem is in that these don’t duplicate the plugin but only provide an alternative and thus a different short code.

    Yes. Which meaans you have to CHANGE the shortcode on all yoru posts. Which sucks, but there isn’t a did not change the URLs.


    See that? There is your URL safe and sound.

    You SHOULD be able to change the ‘googlemap’ part to a separate plugin’s code and go from there, but I don’t know of one off the top of my head.

    Basically no matter what there is no ‘quick fix’ so you’re going to need to edit all your posts.

    Yes, there is A ulr there, but it’s not the right one, at least as far as I can tell. It might be because I am currently located in China, but when I click that link, it just takes me to my google maps starting location. Similarly, when I installed a plugin (actually did this with several different ones) and changed the shortcode, my site just outputted the code, same as now.

    What I’m wondering is that’s shortcode isn’t some magical, secret algorithm that can’t be duplicated is it? I feel like there should be some way to implement it on another wordpress based site as well, particularly since it was that broke it in the first place (rather than keep it as the iframe which would have transferred over fine).

    hey Bukco,

    copy and paste the code at the pastebin URL into your theme’s functions.php file.

    This will allow your maps to show again, but you still won’t be able to copy and paste the iframe code from Google Maps like you used to.

    Hope this helps.

    @fonglh, you are an absolute life saver. Worked like a charm and exactly what I was looking for!

    In terms of copying and pasting the iframe code, that’s totally fine since I can just use a plugin or some other similar situation from now on.

    Any chance there is a similar solution for the youtube shortcode?

    I’ve written a plugin for the Google Maps shortcode, waiting for the repository to be created.

    By youtube one, do you mean the feature at ?

    Have you taken a look at the existing youtube plugins?

    yes, that’s exactly what I need for the youtube short code. I couldn’t find anything that exactly replicated that feature. I would have to again go through and change the short codes to match the plugin’s.

    here’s the plugin I wrote.

    It works with variable map sizes now and does the iframe conversion as well.
    you’ll have to remove the code you originally put into your functions.php file.

    I’ll see if I can find time to do the youtube one.

    check out this thread.

    looks like the jetpack plugin has the youtube shortcode you need.

    that worked beautifully. Good find. You’re a legend!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Google Maps broken after transfer to site’ is closed to new replies.