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 any and all inline styles from the_content()
- 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?
- Download external images if post is publish
- 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?
- upload featured image from front end using wordpress add media button
- Get post embedded image caption
- Filter/Remove HTML Elements on all posts and pages
- how “manage_posts_custom_column” action hook relate to “manage_${post_type}_columns” filter hook?
- Post taxonomy from exif data
- Getting post id from wp_insert_post_data function?
- get custom image size
- Amend wordpress password function
- how to replace embedded “full” sized images within a post with the “large” ones
- How can I remove posts of a certain category from homepage after a specified time period?
- Batch process: remove first image from post content
- Modify WP_Post before processing
- Show featured image next to post-teasers in Genesis Framework?
- Applying $posts_clauses filter to specific queries only
- Can I use images as anchor tags with
- What is the filter or hook to add admin controls to posts on the front end?
- 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?
- How to filter my search in post if contains a word in title, content or excerpt?
- Update post_content everytime a custom post is opened in backend
- Posts and Attachments with “Published” status in Search
- List all categories with featured image from post?
- Show only posts with images and a fixed amount of posts
- How would one change the default url structure of attachments?
- Trying to alter the post_content through the_post
- If statement to check if post has image
- Gather posts into a cart/lightbox and share with another user
- Add filter to the end of the post
- Get post content with all filters applied, knowing post id
- Is it possible to filter the main loop to exclude posts from a specific category?
- What are the benefits of setting a “featured image” for a WP blog post?
- query post limits
- update image path with words starting uppercase to lowercase chars
- Uploading images in custom post form
- Make insterted image point to post url instead of attachment page
- how to give multiple post thumbnails to a post
- Post filtering is returning blank page
- get_children returns older images
- How to display post title inside thumbnail?
- How to get all inline images in post content? [duplicate]
- Exists filter or action that change Add New Post link?
- How to Featured content with images in home page?
- How to show a featured image inside a post in only 1 single category
- Link post images to post
- How to get the next and previous image title from attachment or gallery?
- WordPress as CMS: How to manage/handle images assigned to a post as full-sized background images in a slideshow?
- how can display a post on home screen without images
- Get current taxonomy and display query accordingly
- How do I display main query posts in random order using add_filter
- How to exclude native lazy loading from first image in post content?
- Aligning images in the wp editor not working. How do i get this to work in custom theme?
- unable to write to the database while uploading images
- Restricting displayed posts to posts from only select authors
- the wp_post_update isn’t working all the time
- Pinterest button shows image options from different posts
- Change the size of the featured image for post?
- How to add a custom class attribute into code wrapper? [duplicate]
- Filtering private Posts
- how to filter posts by category without page load (ajax) in wordpress?
- Remove status ‘archived’ from the default post and page view
- Post images are not displayed in media library
- Delete attached images from posts
- long-title posts do not want published
- Blog images not showing on homepage
- How do i search post by jquery datepicker?
- Schedule image post on download
- show only one category and filter by tag
- Prevent WordPress from putting around specific element
- Integrate video and iframe in a post type gallery
- Set featured image on creating new post
- how to create other sizes of original image in one go wordpress uploads
- Is it possible to completely replace a post with an action/filter?
- Filter question list on substring of metavalue
- Add review box by function at top or bottom of content
- Stop images from being displayed on the front-end of the site
- Get results from the main wp_query
- Relative Image Urls in Posts are starting from root – Not from WordPress Address (URL) at General Settings
- WordPress Media URLs?
- Featured Images link to post parent
- How do I insert a custom field in a user submitted post?
- wp_query posts sorting doesn’t work
- Post thumbnail height problem
- Get attachment if matches a variable
- Filters do not work when there are multiple (one works)
- Displaying all images from a WordPress post (including media library)
- How to move all images in a post to a single gallery for a bunch of posts?
- Optimize blog that serves hundred of images and videos