Created
August 26, 2019 09:48
-
-
Save avenirer/37cc38388ab47f4113ad94a6d6492345 to your computer and use it in GitHub Desktop.
Wordpress mysql - remove whitespaces from post_excerpt and post_content
This file contains 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_excerpt = REPLACE(post_excerpt, ' ', ''); | |
UPDATE wp_posts SET post_excerpt = REPLACE(post_excerpt, '\t', '' ); | |
UPDATE wp_posts SET post_excerpt = REPLACE(post_excerpt, '\n', ''); | |
UPDATE wp_posts SET post_content = TRIM(Replace(Replace(post_content,'\t','')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment