Hi thank you for a great plugin.
I am very new to PHP can just about hack together some Genesis child themes, not a lot of coding experience
I have worked out how to display text fields in a Genesis child theme and that works great. However I have no idea how to display a Google Map field at all
The code I am using for the standard fields looks like this.
if(get_field(‘name’)){
$field_name = “name”;
$field = get_field_object($field_name);
echo ‘‘, $field[‘label’],’‘ . ‘: ‘ . $field[‘value’],'</br>’;}
Any help would be really useful
For the record I found this
if ($features = get_field('map')) {
$location = get_post_meta( get_the_ID(), 'map', true );
echo '<p><a href="https://www.google.com/maps/preview#!q=' . urlencode( $location['address'] ) . '"><img src="http://maps.googleapis.com/maps/api/staticmap?center=' . urlencode( $location['lat'] . ',' . $location['lng'] ). '&zoom=13&size=400x400&maptype=roadmap&sensor=true" /></a></p>'; }
It place a static map on the page fine, but anyone know how to put regular map with a marker on the page, the same as the one in the admin area.
Any help would be great