Highway 14 Headquarters
The Original Beer Creek Brewing Company is located on the north end of the famous Turquoise Trail, officially Highway 14 Scenic Byway, at the crossroads known as San Marcos in Santa Fe County. We brew all our beer on a…
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>

