WordPress GuideBuild → Add Google Map

How to add a Google Map in WordPress

Two men work on laptops at a desk

Adding a Google Map to your WordPress site is one of the easiest ways to improve local SEO, help visitors find you, and add an interactive element to your site. Whether you’re running a brick-and-mortar business, promoting an event, or simply want to share a favorite spot, embedding a map makes your content more helpful and trustworthy.

Let’s walk through all the ways to add a Google Map to WordPress, from simple copy-and-paste embeds to advanced plugin integrations.

Get fast, reliable hosting for WordPress

Power your site with the industry’s fastest, most optimized WordPress hosting

Why add Google Maps to WordPress?

Google Maps helps users connect with your real-world presence. Adding a map can:

Maps aren’t just for addresses. They build trust, offer convenience, and support conversions.

Method 1: Embed Google Maps manually (no plugin)

This is the quickest way to add a Google Map and requires no extra plugins or settings. It’s perfect if you only need to add one or two maps and don’t need advanced features.

1. Get the embed code from Google Maps

Go to Google Maps.

Enter the address, location, or landmark you want to feature.

Once the correct location appears, click the “Share” button.

In the popup, switch to the “Embed a map” tab.

Choose a size (default is Medium, but you can pick Small, Large, or Custom).

Copy the HTML iframe code provided.

Elementary …

2. Paste the code into your WordPress post or page

In the WordPress editor:

3. Save and preview your page

Click Preview or Update to make sure the map is rendering properly. The iframe should display the location and allow users to interact with the map (zoom, move, and open directions).

Pros and cons of manual embedding

Pros:

Cons:

If you need more control or want to add several maps, jump to Method 2.

Bonus: Create a custom map in Google Maps

It’s a common misconception that you need a plugin to create custom markers or show multiple locations, but this isn’t true. Plugins are fine, but you can create a custom map in Google and embed it into your WordPress site.

Open the Google Maps menu.

Click Saved.

Switch to the Maps tab.

Click Open My Maps. My Maps will open in a new tab.

Click Create a New Map, at the top.

Type in an address you want to show and click Add to Map.

You can add multiple locations to different layers, and toggle the layers on or off. 

When your map is ready, click Share and set the map to Public. Then, click the kebab menu next to the map name, and select Embed on my site.

If you need to make changes later, you can come back to My Maps, edit the map, and it will automatically update wherever you have it embedded. 

Method 2: Add Google Maps using a plugin

For more complex needs, plugins might be a better solution. They also help non-technical users avoid touching code entirely.

Best plugins for Google Maps in WordPress

Here are a few top-rated options:

How to install and configure a map plugin

Create and customize your map

Each plugin has its own interface, but generally, you’ll:

Some plugins require a Google Maps API key, which you can get from the Google Cloud Console. If needed, the plugin will prompt you and walk you through setup.

Add the map to a page or post

Most plugins provide a shortcode you can paste into any post, page, or widget:

[wp_map id=”1″]

In the Block Editor, you can add a Shortcode block, or in Classic Editor, paste it into the content area. Some plugins also offer a dedicated Map block.

Pros and cons of using a plugin

Pros:

Cons:

Troubleshooting common issues

Sometimes even the best-laid plans …

Map not displaying

API key errors

Some plugins will show a message like “For development purposes only” or won’t display the map. This means you need a Google Maps API key:

Map loads slowly or isn’t responsive

Alternatives to Google Maps

If you’re concerned about performance, privacy, or Google’s billing policies, here are some alternatives:

Additional resources

How to build a WordPress site →

A complete beginner’s guide that covers 9 key steps to a successful launch

WordPress menu icons: how to add images to your navigation →

Add visual appeal and improve navigation by easily adding icons to your WordPress menu items.

























How to use WordPress Gutenberg blocks →

A complete beginner’s guide to Gutenberg blocks