Support » Plugin: CBX Map for Google Map & OpenStreetMap » Want to post multiple points

  • 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').'" ]');

    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.

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

  • The topic ‘Want to post multiple points’ is closed to new replies.