Home › Forums › Front-end Issues › google maps field front end show only address › Reply To: google maps field front end show only address
Hi,
You could explode the string and var_dump
the result to find the index to echo, for example:
$address = explode( ', ', $map_location['address'] );
var_dump( $address );
echo $address[1] . ' ' . $address[2];
But I would save that info in a seperate field to keep it consistent.
Hope it helps!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.