Google Maps made Simple Shortcode

Below, you’ll find a detailed guide on how to add the Google Maps made Simple Shortcode to your WordPress website, including its parameters, examples, and PHP function code. Additionally, we’ll assist you with common issues that might cause the Google Maps made Simple Plugin shortcode not to show or not to work correctly.

Before starting, here is an overview of the Google Maps made Simple Plugin and the shortcodes it provides:

Plugin Icon
Google Maps made Simple

"Google Maps made Simple is a WordPress plugin designed to seamlessly integrate Google Maps into your website. It simplifies map creation and customization, making it easy for users to add interactive maps to their content."

★★★★✩ (6) Active Installs: 2000+ Tested with: 3.4.2 PHP Version: false
Included Shortcodes:
  • [wpgmappity]

Google Maps made Simple [wpgmappity] Shortcode

The WP-Gmappity Easy Google Maps shortcode is a tool that fetches map data based on the ID provided. This shortcode retrieves the map metadata associated with a specific ID and generates a container div for the map. It also creates the necessary JavaScript to display the map.

Shortcode: [wpgmappity]


Here is a list of all possible wpgmappity shortcode parameters and attributes:

  • id – Unique identifier of the specific map to be displayed

Examples and Usage

Basic Example – A simple usage of the shortcode to display a map by referencing its ID.

[wpgmappity id=1 /]

Advanced Examples

Displaying a map by referencing its ID, along with custom parameters to manipulate the map’s appearance and functionality. For instance, you can define the map’s width, height, zoom level, and type (roadmap, satellite, hybrid, or terrain).

[wpgmappity id=1 width="500" height="300" zoom="14" maptype="roadmap" /]

In another advanced example, we can use the shortcode to display multiple maps on the same page by referencing their IDs. Each map will be loaded with its own settings defined in the plugin’s backend.

[wpgmappity id=1 /]
[wpgmappity id=2 /]
[wpgmappity id=3 /]

Please note that the actual parameters supported by the shortcode will depend on the plugin’s functionality and configuration. Always check the plugin’s documentation for the most accurate and up-to-date information.

PHP Function Code

In case you have difficulties debugging what causing issues with [wpgmappity] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode('wpgmappity', 'wpgmappity_shortcode_handle');

Shortcode PHP function:

function wpgmappity_shortcode_handle($attr) {
  global $post;

  $map = wgmappity_get_meta_data($attr['id']); 
  $map = $map[0];
  $content = wpgmappity_shortcode_container_div($map);
  $content .=  wpgmappity_shortcode_mapjs($map); 
  return $content;

Code file location:



Now that you’ve learned how to embed the Google Maps made Simple Plugin shortcode, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.


Leave a Reply

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