[Skip to the main content] Welcome to Daigo’s Daily Digital Diorama. I blog about Baseball, Judo, Jazz, Linux, Design and on being a dad.

  • Get Firefox!

No Formatting Please!

I noticed that Wordpress adds <br /> and <p></p> tags to the posts. I don’t want that! This is caused by wpautop. So I wrote an embarrassingly simple plugin, which does just that: disable wpautop. Inspired by Dirk’s Mime plugin. Here is a link to how to use WordPress Plugins.

Wordpress Plugin: noformats.php

<?php
/*
Plugin Name: No Formats
Version: 1.0
Plugin URI: http://www.daigo.org/
Description: Disables wpautop formatting for all entries.
Author: Daigo Fujiwara
Author URI:http://daigo.org/index.php/archives/2004/08/21/no-formatting-please/
*/

remove_filter('the_content', 'wpautop');
?>

Leave a Reply