Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$location = get_field('post_map');
if( !empty($location) ): ?>
<img style="margin-top:25px;" width="1500" height="250" src="http://maps.googleapis.com/maps/api/staticmap?center=<?php echo $location['lat'];?>,<?php echo $location['lng'];?>&zoom=15&size=1500x250&sensor=false&markers=color:red%7Clabel:%7C<?php echo $location['lat'];?>,<?php echo $location['lng'];?>">
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment