Pippins Plugins
  • Email
  • Facebook
  • Feedburner
  • Github
  • Google
  • Twitter
  • Vimeo
  • Youtube
  • Rss
  • About
  • News
  • Join the Site
    • Member Benefits
    • Member Plugins
    • Email Notifications
  • Plugin Store
    • Affiliate Area
    • Checkout
  • Plugins
    • Plugin Portfolio
      • Plugin Portfolio – List View
    • Free
    • Premium
    • Member Plugins
    • Coding Standards
    • Get Plugin Support
  • Tutorials
    • Series
      • Plugin Development 101
      • Creating a User Follow System Plugin
      • Customizing Restrict Content Pro
      • Displaying Content with Easy Content Types
      • Writing Your First WordPress Plugins, Basic to Advanced
      • Working with Widgets
      • User Submitted Image Galleries
      • Plugin Thoughts
      • Integrating Stripe.com with WordPress
      • WordPress Rewrite API
    • Member Exclusive
      • Free Members
      • Subscriber Only
    • Difficulty
      • Beginner
      • Intermediate
      • Advanced
    • Action and Filter Hooks
    • Ajax
    • Custom Post Types
    • External APIs
    • Short Codes
    • Taxonomies
    • Video Tutorials
    • Widget Tutorials
    • WordPress Admin / Dashboard
    • Working with jQuery
    • WordPress Database
    • Writing Plugins
    • Tag Index
  • Reviews
  • Support Forum
  • Contact
    • Support the Site
    • Request Code Review
    • Plugin Support

Simple Google Maps Short Code

Posted on October 1, 2012 by Pippin in Free, Plugins, Utilities 6 Comments
Home» Plugins » Free » Simple Google Maps Short Code
banner-772x250
Tweet
Love It - 1

This plugin will enable a simple short code that you can use for embedding Google Maps in any WordPress post or page. The short code uses the WordPress HTTPS API and the Transients API for delivering cached maps with little to no impact on your site’s performance.

Maps are displayed with the [pw_map]] short code:

[pw_map address="New York City"]

The size of the map can be adjusted by supplying the width and height parameters:

[pw_map address="New York City" width="400px" height="200px"]

You can also use percentages for sizes:

[pw_map address="New York City" width="50%" height="200px"]

Maps are cached using the WordPress Transients API, which allows for very simple database-based caching.

Each time you display a map, the address specified is used to generate a unique md5 hash, which is used for the cache identifier. This means that if you change the address used for your map, the cache will be refreshed.

The maps are cached for 3 months, though are automatically cleared (for individual maps) when you change the address in the short code.

Download Plugin
Tweet Follow @pippinsplugins
Google Maps, short code

6 comments on “Simple Google Maps Short Code”

  1. Noumaan Yaqoob says:
    October 1, 2012 at 10:03 am

    This is great, thank you for sharing this plugin. I have reviewed several Maps plugins during last few months while writing for wplift and I think this plugin will truly help a lot of people. There are some really excellent plugins to display Google, Bing or Mapquest maps but this one is simpler and easier and plus it has built in support for caching.

    Reply
    • Pippin says:
      October 1, 2012 at 10:09 am

      My biggest complaint with most map plugins is just that they’re generally too heavy. I like simple, light plugins :)

  2. MonkeyMays says:
    March 6, 2013 at 1:56 am

    Awesome Pippin, great plugin :)

    My daughter is building her school’s FLBA chapter a news and community calendar site, Of course she chose WP to build on, but I’m not allowed to help, Per se… but I can suggest plugins =D She is required to incorporate maps… this will be so easy for her to use.

    Reply
    • Pippin says:
      March 10, 2013 at 12:07 pm

      Great to hear!

  3. edukidaveyoung says:
    March 6, 2013 at 12:06 pm

    Hey Pippin,

    Any facility to use multiple addresses or provide lat/lon? The image at the top of the page shows two pins (red and blue).

    Reply
    • Pippin says:
      March 8, 2013 at 4:33 pm

      No, sorry.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Login

Lost your password?

Please enter your username or e-mail address. You will receive a new password via e-mail.

  • Facebook Become a Fan Like

  • Twitter Subscribe on Twitter Follow

  • YouTube Follow my Videos Subscribe

  • RSS Feed Subscribe with RSS Subscribe

Easy Digital Downloads

Most Loved

  • Love It Pro for WordPress
  • Write a “Love It” Plugin with Ajax to Let Users Love Their Favorite Posts / Pages
  • Simple Notices Pro Plugin for WordPress
  • User Bookmarks for WordPress
  • Front End Registration and Login Forms Plugin

Similar Plugins and Posts

  • Sugar Event Calendar – Google Maps
  • Writing a Simple Google Maps Short Code
  • Stripe Integration Part 3 – Variable Prices and Enhanced Plan Handling
  • User Submitted Image Gallery – Part 4
  • Image Gallery Short Code Using Post Attachments

Latest Premium Content

  • Plugin Development 101 – Introduction to Adding Dashboard Menus
  • Plugin Development 101 – Intro to Loading Scripts and Styles
  • User Follow System – Part 5
  • Plugin Development 101 – Intro to Short Codes
  • Plugin Development 101 – Registering a Custom Post Type
  • Plugin Development 101 – Intro to Actions

Latest Tutorials

  • Submitting Your First Pull Request to a WordPress Plugin on Github (2)

    Github is an extremely popular tool for managing WordPress plugins, and one...

  • Plugin Development 101 – Introduction to Adding Dashboard Menus (1)

    Adding new menus, both top level and sub level, to the WordPress Dashboard is a really common task for plugins...

  • Plugin Development 101 – Intro to Loading Scripts and Styles (16)

    In this part of Plugin...

Enter your email to receive automated updates when new posts are published

Latest Tweets

  • Shipped some serious code tonight, and now to hit the sack. https://t.co/1V68FVHYWg
    May 21, 2013
  • @tnorthcutt https://t.co/AuWTLzmqOY
    May 21, 2013
  • @tnorthcutt Figured it out, thanks
    May 21, 2013

Topics

meta box campaign monitor hook add_shortcode wp_enqueue_script Rémi Corson featured Tom McFarlin shortcodes attachments get_user_meta register_setting add_options_page Related posts authors mail chimp attachment plugin image forms short codes do_action login bbpress apply_filters recent posts comments post types taxonomies short code custom post type Ajax gallery images Stripe jquery taxonomy widgets users add_filter add_action easy content types widget restrict content pro easy digital downloads

Weekly Newsletter

Useful Links

  • Join the Site
  • Plugin Store
  • Affiliate Area
  • Tag Index
  • Support the Site
  • Suggest a Tutorial
  • Random Post
  • Contact

Monthly Archives

(c) 2011 Pippin's Plugins