0
Asking here because it seems more a matter of SQL than Wordpress.
I have a Wordpress installation that uses custom fields from both the ACF plugin and the template. There are over a thousand posts using the plugin’s "Subtitle" field - the template fields are empty.
Now I need to migrate all the values of these fields to the fields of the template itself, called "td_subtitle". I saw an answer on how to do this with SQL:
update wp_postmeta set meta_value = 'subtitle' where meta_key = 'td_subtitle';
But checking the database, the value of "td_subtitle" is inside an array, like this:
a:1:{s:11:"td_subtitle";s:24:"Subtítulo de um post blablabla";}
"td_subtitle" actually goes inside meta_key "td_post_theme_settings", which has other values besides it.
Question: how to move meta_key values from Subtitle to td_post_theme_settings > td_subtitle?