Search & Remove Specific Shortcode From All Posts

For the permanent solution, your SQL query is slightly off – you need:

UPDATE db1357924680.wp_posts SET post_content = REPLACE( post_content, '[print_me]', '' ) WHERE post_content LIKE '%[print_me]%' 

MySQL replace example

Leave a Comment