Support » Requests and Feedback » RFE: option for not converting breaks.

  • I currently have a Movable Type blog and would like to switch over to WordPress.
    One thing holding me back is that MT has an option “Text Formatting: None” which allows me to write all of my posts in html. This disables the conversion of line breaks into <br/> and gives me control over how my text looks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Scott Reilly


    WordPress & Plugin Developer

    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
    Plugin Name: No Post Formatting
    Version: 0.1
    Plugin URI:
    Author: Scott Reilly
    Author URI:
    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’);

    Cool. Thanks. The modification I made to do the same thing was a bit of a hack. This is much better.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘RFE: option for not converting breaks.’ is closed to new replies.