Home › Forums › Front-end Issues › Values not displayed in imported content › Reply To: Values not displayed in imported content
Okay, The import tool for XML is really not that good to be honest with you.
The reason why you need to resave all the posts is because ACF uses an internal structure where each ACF field in the DB is paired with a “hidden” field which uses the structure of _field_name (the main field has field_name). These are probably not copied along with your XML file…
Also the reason why batch updating does not work is because it doesn’t actually update the entire post but rather looks for any settings you’ve set in the batch update editor and just updates those.
So I’m afraid your option is to either update each post manually, import them in another way or create a short script that updates the posts automatically. I’m not 100% sure the last option would work tho.
if you tell me the slug of your cpt I can probably create a simple snippet for you to test 🙂
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.