You can use the following to disable ALL automatic post formatting performed by WordPress by using the plugin below. Copy-n-paste everything from <?php to ?> (inclusive), save it to no-post-formatting.php in your wp-content/plugins/ directory and activating the plugin via the Admin->Plugins interface. Ensure you do not have any spaces/characters before <?php or after the ending ?>. ‘wpautop’ is really the filter you want removed to disable, but if you want the post to be EXACTLY as you input it, then this should do it. Also, you may also want to turn off these two settings in your Admin page -> “Options” page -> “Writing” submenu (since they may also modify your post):
Convert emoticons like ?? and ?? to graphics on display
WordPress should correct invalidly nested XHTML automatically
<?php
/*
Plugin Name: No Post Formatting
Version: 0.1
Plugin URI: https://www.coffee2code.com/wp-plugins/
Author: Scott Reilly
Author URI: https://www.coffee2code.com
Description: Disable all automatic post formatting.
*/
remove_filter(‘the_content’, ‘wpautop’);
remove_filter(‘the_content’, ‘wptexturize’);
// ‘convert_chars’ won’t modify your post noticably, so not turning it off
//remove_filter(‘the_content’, ‘convert_chars’);
?>