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
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.