ACF Google Maps – Ways to output and format the Address in text form.

You can use Advanced Custom Fields to do some pretty cool things with Google Maps. But often you would want to spit out the address from the map in a formatted form. Here are some examples:

Simplest form:

“111 My Road, City, ST, United States”

Strip the “, United States”

“111 My Road, City, ST”

Strip the “, United States” and add a break making it multiline

” 111 My Road
City, ST ”

 

Leave a Reply

Your email address will not be published. Required fields are marked *

82 − 76 =