How to disable wordpress autoformatting (
and

tags)

Apr 1st, 2011 | By | Category: Internet

I posted a few days ago about how to prevent wordpress from inserting <br \> and made a note that I would have to do a bit more research to figure out how to disable the <p>’s .  Well a bit more research later I’ve found the solution to getting rid of all the bloody tags that WP throws in there.

What you need to do is to go into your wp-content/plugins directory and either create a new directory and copy the following into a .php file or simply put this into a file into the plugins directory:

<?php
/* Plugin Name: WP Unformat
* Plugin URI: http://wpvibe.com
* Author: Jonathan Dingman
* Author URI: http://jonathan.vc
* Version: 1.0
* Description: Disables the <p> that is automatically inserted by WordPress
*/

remove_filter(‘the_content’, ‘wpautop’);

?>

Of course credit is due to Jonathan Dingman for writing this simple little ditty, but I can say it works great!  Also you should undo any edits to the formatting.php file if you want to use the above

Tags: , , , , , ,

Leave a Comment