How Do I Delete Images from Post Content
-
I have some sites which were created using WP All Import and an automated featured image tool. All Import is fed posts which were exported and include external URLs to the old site as the src attribute, so I use a plugin to download those locally and make them the featured image, but the plugin leaves the image tag in the post content resulting in double images in the post.
In the past I’ve used CSS to set display none for all images included in the post body content, but I can’t help think there must be a better way. Is there a plugin which will simply strip all image elements from post body content?
I have seen solutions which involve adding code to functions.php but I don’t want to do that because that file always gets overwritten when WordPress updates.
The topic ‘How Do I Delete Images from Post Content’ is closed to new replies.