Skip to content

Instantly share code, notes, and snippets.

@danlum
Created September 29, 2012 00:44
Show Gist options
  • Save danlum/3802764 to your computer and use it in GitHub Desktop.
Save danlum/3802764 to your computer and use it in GitHub Desktop.
wordpress: stop <p></p>
<?php
/* Stop WordPress from adding those annoying paragraph tags */
remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment