finally solved it by a damn mistake
<script src=”https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=true”></script>
first it was set to false
now its perfectly working.
thanks for your time
Safari shows me one error:
ReferenceError: Can’t find variable: jQuery
its the last line of your example code
I dont know what it means
Thanks for answering 🙂
I am really sorry about my wall-posting
What data do you get?
Array
(
[address] => Memmelsdorf, Deutschland
[lat] => 49.9312092
[lng] => 10.958558400000015
)
i brought the
<?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; ?>
outside the loop.
Now it shows an empty field width the height of the acf css
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.