• I have a bunch of posts which have both featured images and HTML tags in the post body with src attributes to the same image. Disabling featured images on single posts is not an option because it would be better to strip the HTML tags from the post body in the database. Where can I find a plugin to do this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter notgoodenough

    (@notgoodenough)

    Ideally, the solution would be a plugin that compares the featured image to src attributes in the post body and removes any image tags sharing the same file name.

    Actually, a very easy way is to edit the page template of your theme that outputs the featured image(s). The proper way to do so is with a proper Child Theme, assuming since this is likely an older site, you are not running an FSE theme.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How Do I Strip Featured Images From Post Content in Database?’ is closed to new replies.