KML Google Maps WordPress Plugins are easy way to integrate KML Google Maps in WordPress blog and also we have added the manual ways to Insert using PHP script. The theoretical as well as descriptive part of KML Google Maps has been said before, now how to implement KML Google Maps inside your WordPress blog.
Adding KML Google Maps using WordPress Plugins
We found some KML Google Maps WordPress Plugins those can be easier to use for the users who needs to add KML Google Maps regularly on their website or blogs. For single Map, probably they are too much and manual method described later should fit better.
Comprehensive Google Map Plugin : Quite advanced plugin and has lot of features.
---
Google Maps GPX Viewer : Overlay your GPS tracks, trails or Points of Interests by gps files like kml or gpx even mix them.
XML Google Maps : Even if you have a GPX-File from your GPS, upload it, link it and it get displayed. Good for adding KML Google Maps in personal profile blogs, for example.
Manual method for adding KML Google Maps

Quite obviously, for adding 1-2 KML Google Maps, probably using a plugin will be too much particularly for the advanced users. But there are various problems for which you can not directly add KML Google Maps in to your WordPress posts.
The fundamental theory is – if we use require_once call via PHP we can easily call the action with required data of KML Google Maps. PHP call will by default work if you add via :
- Some Plugin hooks like Genesis Hooks for Genesis Framework
- Some Plugin which allows to execute PHP inside posts
- One sidebar with PHP execution box
- Within any WordPress loop
The required code for adding KML Google Maps in this way is :
<?php
require_once(‘../path/to/filename.php‘);
iframe(“http://absolute-URL.com/path/to/file.kml“);
?>
The paths, files need to be changed. The required files for adding KML Google Maps along with description is nicely developed by our favorite plugin Ad Injection’s developer here Improved embedding of KML Google Maps into web pages.
