WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Google Maps Shortcode broken?

[Resolved] Google Maps Shortcode broken?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor Tim Moore

    @tmoorewp

    What exactly happens for you in widgets?

    Hi Tim,

    Thanks for the reply.

    Nothing happens, the shortcode is shown as if it was not processed.

    For instance, if I put this shortcode in a text widget

    [googlemaps https://maps.google.com.br/maps/ms?msa=0&msid=208649434188009166040.0004c11dc9ea7f1cc408e&ie=UTF8&t=m&ll=-29.166794,-51.181784&spn=0.023982,0.016136&z=14&output=embed&w=188&h=320]

    the site visitors will see the shortcode unprocessed instead of the map

    E.g. it does not produces the Google Maps iframe

    <div class="googlemaps"><iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com.br/maps/ms?msa=0&msid=208649434188009166040.0004c11dc9ea7f1cc408e&ie=UTF8&t=m&ll=-29.166794,-51.181784&spn=0.023982,0.016136&z=14&output=embed&w=188&h=320"></iframe><br /><small><a href="https://maps.google.com.br/maps/ms?msa=0&msid=208649434188009166040.0004c11dc9ea7f1cc408e&ie=UTF8&t=m&ll=-29.166794,-51.181784&spn=0.023982,0.016136&z=14&source=embed&w=188&h=320" style="text-align:left">View Larger Map</a></small></div>

    Plugin Contributor Tim Moore

    @tmoorewp

    Do other shortcodes work in widgets?

    Good question….

    Yes, contact form 7 does work inside the text widget.

    As I told earlier, [googlemaps] shortcode used to work, unfortunately I don’t exactly know which JetPack upgrade broke it 🙁

    Plugin Contributor Tim Moore

    @tmoorewp

    I’ll take a look and see what I can find out.

    Thanks Tim, good luck finding out the issue.

    Any news about this issue?

    Plugin Contributor Tim Moore

    @tmoorewp

    Not currently. We are in the middle of a large release. I will take a look at this ASAP.

    Plugin Contributor designsimply

    @designsimply

    Member

    Thank you for posting a specific example! I can see that part of the problem may be that you are using a maps.google.com.br link, but the shortcode will only work with maps.google.com links.

    Please try the following steps:

    1. Go to https://maps.google.com/maps/ms?msa=0&msid=208649434188009166040.0004c11dc9ea7f1cc408e&ie=UTF8&t=m&ll=-29.166794,-51.181784

    2. Click the link icon near the top left, and copy the HTML from the 2nd field (starts with “<iframe”).

    3. Paste the HTML you copied into a text widget in the sidebar.

    Plugin Contributor designsimply

    @designsimply

    Member

    Hold on, I spoke too soon. If I start with a maps.google.com.br address, that works for me too. I would recommend trying the steps again, it worked for me in several tests if I followed the instructions I listed above.

    For #1, start at this URL instead:
    https://maps.google.com.br/maps/ms?msa=0&msid=208649434188009166040.0004c11dc9ea7f1cc408e&ie=UTF8&t=m&ll=-29.166794,-51.181784

    Plugin Contributor designsimply

    @designsimply

    Member

    I’ve just realized that my steps actually totally bypass the shortcode and that’s the whole problem you reported in the first place 🙂 well, I’m on a role! I see that the shortcode issue is a bug, and I will file a bug report for it. In the mean time, hopefully my steps will help as a workaround if you need it.

    Sheri, thank you very much for your efforts.

    I am aware of the HTML text option and it was the first thing I did to stop showing a broken shortcode that is meaningless to site visitors.

    My concern here was to discover if it was a change by design or simply a bug. Thank you for clarifying it and reporting the bug.

    Hopefully next version of JetPack will fix it. 🙂

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘[Resolved] Google Maps Shortcode broken?’ is closed to new replies.