Home › Forums › General Issues › How to retrieve only iframe source link of Google Map Custom Field. › Reply To: How to retrieve only iframe source link of Google Map Custom Field.
I’m getting this error “The Google Maps API server rejected your request. Invalid request. Missing the ‘q’ parameter.”
There seemed to be a missing “)” tried many combinations though I’m not sure I included it correctly..
$src = esc_url(add_query_arg([
'key' => MyKey,
'q' => $map['address']], 'https://www.google.com/maps/embed/v1/place')); ?>
Regards.
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.