Skip to content

Instantly share code, notes, and snippets.

@adapicom
Created May 2, 2013 14:39
Show Gist options
  • Save adapicom/5502655 to your computer and use it in GitHub Desktop.
Save adapicom/5502655 to your computer and use it in GitHub Desktop.
Strip Images from a Wordpress Blog Post
<?php
echo preg_replace('/<img[^>]+./','',get_the_content());
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment