Skip to content

Instantly share code, notes, and snippets.

@jamesjara
Created January 17, 2015 07:32
Show Gist options
  • Save jamesjara/06283099c94072324aa0 to your computer and use it in GitHub Desktop.
Save jamesjara/06283099c94072324aa0 to your computer and use it in GitHub Desktop.
Stop WordPress from adding p tags and removing line break
Put at Atop of your template page
<?php remove_filter ('the_content', 'wpautop'); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment