I need a sql query that will allow me to take the contents of a WordPress custom field and insert them into the existing post (post_content). I have thousands of record that I need to do this with.
My limited SQL knowledge isnt good enough to figure this out since the the custom fields are stored in the “wp_postmeta” table and the post content is stored in the “wp_posts” table.
Thanks
You don’t need to (and you most definitely don’t WANT to) use SQL to do what you want.
Since you haven’t actually tried anything yet, you should take a look at Update Post Meta if you want to make sure all of your tables are populated correctly, and everything is referenced properly according to WordPress’ standards.
If you run into any issues with writing the actual code to handle this, please open a new question and show us what you’ve tried.
Good luck.