Home › Forums › General Issues › Convert Regular Custom Fields To Advanced Custom Fields? › Reply To: Convert Regular Custom Fields To Advanced Custom Fields?
If you set the field names of the fields when setting up ACF to the name of the current custom field ACF will pick up the values the next time the post is edited.
If you want to set them all to be picked up without editing each post then that’s a bit more work. Each field in ACF has two entries in the postmeta table.
Let’s say that your field name is represented by $fieldname. The two custom fields that need to be saved are
$fieldname = your value
‘_’.$fieldname = acf field key
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.