Jetpack by WordPress.com
[resolved] Google Map short code broken (2 posts)

  1. Enterpr1se
    Posted 2 years ago #


    I followed the instruction here
    The embed google map iframe code should change to [googlemaps] shortcode when I "Save Draft"
    But it seems does nothing, no change at all.

    Here is my google map embed code

    <iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d3691.4757569421718!2d114.174661!3d22.29784!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x340400ee10e9320d%3A0x22637a01d1d29d06!2z5aW95b635ZWG5qWt5aSn5buI!5e0!3m2!1szh-TW!2s!4v1400729633544" width="600" height="450" frameborder="0" style="border:0"></iframe>


  2. Brandon Kraft
    Happiness Engineer
    Plugin Contributor

    Posted 2 years ago #


    That's intentional if you're an administrator level user. With that level of account, you can post <iframe src... without a problem, so we leave the code alone. (This way, if you ever decide to stop using Jetpack for some reason, your maps will still embed). In WordPress lingo, your account can post unfiltered HTML.

    For users with the role of Author or Contributor, for example, their access does not allow them to post some types of HTML that could have security issues. To allow users with that role to post maps, which would generally be stripped out because of the <iframe>, we convert the Google Maps code into the shortcode.

    If that doesn't make full sense, please let me know.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.