Try removing (image), like this:
<?php
$content = get_the_content();
$content = preg_replace("/<img[^>]+\>/i", " ", $content);
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
echo $content;
?>
Related Posts:
- Find the post an attachment is attached to
- How do I detach images from posts?
- How do I create Comma Separated list of attached image ids?
- Get post embedded image caption
- Load post attached images on a single page site with fancybox
- Set size for attachments
- I have a site where attachments in the wp_posts table have guid values of guid, how did this happen?
- Get all attachment by post excluding featured and content inside
- Get attachments for posts that belongs to a specific category
- How would one change the default url structure of attachments?
- Upload attachment from external site
- How to get the next and previous image title from attachment or gallery?
- Delete attached images from posts
- Stop images from being displayed on the front-end of the site
- Broken images after importing posts and opening in Gutenberg
- Turn a URL into an Attachment / Post ID
- Stop WordPress automatically adding tags to post content
- removing inline styles from wp-caption div
- How to retrieve text only from wp_content() not from wp_excerpt()?
- How to Create Editable Blocks of Text for the Homepage?
- Add custom Attachment Display Setting for images
- Delete Associated Media Upon Page Deletion
- Delete post with all files attached to it
- Is it possible to Schedule Attachments in WordPress?
- what types of order can I pass to get_posts() via orderby?
- How to get Images included in Post
- disable WP automatically inserted line breaks after an image
- Delete the original big size image after upload and leave only 3 images crunched by media gallery
- media_handle_upload for local files?
- Post slugs and images cannot have same name?
- Add existing images from Media Library in to custom gallery
- Replace image attributes for lazyload plugin (data-src)
- Use an attachment in multiple posts
- delete post also attachments
- Replacing all attachment links in post with media file link
- Get post id by attachment id?
- Download external images if post is publish
- How do I sort (order) the results from `get_children()`?
- How to hide the Text Area in the Post Edit screen
- upload image in a meta box
- Can I load posts via Ajax?
- How do I use element instead of tags in WordPress post content having webP support?
- How can I export WordPress posts’ attachments?
- Unattaching images from a post
- how to display post content without post image?
- How to wrap every image in a post with a div?
- upload featured image from front end using wordpress add media button
- how to grab first link in post… and of course call it
- Load post content into div with ajax
- Limit amount of results returned
- Add an image box besides featured image?
- Remove image from post also removes photo from media library
- Limit function to specific post category
- post_parent is 0 when uploading new files
- Post taxonomy from exif data
- Remove inline width from figure
- All my inserted images gets a link to the full image even if it is already full size image
- How to change ID of an attachment in wp_posts and its related tables correctly?
- Easy way to delete 70k posts and attached media?
- get custom image size
- Remove permalink from images when inserting into post
- How to get only text from wordpress post content?
- Get the url of the full sized attachment image using post ID?
- Get all images out of the posts content
- how to replace embedded “full” sized images within a post with the “large” ones
- WordPress Theory Lesson – Image Columns within posts with alignment?
- Batch process: remove first image from post content
- How to access featured image?
- how can I put an image in a post with original size
- Show featured image next to post-teasers in Genesis Framework?
- Get image from post’s gallery
- Image Insert into posts and pages not working after 3.2.1 update
- How to retrieve the postID in a “image_send_to_editor” hook function?
- Copying and pasting emoji in a wordpress post
- Comma separated all attached image ID numbers except featured image ID number
- Modify Image Source With The_Content Filter?
- How to display featured image without it appearing in post?
- Can I use images as anchor tags with
- Featured Image uploaded, attached and set but only appearing in the media library
- creating front end image uploader that uploads images as posts
- Errors when uploading images in WP 3.5
- How to load a post into an empty div tag anywhere across the pages?
- Format the Layout of Images In The Edit Post Textarea?
- Insert woocommerce products programmatically with featured image and gallery
- Add the description field on the attached media
- CSS: How can I show a photo beyond the template’s column, but contained within the browser window? [closed]
- Prevent Delete Attachment by URL or When Submit
- wp-cli post create & media import issues
- Posts and Attachments with “Published” status in Search
- List all categories with featured image from post?
- Automatically attach image to post if they have the same title
- Get Image tag from content of post
- Get all images in post and comments like Twitter before post title
- Can’t update old posts 3.5.2
- Show only posts with images and a fixed amount of posts
- Issue where WP Featured Image will not display
- Filter only the text in the_content
- If statement to check if post has image
- Gather posts into a cart/lightbox and share with another user
- Thumbnail Image to go in the post aswell