Remove images from content

A solution to strip down your post content to text only. Simply replace your the_content(); tag with the snippet below.

Code Snippet:

<?php
  // Strip content
  echo preg_replace('/<img&#91;^>]+./' , '' , get_the_content());
?>

Posted in Posts