'ACF Frontend Address Link
I am using the below code to display a link on my Frontend that opens an address in google maps. I would like the link address to show as the actual address, right now I have it say Click here to get directions, but I would like for it to just display the actual mailing address and someone can just click on that to open the address. Any help would be greatly appreciated.
<a href="https://www.google.com/maps/place/<?php echo get_field ('address'); ?>" target="_blank"><?php _e('Click here to get directions.','roots'); ?></a>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
