Home › Forums › Backend Issues (wp-admin) › Rename fields and move data (migrate DB) › Reply To: Rename fields and move data (migrate DB)
Hi @mrt
I am afraid there is no other approach from the API apart from updating the postmeta records from the database.
You would need to update the wp_postmeta table to change the keys from the old one to the new one.
However, this will only work for simple fields such as text fields. As for repeater sub fields and flexible content sub fields, you will need to modify the specific field key modifield considering the repeater name as well.
Hope this helps.
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.