Shortcodes

Google Maps

Google Maps offers powerful, user-friendly mapping technology and local business information — including business locations, contact information, and driving directions.

Embedding a Google Map

You can embed a Google Map into your WordPress.com blog using the following instructions.

  1. Visit Google Maps.
  2. Type in any street address or geographic location and click the Search button.
    google-maps
  3. Select Share and a popup will appear, as illustrated below.
    goole-maps-embed
  4. Select the Embed tab as above and copy the code from the box. The code will begin with <iframe.
  5. In your WordPress.com homepage, go to Posts  Add or Pages  Add (or open an existing post/page in editing mode). Open the HTML Editor and paste the code directly into your post or page.
    google-maps-wordpress-iframe
  6. Click Save Draft, Update, or Publish depending on the status of your post or page. If you refresh the page, you will notice that the code has changed. WordPress has converted the HTML code into the working shortcode.
    google-maps-wordpress-shortcode

Here is an example of what the embedded map will look like.

↑ Table of Contents ↑

Embedding a Custom Map

You can embed a Custom Google Map into your WordPress.com blog using the following instructions.

  1. Visit Google Maps.
  2. Click on the Menu icon found in the upper left corner of your browser window.
    google-maps-menu
  3. Select My Maps, and choose either a map you have already created or to create a brand new one.
    my-maps
  4. Once you have the map you would like to use, click Share.
    walk-through-town
  5. A window will appear, as illustrated below.
    sharing-settings
    If your window says something other than “Public on the web”, click on Change and select Public.
    public-map
    Save those changes and close out of the Sharing window.
  6. Click the More icon next to the Share button (it looks like three vertical dots), and a menu will appear. Select Embed on my site from that list.
    embed-on-site
  7. This will open a window with an embed link. Copy the entire code.
    embed-this-map
  8. In your WordPress.com homepage, go to Posts  Add or Pages  Add (or open an existing post/page in editing mode). Open the HTML Editor and paste the code directly into your post or page.
    google-maps-iframe2
  9. Click Save DraftUpdate, or Publish depending on the status of your post or page. If you refresh the page, you will notice that the code has changed. WordPress has converted the HTML code into the working shortcode.
    google-maps-shortcode2

Here is an example of what the embedded map will look like.

↑ Table of Contents ↑

Additional Info

  • When adding Google Maps to your WordPress.com blog, do NOT manually open the shortcode as you normally do with other services (i.e. do not begin typing the shortcode and then paste the Maps code). This will not work.
  • If your code isn’t working, try using a physical address. Addresses created with longitude and latitude coordinates rather than a physical address may not give you a workable code.
  • You can insert multiple maps into a single post or page.
  • To change the dimension of the map, click on the drop down menu during step 4 above. This will automatically update the iframe code.
    google-map-size
  • To make text flow around the map, you can add an alignment option in the shortcode:
    • align=”left” – The map will appear on the left, with text flowing to the right.
    • align=”right” – The map will appear on the right, with text flowing to the left.

    map-align

Still confused?

Contact support.

Not quite what you're looking for?

Get Help