Google Maps Shortcode broken?
-
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?
-
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>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 π
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?
Not currently. We are in the middle of a large release. I will take a look at this ASAP.
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:
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.
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.181784I’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. π
The topic ‘Google Maps Shortcode broken?’ is closed to new replies.