Embed Google Map is a plugin for embedding one or more Google Maps to WordPress posts and pages.
Embed Google Map is a plugin for embedding one or more Google Maps to WordPress posts, pages, text widgets and templates. Adding maps is very simple, just add the address or the coordinates which location you want to show on a map inside google_map tags to a post or a page or a text widget or a template, and that’s it!
The plugin supports Google Maps, Google Maps Classic and Google Maps Embed API. The version to be used can be set by using the Version setting (supported values: new, classic, embed). Google Maps and Google Maps Classic do not require an API key, but for Google Maps Embed API an API key is required instead.
It’s possible to define the version of Google Maps, the type of the map (normal, satellite, hybrid, terrain), the size of the map, the language of the Google Maps interface, custom labels, zoom level, border layout and link to the full size map. Both HTTP and HTTPS protocols are supported. The default settings defined in the admin panel are used for all the maps in the site, and they can be overridden for individual maps.
To embed a map in a post, page or text widget use the following code:
{google_map}address{/google_map}
*{google_map}latitude,longitude{/google_map}
**{google_map}url{/google_map}
*latitude,longitude = coordinates in decimal degrees
** URL of a map stored under My Places on Google Maps
To override one or more default settings use the following code:
{google_map}address|zoom:10{/google_map}
{google_map}address|version:classic|zoom:10{/google_map}
{google_map}address|zoom:10|lang:it{/google_map}
{google_map}address|lang:system{/google_map}
{google_map}address|width:200|height:200|border:1|border_style:solid|border_color:#000000{/google_map}
{google_map}address|width:200|height:200|link:yes|link_label:Label{/google_map}
{google_map}address|link:yes{/google_map}
{google_map}address|type:satellite{/google_map}
{google_map}address|show_info:yes|info_label:Label{/google_map}
{google_map}address|link_full:yes{/google_map}
{google_map}address|https:yes{/google_map}
*{google_map}latitude,longitude{/google_map}
**{google_map}url|width:200|height:200|border:1{/google_map}
*latitude,longitude = coordinates in decimal degrees
** URL of a map stored under My Places on Google Maps
To embed a map in a template use [google_map] shortcode. For example:
echo do_shortcode(‘[google_map]’.$address.'[/google_map]’);
All the settings supported by Embed Google Maps plugin can be set as shortcode attributes. For example:
echo do_shortcode(‘[google_map version=”classic” lang=”en” link=”yes” width=”200″ height=”200″]’.$address.'[/google_map]’);
In addition, [google_map] shorcode can be used inside pages, post and text widgets too.
Adding the plugin using the built-in plugin installer:
Or:
/wp-content/plugins/
directoryAdding the plugin using the built-in plugin installer:
Or:
/wp-content/plugins/
directory