Last active
August 29, 2015 14:22
-
-
Save robspangler/499d4116d61e94d4d92c to your computer and use it in GitHub Desktop.
Common WordPress Queries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Update Image Path from Old to New Domain | |
| UPDATE wp_posts SET post_content = REPLACE (post_content, 'src="http://OLDURL.com', 'src="http://NEWURL.com'); | |
| UPDATE wp_posts SET guid = REPLACE (guid, 'http://OLDURL.com', 'http://NEWURL.com') WHERE post_type = 'attachment'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment