How-to · WordPress (self-hosted)
Add a Google Map to your WordPress site
How to show your business location on a map on your WordPress website, using the built-in map element or Google’s embed code.
Steps checked against the platform’s own help pages on 27 October 2026. Menus move; if yours look different, tell us and we’ll update this page.
WordPress has no map block of its own, but you can paste Google’s embed code into a Custom HTML block.
Steps
- In Google Maps, find your business, click Share, then Embed a map, then Copy HTML.
- In the WordPress editor, add a Custom HTML block (type
/html). - Paste the code and click Update or Publish.
Good to know
- Use an Administrator or Editor account; for other roles WordPress removes embedded frames when saving.
Who can save the code
What matters is the unfiltered_html capability. WordPress says that for a user without it, such as a Contributor, the block’s content is cleaned with wp_kses when the post is saved or updated. That strips disallowed tags, including <iframe> and <script>, so the map vanishes after saving. Roles and capabilities are covered in WordPress’s own documentation.
Pasting and checking
In the block, click Edit HTML to open the editing window. Your code is on the left and a preview of the result is on the right, and a button at the top right makes the window full screen. Press Update when you’re done. The Custom HTML block has no extra settings in the sidebar. If the map is missing after you save, check your role first.
Put the map on your contact page with your address in text too, so people can copy it. More in contact page best practices.
Add a Google Map on other platforms
More how-tos for WordPress (self-hosted)
Sources
Filed under Getting foundGetting more enquiries
Next step
Not sure where your own business stands?
A two-minute check-up shows where you are losing time and customers, and what to fix first.



