Right now, many people are using Google Maps to add more unique content to their visitors, such as showing their location of their business or event.
Today’s tutorial is how to insert Google Maps into WordPressPosts/Pages without a Plugin, we first need to write a Google Maps shortcodeand we can put our own maps easily into our WordPress posts.
The first time we write the code below in your theme functions.php and then we need to put the shortcode in our post/page with some parameters.
Code To Inserting Google Maps using shortcode
You can change the width and height to what ever you want. Just replace it in the code above.
Now it’s time to practice, to use this shortcode is easy, just write in your post/page
You can Replace [you_url] with your Google Maps Link
There is also another method by using Inline Google Maps WordPress Plugin, if you need some tutorials about the Google Maps Plugin you can try using this tutorial, thanks go to DigWP for sharing his tricks.