you can add a filter to the_content hook to strip the images
something like:
add_filter('the_content', 'strip_images',2);
function strip_images($content){
return preg_replace('/<img[^>]+./','',$content);
}
Related Posts:
- How to retrieve the postID in a “image_send_to_editor” hook function?
- Modify Image Source With The_Content Filter?
- Rewrite image links from attachment id to attachment link
- removing inline styles from wp-caption div
- Add custom Attachment Display Setting for images
- Apply the_title() filter in post & page title, but not in menu title
- Update post counts (published, draft, unattached) in admin interface
- Removing any and all inline styles from the_content()
- Removing filter dropdown in posts table (in this case Yoast SEO)
- Get old values for post before saving new ones
- How to get Images included in Post
- disable WP automatically inserted line breaks after an image
- Find the post an attachment is attached to
- How does filter the_posts work?
- Delete the original big size image after upload and leave only 3 images crunched by media gallery
- 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)
- How do I detach images from posts?
- How to publish a post with empty title and empty content?
- How to add a “publish” link to the quick actions
- Download external images if post is publish
- Permanently remove first image from posts
- How do I sort (order) the results from `get_children()`?
- 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?
- Why is wordpress removing some unicode characters (e.g. some emojis) when I save my post?
- How to remove images from showing in a post with the_content()?
- Unattaching images from a post
- How to wrap every image in a post with a div?
- upload featured image from front end using wordpress add media button
- Exclude category on blog list page
- How to remove_filter that filters iframes in posts? [duplicate]
- Filter posts by author and category simultaneously
- How do I create Comma Separated list of attached image ids?
- Get post embedded image caption
- Filter post before *editing*
- Filter/Remove HTML Elements on all posts and pages
- how to grab first link in post… and of course call it
- Load post content into div with ajax
- Add an image box besides featured image?
- Remove image from post also removes photo from media library
- how “manage_posts_custom_column” action hook relate to “manage_${post_type}_columns” filter hook?
- Limit function to specific post category
- If specific user role then sticky post
- 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
- Getting post id from wp_insert_post_data function?
- get custom image size
- the_posts filter been called multiple time
- Filter Posts By Tag
- Custom excerpt length filter doesn’t work
- How can i do something after head like adding a hook for after head but before post
- Remove permalink from images when inserting into post
- How to get only text from wordpress post content?
- Only display posts after current date
- Amend wordpress password function
- Get all images out of the posts content
- how to replace embedded “full” sized images within a post with the “large” ones
- Custom Post Templates
- WordPress Theory Lesson – Image Columns within posts with alignment?
- How can I remove posts of a certain category from homepage after a specified time period?
- How to generate numbers indistinguishable for the IDs of the posts
- Batch process: remove first image from post content
- how can I put an image in a post with original size
- Modify WP_Post before processing
- How to filter posts that belong to a specific category only if that is the only category
- 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
- Filter Custom Post Type by Category with Ajax
- Ajax posts filter by date, comments, top views, top likes
- Copying and pasting emoji in a wordpress post
- How to add Tags Filter in wordpress admin dashboard
- pre_get_posts query between 2 dates (date stored in custom post meta)
- Applying $posts_clauses filter to specific queries only
- Comma separated all attached image ID numbers except featured image ID number
- how to remove dash (-) post status from post title on posts listing page wordpress
- Admin Posts Table Column Fitlering is not working for Custom Post Type
- Get latest posts from WordPress site without header, menu and sidebar
- 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
- Load post attached images on a single page site with fancybox
- creating front end image uploader that uploads images as posts
- Errors when uploading images in WP 3.5
- Format the Layout of Images In The Edit Post Textarea?
- What is the filter or hook to add admin controls to posts on the front end?
- Change post order random through out the entire WordPress
- Set size for attachments
- use wpml_post_language_details function other plugin based on $post->ID [closed]
- How to hide html tags on revision comparison pages?
- Add filter by custom field to block of posts
- Ajax post filters not working
- Default to ‘all’ view on the ‘edit-post’ screen for authors
- I have a site where attachments in the wp_posts table have guid values of guid, how did this happen?
- CSS: How can I show a photo beyond the template’s column, but contained within the browser window? [closed]
- Display Meta Values in Custom Filter – Admin Custom Posts