<?php
$address = get_field('field_name')['address'];
$address_str = str_replace(' ', '+', $address);
$lat = get_field('field_name')['lat'];
$lng = get_field('field_name')['lng'];
$lat_lng = '/@' . $lat . ',' . $lng;
?>
<a href="https://google.com/maps/place/<?php echo $address_str . $lat_lng ?>" target="_blank"><?php echo $address ?></a>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.