Skip to content

Instantly share code, notes, and snippets.

@leowebguy
Last active November 17, 2015 02:39
Show Gist options
  • Save leowebguy/a5bf5cfedd376f023640 to your computer and use it in GitHub Desktop.
Save leowebguy/a5bf5cfedd376f023640 to your computer and use it in GitHub Desktop.
Replace WordPress post content using Mysql query
UPDATE wp_posts SET post_content = REPLACE (post_content, 'http://oldsite.com/', 'http://newsite.com');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment