Alex Barber | Digital Artist

time to push the pixels

WordPress – replace content in posts with sql

Found this line here: http://dev.mysql.com/doc/refman/5.0/en/replace.html

UPDATE wp_posts SET post_content = REPLACE(post_content, ‘olddomain.com’, ‘newdomain.com’);

Next Post

Previous Post

© 2022 Alex Barber | Digital Artist