Home Features Download v18.5 Child theme GGitHub

Google Maps

This feature allows you to show advanced Google Maps with multiple custom pins. It also enhances the experience with the usage of clusters, whenever some pins are too close to each other. The content of each marker is taken by the post's information, such as the title, content and featured image.

After you activate the Google Maps from the libraries section, you will see a new custom post type. First you have to setup an API key and assign a random Map ID. Then create posts based on the markers you want to show. In order to show all the pins, no matter their category, you can simply call the shortcode: [google_maps]. Here are all the arguments you can use to modify its output:

Shortcode Options

  • cat : Category slug
  • zoom : Zoom level
  • center : Coordinates to center the map
  • pin : Image URL (ex. img/path/image.jpg|40|40)
  • info : Show infoWindow (boolean)
  • tag : Filter results by a post tag
  • cluster : Disable marker clusterer
  • sidebar : Show a sidebar with each pin found
  • search : Enable Google Search (requires Places)
  • radius : Radius in km to show results


Example

[google_maps center="41.15|24.5" cluster="true" sidebar="true" zoom="4"]




[google_maps center="41.15|24.5" cluster="true" sidebar="true" zoom="8" tag="one"]


🦁 Gridy