How to bulk delete manual excerpts of posts in WordPress

avatar
Share This:

Put the following code at the bottom of the theme’s functions.php, save and update, reload the site, delete the code from functions.php, save again and update. Then, you don’t need to go to MyPHPAdmin.

$wpdb->query( "UPDATE wp_posts SET post_excerpt='' " ); 

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

4 × 2 =