WordPress.org

Ready to get started?Download WordPress

Forums

Google Maps v3 Shortcode
Update map not showing? (8 posts)

  1. dwrf6
    Member
    Posted 3 years ago #

    Using the Google maps V3 shortcode latest version, I updated WordPress to 3.1.2, map not showing up.
    Great little plugin for WordPress

  2. dwrf6
    Member
    Posted 3 years ago #

    It seems to be on my Webkit browsers, Safari and Chrome.
    Very odd.

  3. dwrf6
    Member
    Posted 3 years ago #

    Have it running, seriously weird, I don't have any idea why, I was going to start turning on and off all the other plugins until it worked.

  4. d.l.ross
    Member
    Posted 2 years ago #

    Looks like it need to be fixed for WP 3.2.1 ... also not working on this version on a plain installation.

  5. zkwentz
    Member
    Posted 2 years ago #

    It looks like the issue is here in the plugin:

    $returnme .= '</script>';
    		return $returnme;
    	?>

    revise it to this to get it to work:

    $returnme .= '</script>';
    		return str_replace("\r\n", '', $returnme);
    	?>
  6. sydatbliz
    Member
    Posted 2 years ago #

    Sigh, so much promise and so easy to use but still not working properly in Safari on a Mac and zkwentz's fix (above) doesn't fix it either. Weirdly enough about half the maps on the developers page of examples do display in Safari, and the others don't, although some then did when I tried to grab and drag the blank map area. I've tried looking at the source code of that page but can't see any obvious link between those that work and those that don't.

  7. zkwentz
    Member
    Posted 2 years ago #

    sydatbliz, my fix ended up being a temporary fix. It came down to the theme being an issue. Sometimes they do this thing with shortcodes and their formatter, and it screws them up. I can almost guarantee it's a theme if that's what you're using.

    Look for the my_formatter function in shortcodes.php, if that function exists, it's messing up your shortcode.

  8. sydatbliz
    Member
    Posted 2 years ago #

    Thanks zkwentz. I realised a few days after my last post that the problem was somehow Theme related as it all worked in Safari when I changed to the Gantry theme from the TwentyTen theme.

    Of course the initial problem seems to a combination of OS, browser & theme, so I guess I'll have to wait until the site goes live and someone eventually writes to the site saying that it doesn't work with Gantry on their particular mix of OS and browser before I'll ever know!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic