Last active
May 30, 2016 14:28
-
-
Save jbrz0/c449153f4586fab2987215a7cada9a3c to your computer and use it in GitHub Desktop.
Edit permalinks in wordpress page content after wordpress install/migration
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 wp_posts SET post_content=(REPLACE (post_content, '<old url>','<new url>')); | |
/* Replace old image permalinks (for content) in wp_posts table for WORDPRESS */ | |
/* Example: | |
UPDATE wp_posts SET post_content=(REPLACE (post_content, 'inmotiontesting.com','test.inmotiontesting.com')); | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment