wordpress - MySQL query to duplicate a meta_key from wp_postmeta into a new meta_key -


basically want uninstall yoast seo because adds 7 seconds site's load time, want keep focus keywords seo purposes.

but first copy focus keywords own 'focus' post meta.

the structure in red, , add part in green. afterwards remove yoast's references:

db structure

  • yoast's meta_key: _yoast_wpseo_focuskw
  • desired key copy to: focus

i not clued sql queries, i've tried:

update wp_postmeta set _yoast_wpseo_focuskw = focus

but did not work. appreciated.

try :

update wp_postmeta set meta_key = 'focus'  meta_key = '_yoast_wpseo_focuskw' 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -