Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm looking to create a custom Google map that plots several markers on it that then shows custom data in the popup when the marker is clicked.

I've setup the pages in WP in this manner:

Map (parent page)

  • Company one (child)
  • Company two (child)
  • Company three (child)

...and so on.

I want the map to be on the map page and each marker to be of the child pages.

I use this plugin to create custom fields as it allows me to easily create the 20 or so fields (each one consists of various checkboxes, drop downs, image fields etc etc) per page.

How would I loop through each child page and plot the marker based on their post code?

share|improve this question
    
Take a look at the get_children function. codex.wordpress.org/Function_Reference/get_children –  Brian Fegter Sep 21 '11 at 10:25
    
@BrianFegter It's plotting the markers more than anything thats the problem. –  Rob Sep 21 '11 at 10:34
add comment

2 Answers

up vote 2 down vote accepted

I've done something similar using gmaps (http://gmap.nurtext.de/). You might want to take a look at that. It's self explanatory and there's quite a bit of documentation IF you google around.

share|improve this answer
add comment

Mappress is a really good solution for adding maps to posts and pages in WordPress.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.