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