Home › Forums › Backend Issues (wp-admin) › Empty ACF values in wp-admin › Reply To: Empty ACF values in wp-admin
Is it possible to fix if with update_meta ?
Support’s answers about problem:
This is a common occurrence when fields are imported from an external source to the database. The issue occurs because imported field values lack a field reference to format the value of the field so that it can properly load on the admin UI. To fix this, you will need to pass the values through the update_field() function. Please take a look at the following resource page for more info on this: https://www.advancedcustomfields.com/resources/update_field/
and
ACF saves term data using a post id parameter containing the string ‘term_’ and thus you will need to ensure that you factor this in while coming up the code. Please note that our support scope does not extend to the provision of custom code snippets but it looks like you are on the right track. I would suggest that you debug your code line by line to ensure that it is returning the expected data. Please take a look at our debugging tutorial on this page: https://www.advancedcustomfields.com/resources/debug/
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.