Not sure about the database but you can do it easily with the_content
filter, just add the code below to your current (child) theme functions.php
file:
add_filter( 'the_content', 'misha_remove_all_a' );
function misha_remove_all_a( $content ){
return preg_replace('#<a.*?>(.*?)</a>#is', '\1', $content);
}
Related Posts:
- Stop WordPress Wrapping Images In A “P” Tag
- How to add an admin notice upon post save/update
- Ajax Load More Posts in Category Page
- How does one reduce the number of stored revisions?
- How to Group Posts by the First Letter or Number?
- Search not working with title and content
- Show the title of the latest post by author
- Developing a secure front end post editing form
- I’m having some issues with previous_post_link() and next_post_link()
- Specify number of posts in my ‘tax_query’
- Add a custom option to a page in backend
- Where is the “ancestors” post object attribute?
- How can I display a specific user’s first published post?
- custom single.php not working
- How to show a full post, not just an excerpt
- get selected post using $_GET
- Can a page_id and a post_id be same?
- How to hide first gallery for every post?
- How to display related posts by subcategory and not parent category
- Which URL to enter into browser to show all posts in archive.php?
- Using wp_list_categories like the the_category (showing just current categories of a post)
- add new post default view
- How to filter my search in post if contains a word in title, content or excerpt?
- Posts list in custom taxonomy
- How to return another post than requested
- Update post_content everytime a custom post is opened in backend
- Genesis + Ajax + Jquery | Failling to call action
- Need help with category listing!
- Random ajax load only works with posts_per_page set to -1
- MySql query to get posts with all meta and terms
- Prepending %category% onto default posts fails
- Query posts and return XML
- A friend wants to make a comment on one of my articles, she has to be logged to wordpress?
- How to display only feautured/sticky listings on the homepage
- Can’t update old posts 3.5.2
- Is it possible to paste a link without tags and make it directly a link in a post?
- Adding a blog archive with pagination using WP_Query
- How to get Tags with specific post id
- How to setup a query to output posts by groups of five?
- User Selectable Delete of Pages
- Get post content with all filters applied, knowing post id
- Is it possible to customize the post according to post format in single.php?
- Delete post after x minutes if user role is
- query post limits
- is_page() and is_page_template() not being differentiated
- Post type no single page
- Get attachments only for this post
- How can I list posts by author?
- Count several post tags
- How to generate/create link automatically on every word of post in wordpress
- Querying another post category to match current post and display in loop
- I want to show my post for limited time, how is it possible?
- how to handle the loop using filling bootstrap grid structure?
- Query function not executed between element [closed]
- Microformats in a single post – layout conflict
- Conditional css for custom post type
- Get author posts count after excluding a category
- How to edit the ‘
- How to add PHP code snippet to all Post pages?
- How to display WP Query filters?
- Order posts by date
- MySQL: Possible to replace all of wp_posts.post_content(id#) via UPDATE + REPLACE + SELECT?
- Different background colors for posts with WordPress
- I want to add another search box on posts page in dashboard
- Move position in post list for a custom checkbox column
- Menu does not foward to the linked posts
- How to add a custom class attribute into code wrapper? [duplicate]
- Redirecting wordpress search query to archive page
- How to get post creation date?
- How to set the post permalink using the WordPress REST API?
- Multiple post in One Loop in wordpress
- Order posts inside bootstrap card columns
- Save ACF with a save button on a post
- Delete attached images from posts
- Unable to edit or post after enabling SSL
- How do I customize the post page
- Clicking on a Post takes 10+ seconds for the server to respond, Pages will respond immediately
- Schedule image post on download
- Show posts in a parent directory [duplicate]
- WordPress infinite post cycle problem
- show latest authors blog post
- Admin Post List Only Show One Category
- How to prevent people from seeing an attachment to a scheduled post that’s released in future?
- How can I access my posts on my wordpress site, now I’ve lost the domain name for it?
- Page not loading content – Body archive – page
- Featured Images link to post parent
- External link not showing on post but showing on comment
- Why is $_POST Empty in Profile Edit Admin?
- TCPDF and permalinks
- How can i show only 30% of the “the_content(“More…”)”?
- wp_query select if have comments
- How do i put a dropdown list of ALL my post in the sidebar menu?
- Redirecting posts in WordPress to a specific page
- Return All Post from publish to draft [duplicate]
- Get posts after calculating meta key
- Articles show some of text [duplicate]
- How to make post stick to its own div
- Numbers of new post since the last visit of user
- website images getting corrupt automatically
- Posts Page in WordPress loading bare HTML of my homepage