WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Google Maps Shortcode broken? (13 posts)

  1. Gabriel Reguly
    Member
    Posted 1 year ago #

    After some update(s), I have just noticed that [googlemaps] shortcode does not work for widgets anymore.

    However it still works for pages, so it is not fully broken.

    Is it by design or could it be a bug?

    http://wordpress.org/extend/plugins/jetpack/

  2. Tim Moore
    Moderator
    Plugin Author

    Posted 1 year ago #

    What exactly happens for you in widgets?

  3. Gabriel Reguly
    Member
    Posted 1 year ago #

    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>

  4. Tim Moore
    Moderator
    Plugin Author

    Posted 1 year ago #

    Do other shortcodes work in widgets?

  5. Gabriel Reguly
    Member
    Posted 1 year ago #

    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 :-(

  6. Tim Moore
    Moderator
    Plugin Author

    Posted 1 year ago #

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

  7. Gabriel Reguly
    Member
    Posted 1 year ago #

    Thanks Tim, good luck finding out the issue.

  8. Gabriel Reguly
    Member
    Posted 1 year ago #

    Any news about this issue?

  9. Tim Moore
    Moderator
    Plugin Author

    Posted 1 year ago #

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

  10. designsimply
    Member
    Plugin Contributor

    Posted 1 year ago #

    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.

  11. designsimply
    Member
    Plugin Contributor

    Posted 1 year ago #

    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

  12. designsimply
    Member
    Plugin Contributor

    Posted 1 year ago #

    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.

  13. Gabriel Reguly
    Member
    Posted 1 year ago #

    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. :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags