Skip to content

improving learning

eclectic, pragmatic, enthusiastic

Nix those auto-inserted <p>s in WordPress

July 2, 2012 by opencontent

If you’ve ever hated fighting the white space WordPress aggressively inserts all over the place, just insert this snippet of code at the top of your template file:

<?php remove_filter (‘the_content’, ‘wpautop’); ?>

Shazaam! No more auto-inserted <p>s!

Categories open content
The MOOC Misnomer
Disgust with Creative Commons and the Free Culture Crowd

About Improving Learning


This blog is written and maintained by David Wiley. Opinions are my own.

Licensing

Unless otherwise noted, the contents of this site are licensed under the Creative Commons Attribution 4.0 International license.

Should you choose to exercise any of the 5R permissions granted you under the Creative Commons Attribution 4.0 license, please attribute me in accordance with CC's best practices for attribution.

If you would like to attribute me differently or use my work under different terms, contact me at david dot wiley at gmail dot com.

© 2025 improving learning • Built with GeneratePress