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.
Based on that dump url, seems like your $map[‘location’] is false, therefore the ‘q’ parameter is not being added.
Also weird that your key is 0. How did you defined your MyKey
?
try do a var_dump($map)
and see if acf actually returns any value.
I just tried it too, the code seems to work for me.
Cheers
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.