Are you looking for a way to embed Google Maps in WordPress? It’s a good skill to have – using a map is an awesome visual tool that allows you to quickly communicate a whole variety of information.
If you’re a business, you can use it to show prospective customers where you’re located. Or, if you’re a blogger, you can use it to showcase spots for your readers to check out.
But you can only do those things if you know how to add Google Maps to WordPress. To help you do that, I’m going to show you two different methods:
Then, at the end, I’ll recommend a few more plugin options that offer some different tweaks that might fit your needs better.
Sound good? Let’s dig in!
I’m going to start off with a quick guide on how to add Google Maps in WordPress without a plugin.
This method is good if you just want to embed a single location marker or set of directions. Or, you can also use Google My Maps to create your own custom map with a lot more functionality. Later on, I’ll show you a plugin that can help you do something similar from right inside your Google dashboard.
But for now, let’s stick to the manual method!
Here’s how to use Google Maps in WordPress au naturel (no plugin).
Below, I’ll go through the two options for creating the map that you embed. With both options, you’ll get an embed code that you’ll use in the next step.
If you just want to embed a standard Google Maps map that you see at the regular Google Maps website, all you need to do is:
If you want to create a more advanced map with things like:
Then you can use Google My Maps instead of the regular Google Maps interface.
This is the tool that I used to create a map of rooftop bars in Hanoi on my travel site (you can see it in action here):
To use Google My Maps, click on the Create A New Map button after signing in:
Then, build your map with the interface (this video has a good tutorial on the various interface options if you need help).
Once you’ve built your map, click Share and then, next to Private – Only you can access, click the Change button:
Then, choose On – Public on the web and click Save:
Once you’ve made your map public, click on the three dots button and choose Embed on my site:
Then, copy the embed code because you’ll need it in the next step:
Now that you have your embed code, either from the regular Google Maps interface or Google My Maps, edit the post or page where you want to embed your map.
Then, choose the Text tab in the WordPress editor and paste in the embed code:
And that’s it! When you publish or update your post, you should see your Google Maps embed right there:
The above methods are fine for basic Google Maps embeds. But sometimes you want to get a little more creative. In that case, you might want to turn to a Google Maps plugin.
Google Maps plugins are cool because, in addition to letting you create your own custom Google Maps, they also let you do WordPress-specific things like:
And because these plugins use shortcodes instead of iframes (like the manual Google Maps embed code), they’re a bit more user-friendly (that is, you won’t have to use the Text tab in the WordPress editor).
I’ll show you a tutorial using the most popular free Google Maps plugin – WP Google Maps.
To get started with this tutorial, make sure that you have WP Google Maps installed and activated.
No matter which Google Maps plugin you use, this is always going to be the first step because Google requires you to get something called an “API Key” to work with Google Maps.
Basically, this free API Key allows your chosen plugin to connect to the Google Maps service to help you create a map.
To create your API key, you can watch the plugin’s detailed instructions video.
Once you get your API key, plug it into the box and click Save:
The free version of this plugin only lets you create one custom map. So to make your first map, you’ll need to click Edit under My first map:
That will launch you into the editor interface.
At the top of the map editor interface, you’ll see a number of different tabs. These tabs allow you to configure basic settings about your map:
Once you’ve configured those settings, you’re ready to actually work on your map itself.
Below the basic settings, you can start adding elements to your map using the five different tabs.
To add a marker, you can either:
Once you save your marker, it will show up on the map and you can add another one.
You can also view a full list of your markers and edit existing markers in the Your Markers section:
In the Polygon and Polylines tab, you can launch an interface that lets you create a more complicated set of shapes:
Once you finish adding map elements, make sure to click Save Map.
Once you’ve saved your map:
While the WP Google Maps plugin above is by far the most popular WordPress Google Maps plugin, most of the coolest features are locked behind the Pro version, which is a bit unfortunate.
If you’re looking for other options, here are some good ones:
For example, here’s a look at the full-screen maps creator interface from the Maps Builder plugin:
All these plugins are fairly similar. So once you figure out how to create your API key and understand the basic interface, you should be able to quickly pick up a new plugin.
If you just want to create a basic Google Maps embed and don’t need to link it to any WordPress-specific functionality – like a store locator or your actual posts – then I think your best bet is to use the manual method.
Between the regular Google Maps interface and Google My Maps, you have a good deal of flexibility for creating maps. Then, you can embed them anywhere using the iframe code.
If you do need WordPress-specific functionality, or if you just prefer to work from within your WordPress dashboard, then all of the plugins that I listed are quality options. To choose between them, consider these facts:
Finally, some WordPress themes and plugins include built-in maps functionality. For example, the Consulting theme includes an easy way to display a location on a map. And many WordPress page builders also include dedicated maps modules.
SeedProd is one of the elders of the WordPress ecosystem. It's also a bit of…
Really Simple Syndication (RSS) feeds are a vital component of the WordPress ecosystem. They act…
It’s that time of year again when people start revving up their shopping lists, hunting…
If you clicked on this post, I’m guessing you want to find the best solution…
Trying to figure out how to start an online course so that you can share…
Considering using Teachable to create an online course? In our hands-on Teachable review, we'll help…
View Comments
Nice piece of information. I think plugin gives you more information than embedding the map alone.