Answers.Body: <p>I don't think there's anything out of the box that does this. But if you're comfortable with PHP/JavaScript then it's not too tricky.</p>
  
  <p>I'd create a WordPress template for that particular page, grab the event data using the API, and manually populate a google map. Untested code based on a similar thing we did recently:</p>
  
  <pre><code>&lt;?php 
  
  /*
  Template Name: Your Template
  */
  
  get_header(); 
  
  ?&gt;
  
  &lt;script src="http://maps.googleapis.com/maps/api/js"&gt;&lt;/script&gt;
  &lt;!--needs loading before the footer--&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;?php
  
  //initialising CiviCRM Plugin
  if (!civicrm_wp_initialize()) {
          return '';
      } 
  
  require_once 'api/api.php';
  
  //Grab data from API
  $result = api call
  
  //print json-encoded version
  echo "var events = " . json_encode($result);
  
  ?&gt;
  
  &lt;script type="text/javascript"&gt;
  
  //set up the map
  var map;
  
  function initialize() {
  
      //map properties
    var mapProp = {
      center: new google.maps.LatLng(53.156594, -3.847324),
      zoom:6,
      mapTypeId:google.maps.MapTypeId.ROADMAP
    };
  
    //set up map
    map=new google.maps.Map(document.getElementById("googleMap"),mapProp);
  
    //loop through event data
    jQuery.each(events.values, function(key, data) {
  
    //get lat and long
    //this is made up - adapt for where the lat/lng actually are in the data
    var latLng = new google.maps.LatLng(data.geo_code_1, data.geo_code_2); 
  
   //create marker for each event
          var marker = new google.maps.Marker({
              position: latLng,
              title: socName,
              map: map
          });         
  
      });
  
  }
  
  //initialize the map
  google.maps.event.addDomListener(window, 'load', initialize);
  
  &lt;/script&gt;
  
              &lt;h2&gt;&lt;?php the_title(); ?&gt;&lt;/h2&gt;
              &lt;?php wp_reset_query(); ?&gt;
              &lt;div id="googleMap"&gt;&lt;/div&gt;
              &lt;?php the_content(); ?&gt;
  
  &lt;?php get_footer(); ?&gt;
  </code></pre>
  
  <p>Regarding the API calls, it looks like you'd need a few:</p>
  
  <p>This'll get you the event title and its 'location block id':</p>
  
  <pre><code>$resultEvent = civicrm_api3('Event', 'get', array(
    'sequential' =&gt; 1,
    'return' =&gt; "loc_block_id,title",
  ));
  </code></pre>
  
  <p>you'd then need to look up the location block id for each event:</p>
  
  <pre><code>$resultLocBlock = civicrm_api3('LocBlock', 'get', array(
    'sequential' =&gt; 1,
    'id' =&gt; id from first query,
  ));
  </code></pre>
  
  <p>this'll then return an address ID, which you can look up with:</p>
  
  <pre><code>$resultAddress = civicrm_api3('Address', 'get', array(
    'sequential' =&gt; 1,
    'id' =&gt; address id from second query,
  ));
  </code></pre>
  
  <p>and the resulting array will contain the latitude and longitude.</p>
  
  <p>It <em>might</em> be possible to do all the above in one go using <a href="http://wiki.civicrm.org/confluence/display/CRMDOC/Chaining" rel="nofollow">chaining</a>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-03T13:21:49.443Z
Answers.Text: Be cautious about loading JS files directly into the template on WP; you could be loading duplicates. I recommend checking this out: https://codex.wordpress.org/Function_Reference/wp_enqueue_script
Answers.UserDisplayName: Nicholai
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-03T13:38:03.810Z
Answers.Text: ah yes, I do remember this being a bit of a desperate move to get jQuery loading *somehow*. Should do it with the map code too. Thanks!
Answers.UserDisplayName: Andrew West
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-06T21:34:01.650Z
Answers.Text: hi thanks @AndrewWest when you write:
  //Grab data from API
  $result = api call
  
  Where can I find some sample API calls that will return a list of location  by evengs?
Answers.UserDisplayName: andrea-f
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-08T12:56:53.170Z
Answers.Text: I've updated my answer with some API calls. Bit more fiddly than I expected.
Answers.UserDisplayName: Andrew West
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-03T12:35:08.807Z
Answers.LastActivityDate: 2015-09-08T12:56:17.557Z
Answers.LastEditDate: 2015-09-08T12:56:17.557Z
Answers.UserDisplayName: Andrew West
Answers.Body: <p>Create page in wordpress and include CiviCRM event using civiCRM Component in the page and also their are may wordpress plugins like (embed-google-map) 
  you can use for map location </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-03T11:53:44.850Z
Answers.LastActivityDate: 2015-09-03T11:53:44.850Z
Answers.UserDisplayName: Ramesh - ARTECH Consultancy
Body: <p>In the project I am working on a user can create an event with also a postal code information and address. I want to create a page where these events are all shown on a map, how can I do this with Civicrm or another wordpress plugin? The events are in Civicrm db.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-08T18:25:22.647Z
Comments.Text: Not posted as an answer, since you ask about WordPress, but in Drupal this is relatively easily handled with Views and a mapping plugin that can send coordinates to Gmap, OpenLayers, Leaflet, etc.
Comments.UserDisplayName: choster
Tags: <civievent><wordpress>
Title: How to display events on a map?
ThreadText: # How to display events on a map?
  
  (Asked by: username_0 on 2015-09-03)
  
  In the project I am working on a user can create an event with also a postal code information and address. I want to create a page where these events are all shown on a map, how can I do this with Civicrm or another wordpress plugin? The events are in Civicrm db.
  
  **Tags:** civievent, wordpress
  
  > **Comments:**
  > **username_1**: Not posted as an answer, since you ask about WordPress, but in Drupal this is relatively easily handled with Views and a mapping plugin that can send coordinates to Gmap, OpenLayers, Leaflet, etc.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2015-09-03. Score: 3
  
  I don't think there's anything out of the box that does this. But if you're comfortable with PHP/JavaScript then it's not too tricky.
  I'd create a WordPress template for that particular page, grab the event data using the API, and manually populate a google map. Untested code based on a similar thing we did recently:
  
  
  
  
  
  
  
  
  
  
              
              
              
              
  
  
  
  Regarding the API calls, it looks like you'd need a few:
  This'll get you the event title and its 'location block id':
  $resultEvent = civicrm_api3('Event', 'get', array(
    'sequential' => 1,
    'return' => "loc_block_id,title",
  ));
  
  you'd then need to look up the location block id for each event:
  $resultLocBlock = civicrm_api3('LocBlock', 'get', array(
    'sequential' => 1,
    'id' => id from first query,
  ));
  
  this'll then return an address ID, which you can look up with:
  $resultAddress = civicrm_api3('Address', 'get', array(
    'sequential' => 1,
    'id' => address id from second query,
  ));
  
  and the resulting array will contain the latitude and longitude.
  It might be possible to do all the above in one go using chaining.
  
  > **Comments:**
  > **username_3**: Be cautious about loading JS files directly into the template on WP; you could be loading duplicates. I recommend checking this out: https://codex.wordpress.org/Function_Reference/wp_enqueue_script  
  > **username_2**: ah yes, I do remember this being a bit of a desperate move to get jQuery loading *somehow*. Should do it with the map code too. Thanks!  
  > **username_0**: hi thanks @AndrewWest when you write: //Grab data from API $result = api call  Where can I find some sample API calls that will return a list of location  by evengs?  
  > **username_2**: I've updated my answer with some API calls. Bit more fiddly than I expected.  
  
  ---
  
  ### Answer by username_4 on 2015-09-03. Score: 0
  
  Create page in wordpress and include CiviCRM event using civiCRM Component in the page and also their are may wordpress plugins like (embed-google-map)
  you can use for map location
  
  
  ---
  
  