Support » Fixing WordPress » Multiple google map pins on map

  • Hello People.

    I have the cbx google map plugin and it quite happily shows a google map with the following code.

    echo do_shortcode('[cbxgooglemap lat="'.get_field('latitude').'" lng="'.get_field('longitude').'" ]');

    [ redundant link removed ]

    I have a “custom post type” called airfield-cards, and I would like to run a loop so that the map shows pins from all 460+ airfields and a link back to the custom post. The plugin gets the latitude and longitude from an advanced custom field in the airfield card.

    This is what I would like to do in plain english, please can someone help me to code it.

    for each custom post type “airfield card”
    draw a google map
    take the lat and long from the custom lat and long advanced custom field
    place a marker on the map corresponding to the lat and long of each airfield
    make each marker a link to the specific “airfield card”

    Your input will be really appreciated.

    • This topic was modified 1 year, 6 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple google map pins on map’ is closed to new replies.