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.
Usually when it return false is because there’s no value set on the post.
Can you double check that
1) your Map Field’s name is indeed called ‘google_map’?
2) the value is also saved properly?
3) your current post is indeed the post your are retrieving the value from? (do a var_dump(get_the_ID())
and see if the current post id is the same post id where you put the acf field)
4) make sure you are not mis-using get_field
and get_sub_field
(we all make this mistake form time to time 😉 )
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.