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!
The most recent ACF Chat Friday featured a live demo of how to register CPTs directly in the plugin, one of our most requested features. Check out the summary below for a replay of the demo, and don’t forget to register for the next session! https://t.co/k2KQ3WWBAz— Advanced Custom Fields (@wp_acf) March 9, 2023
© 2023 Advanced Custom Fields.