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!
ACF wouldnât be so widely used in WordPress if it didnât have some pretty amazing capabilities. In this article, we look at a few of the features weâll discuss during â7 things you didnât know you could do with ACFâ at #WPEDecode later this month. https://t.co/5lnsTxp81j pic.twitter.com/Yf0ThPG1QG
— Advanced Custom Fields (@wp_acf) March 16, 2023
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.