Created
May 15, 2014 19:01
-
-
Save tomharrigan/a0e889d1c0e90e63ea11 to your computer and use it in GitHub Desktop.
Delete excerpts for all posts except those is specified category
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_5_posts SET post_excerpt='' WHERE 1=1 AND ( wp_5_posts.ID NOT IN ( SELECT object_id FROM wp_5_term_relationships WHERE term_taxonomy_id IN (95225) ) ) AND wp_5_posts.post_type = 'post' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment