Fixed wordpress auto add P tag
From ThaiiS Note (Wiki)
Either open your theme's functions.php file, or create one if you don't have one.
<?php
//disable auto p
remove_filter ('the_content', 'wpautop');
//disable wptexturize
remove_filter('the_content', 'wptexturize');
?>
Then add the following to stop these two functions from messing with your code. Note, these must be entered inside the PHP tags:
