Home › Forums › General Issues › Map in ACF wp_insert_post › Reply To: Map in ACF wp_insert_post
I cannot tell you exactly what needs to be added because I don’t have any sites that use google maps. But I can tell you how to find what you want to know.
1) Edit a post and add a map
2) Examine your database wp_postmeta table and find the meta value for the field
This will tell you exactly what needs to be in that field.
From previous topics I know this is an array and that you must connect to the google map API to get the data for the address.
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.