Insert a google map in a WordPress page

I’m new to wordpress and am trying to insert a Google map in a page.

I found tutorials for including a map using the “link” functionality on maps.google, but I want to load specific markers, defined in an xml file.

Read More

Do I need a plugin to do that ?

Related posts

Leave a Reply

1 comment

  1. what you could do is create a page template file for your custom code..

    ie:

    make a copy of page.php open it up in your editor, and paste this at the top of the page before the get_header;

    <?php
    /*
    Template Name: CustomMapPage
    */
    ?>
    

    then after you do this & upload it, go back to your wordpress admin, the page you are trying to add the map to (reload/refresh that page) and on the right sidebar select from teh dropdown for template and assign it the value of ‘CustomMapPage’ then update your page,

    Now your using a page template in which you can add code to, which will generate your map,

    in your template page add your google api key and any other javascript files you need,
    then following a tutorial like this or a plugin like this