Home › Forums › Front-end Issues › Google Maps shows only string › Reply To: Google Maps shows only string
well i appreciate that u replied to me.
i grabbed this code:
and put it between the <head> <-> </head>
after this i grabbed
<?php
$location = get_field(‘location’);
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; ?>
and put it in the loop.
after it i created a field -> google maps with or without a location, but it doesnt render any map. It only shows the string of the location.
May u call me dump, but i am totally new to WP and Google Apia and ACF. I honor your work and time. I am not a full of load questioneer. Its the only thing whats missing on our website to begin with theming.
http://x-virus.org/spielorte/oberfranken/bamberg/memmelsdorf/schloss-seehof
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.