Support

Account

Home Forums General Issues Google maps with multiple markers Reply To: Google maps with multiple markers

  • Hi @lowercase
    Quick question for you. How did you manage to get your orignal code to work with out referencing the post ID the only way I can get mine to display a single post is to included the post id
    Im using ACF & CPT UI plugins
    Cheers for the advice in advance 🙂

    <?php 
    
    $location = get_field('location_now',22);
    
    if( !empty($location) ):
    ?>
    <div class="acf-map">
        <div class="marker" data-lat="<?php echo $location['lat']; ?>" data-lng="<?php echo $location['lng']; ?>"></div>
    </div>
    <?php endif; ?>
    

    My aim is to create a stand alone map that loops all the map points but I cant seem to get the template file to work