WordPress: Stop WordPress visual WYSIWYG editor from removing multiple linebreak in your posts

If you want to prevent WordPress from filtering line breaks

from a post, then go ahead reading this post ..
In spite of trying various methods such as putting line breaks “
” inside “” tag and many other such HTML tricks (many of which can be easily found at WordPress) just to be able to put multiple intentional line breaks in a post, wordpress would eventually manage to filter those line breaks. Even if the tricks were successfully applied, when it came to re-editing a post, all efforts would go to vain when TinyMCE initiates its own filtering process.

WordPress has a built-in powerful post/text editor commonly known as the “Visual” editor, which uses the open source project named “TinyMCE“. When switching from Visual to HTML editor in WordPress or vice-versa TinyMCE executes a back-end filtration process which removes empty tags, and
tags from the post.

TinyMCE-Advanced from WordPress is a WordPress plugin, which adds the option to disable the removal of

tags when saving a post and in the HTML editor. After installing and activating, the option to enable line breaks can be found in the Settings => TinyMCE Advanced panel.

=> Stop removing the

tags when saving and show them in the HTML editor



Aditionally, this plugin adds 16 plugins to TinyMCE, WordPress’ WYSIWYG editor: Advanced hr, Advanced Image, Advanced Link, Context Menu, Emotions (Smilies), Full Screen, IESpell, Layer, Media, Nonbreaking, Print, Search and Replace, Style, Table, Visual Characters and XHTML Extras. Together these plugins can add over 40 new buttons to the toolbar.




Stop WordPress from removing Linebreak, Linebreaks, Line Break, Line Breaks

Force Line Break in WordPress

Enabling Line Break “
” in WordPress

Linebreak in Posts

Stop remving

tag in WordPress

Line break conversion

Formatting WordPress Posts using Line Breaks

3 thoughts on “WordPress: Stop WordPress visual WYSIWYG editor from removing multiple linebreak in your posts

  1. Thanks for solving a very irritating problem.

    Every time my Clients edited pages/posts they would wipe out all the tags and if I needed to edit behind them I would need to re-add all of them.

    This has been a huge source of irritation and I am elated I found this fix.


Leave a Reply

Your email address will not be published. Required fields are marked *