Mysql allows you to run queries that apply to all post, see example :
UPDATE wp_posts SET POST_CONTENT = replace(POST_CONTENT, '<a href="http://mysite.com/my_link">mylink</a>', '');
This code allows you to delete <a href="http://mysite.com/my_link">mylink</a>on all posts. But in your case I doubt all links are the same so you need a pattern. Perhaps it can be done with [REGEXP].1
Do you need to delete all links in content? That would be easier.
EDIT: make a backup of your database before anything !
Related Posts:
- How to clear the cache?
- How to do a query only on a specific admin page?
- WP_Query pagination not working in admin area
- Use ‘parse_query’ filter to show posts that from multiple criteria
- hide custom post types with specific meta key ON admin backend
- WP CLI can’t delete plugin related table
- How to view all posts of current day as default in admin
- Admin: Custom Query Returning Permissions Error
- WordPress AJAX Request returns 400
- How to use custom page for all posts with custom url, call another directory?
- Is it possible to give a classname to specific comments in the WordPress admin?
- How to set selected attribute on option after filter query?
- Filtering custom post type list in admin by custom meta key/value
- How to store and receive variables in WP sessions?
- Nested meta_query with multiple relation keys
- WP_Query vs get_posts
- Query Multiple Post types each with own meta query
- How-to exclude terms from the main query the most performant way?
- Pagination with WP_Query is buggy – working for some pages, but not the others
- Display only posts with thumbnail using WP_Query
- Why is my WP_Query not working when tax_query terms are an array?
- Make First post different from rest?
- pagenavi with merged wp_query [duplicate]
- How can I display recent posts from a particular category in my header?
- Search Custom Post with meta_value NULL
- Ajax Infinite Scroll In Custom WP_Query Loop Not Working
- Query two post types and order by two different date fields
- Injecting content with $wp_query->current_post restarts from zero on paged pages. How to inject content after X posts, regardless of pagination?
- Find all product that contain terms with %keywords% in WP_Query
- WP Query – Get WooCommerce Products with variation that is in stock
- Multiple search queries on one page
- Filtering WP_Query result by category
- posts order by title second word
- Merged two WP_Queries, posts per page and pagination not working
- Why WP_Query::is_date() returns false when ‘date_query’ argument is set?
- Custom Post order for homepage
- Arrange BBpress topics by created
- Query all posts in a given taxonomy
- Warnings in nav-menu when visiting query pages [closed]
- Page navigation doesn’t show when query category
- Create ONE callback for all page templates, post filter queries + paginated pages, triggering pagination via AJAX
- Sorting posts DESC based on the number of comments using WP_Query
- Create unique page without header.php for json feed
- get_posts() not working with multiple statuses
- Unexpected end of file
- WP_Query To call data from diffrent tables
- Performance when getting post meta for post retrieved by meta value
- Clean up WordPress code that repeats
- WP_Query: “post_parent” and “post_type” combination returning strange results
- How to use the query hook/filter?
- WP_query return more results than SQL query. post_count > found_posts
- How do I exclude the lowest level terms in a taxonomy?
- Stale $GLOBALS[‘post’] after custom WP_Query empty result set bothers my template, whose fault is this?
- Inserting HTML to close and open divs in WP_Query loops
- Change query from cat id to slug or name?
- Query only the posts with a post format of “audio”
- Display Current Post’s Position in Custom Taxonomy
- Using Wp_Query without the loop?
- WP Query with multiple tags by get the tags
- Custom WP_Query id
- Woocommerce pagination and result count after custom loop
- Orderby custom meta returns random order
- Include latest author posts with pagination in single template?
- How to querry for an item that saved in an array?
- get_post() is not returning correct value
- Intiger meta value with ‘>=’ returns posts with lower value
- Update query for wp_posts and wp_postmeta
- How to print term name inside wp post loop
- CPT category post/content is not showing on my page, Please review my coede
- WP_Query with page_ids in arguments without a result
- Query not sorting DESC
- Prioritising and Ordering Posts By Category Name Using A Custom Loop
- Filter products on category AND tag
- meta_query – check for multiple meta values in key which holds an array of values
- How to sort wordpress posts already selected by WP_QUERY
- Searching for a specific month in a metadata saved as Timestamp (Wp_Query)
- SEARCH QUERY PLEASE HELP | call_user_func_array() expects parameter 1 to be a valid callback php
- WP_Query on custom key and value
- Set “editor” role to existing user
- how to get wp_query posts only first letter of alphabet A?
- How to mix two orderby-parameters into one ordered result
- Custom Post Type WP_Query with filters and search
- Merge wp-query and get_users
- Query by meta value (add a dropdown of all values)
- wp_query beginner
- WP Query issue for multiple values
- Calling a function with WP_Query only ever brings the first result
- get last child post by wp_query
- WP_Query don’t working with fixed post_id and term_taxonomy
- How can I use WP_Query argument ‘Like %..%’?
- How To Query All Attachment Images Found In Post Galleries
- WordPress meta_query not working
- Create multiple sections for all categories and then queries all the posts for each of those categories
- $wp_query when new WP_Query
- Query to get all the posts of more than 2 meta_value having same meta_key?
- Unable to pass variable
- WP Query get posts by specific author IDs if one of several logged in authors
- Edit WordPress loop, taxonomies, & filter
- How to display posts from a specific term first then another posts from another terms using tax_query
- Using ‘meta_query’ with the ‘pre_get_posts()’ hook disables searching for post titles