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]%'
Related Posts:
- MySQL Query to Retrieve Category from wp_posts
- SQL Query for getting all posts in their latest revised state
- Update all posts automatically when using post_meta
- Manually delete post from database
- Shortcode Not displayed at the Right Place [duplicate]
- Automatically added brs and paragraphs?
- Specific loop in Shortcode
- Query All users that has post
- How To Add Perfect Apostrophe And Quotation Mark In WordPress Posts?
- Hide Post comments when displayed via WP_Query
- Remove Shortcode […] from Blog Preview
- Manually removing revision post types
- Reset/Reorder posts ID in the MySQL wp_posts table
- UberMenu list current user’s posts as menu items
- Tags to Post-ID mysql query. Tag Search
- Query how many items to show in shortcode
- do_shortcode within post query
- How to get rid of shortcodes in post content once and for all
- wp_insert_post – duration
- get_the_content(“more…”) returns full text
- Is there a straight-forward way to iterate over all shortcodes in a post?
- How can i display gallery shortcode output under Post text
- How to display Common posts from specific Tag & Category with Shortcode
- Get user categories with most posts in it
- What’s the best way to render Visual Composer in posts, not pages?
- MySql query to get posts with all meta and terms
- display-posts shortcode attributes have no effect
- Custom order for Mysql array
- List authors with the last post title and order by last post date
- Shortcode to display the latest news article within a page
- How to Mysql select a list of posts with meta_values AND all relevant categories?
- Remove a shortcode from all WordPress posts
- Order posts alphabetically: how to set order=asc in mysql query?
- What do these phpMyAdmin errors mean on my WordPress databaes?
- Shortcodes on my website stops working after theme update [closed]
- What happens if I delete all the rows that represents a post revision from the posts table into WordPress database?
- How to get ID of the page included with get_page()?
- How to get a post’s details by shortcode?
- $wpdb returns duplicate posts
- update image path with words starting uppercase to lowercase chars
- Shortcode with ‘year’ parameter
- Is it possible to add a shortcode below post title?
- WordPress 302 Redirect to Random Product/Post/Page
- Queries take 120+ seconds on my large WordPress site
- Database hacked – random posts are modified
- Can’t update WordPress Page if post_content is Empty
- Restore woocommerce orders
- How to convert query sql to shortcode in wordpress?
- How can I add 2 buttons with shortcode
- Why aren’t paragraphs breaking on this page?
- How do post IDs work in WordPress?
- Get author posts count after excluding a category
- HTML Inside of Shortcode Breaks Shortcode Output
- Shortcode for tables which can include comma and linebreaks
- post/page content
- query for filtering published posts?
- MySQL: Possible to replace all of wp_posts.post_content(id#) via UPDATE + REPLACE + SELECT?
- Deleting post tags removes categories
- Return records between two meta datetimes saved as strings
- Change published date and time using SQL query for page in every 5 hour
- What parameters do I need to pass to get_tags to get ALL tags for the site, when used in a post
- get category in list of posts // shortcode for custom related posts
- Display “no post” message
- How can I create a shortcode to show the number of posts of actual day?
- MYSQL: Create SQL query to search for string and replace
- Query to fetch custom taxonomy along with post title
- Featured Story Shortcode not outputting content
- Function is printing twice – any suggestions?
- Mysql update menu_order problem
- Contact Form 7 Shortcode not recognized inside another shortcode
- Bulk find & replace on WordPress posts/pages (minus image paths)
- Add a url parameter to the current post and read it in a shortcode
- ‘posts’ table should not store the absolute image path
- Secretly passing post ID/title etc into a shortcode form automatically to link submission to post
- load post data into mysql
- I need show posts by customer (Shortcode)
- Is it possible to query a category with specified posts?
- SQL trigger failes with post_content
- Shortcode: How to add custom posts?
- Converting Posts to Pages
- Add category attribute to custom recent post shortcode
- How to change the publishing date of each posts?
- Shortcode for printing post titles
- How to use extract shortcode in loop?
- SQL query to remove first image in all posts
- Using Post ID and Page ID in same function
- Delete junk text from all the post using my sql command
- Display only posts with comments
- FIND and REPLACE wp_posts AND IGNORE custom post type mysql query
- Change the default video URL in a post to shortcode format
- How to create a post based on data in a table?
- How do I add an article to specific page?
- get value from post to sidebar
- WordPress Yoast SEO plugin Post Save/Update Issue
- If post has non-shortcode string
- Insert Shortcode exactly at the end of the content
- Trying to create shortcode listing custom posts, but formating not being included
- If meta_key exists then don’t select this post?
- How to update wp_posts with just the returned comment count from wp_comments (SQL GROUP BY)
- Undefined Function Fatal Error with Shortcode [closed]