Wordpress Stripping Paragraphs

TinyMce is stripping out breaks and paragraphs even if they are added to HTYML. Why does it do this?!?

The solutions I’ve seen online is to use nl2br(). Unfortunately this is adding breaks where they don’t belong like after headings and list items. It also isn’t the correct markup.

I tried adding:
$init[‘force_br_newlines’] = ‘false’;
$init[‘force_p_newlines’] = ‘true’;

But this isn’t having any effect.

Does anyone know how to fix this?

Thanks,
E

Are you referring to the TinyMCE Advanced Editor? If so, the option page is under ‘Settings’.

If not, then to stop WP from adding p, add this to your functions file:

remove_filter ('the_content', 'wpautop'); // stop wordpress from adding p

To stop WP from adding <br />, add this to your functions file:

remove_filter ('the_content', 'wpautobr'); // stop wordpress from adding br

Go to the TinyMCE option page and check the “Stop removing the <p> and <br /> tags when saving and show them in the HTML editor” checkbox

[FONT=“Georgia”]Install the ps-disable-auto-formatting plugin.

[/FONT]

does this have to do anything with pasting from MS Word or some other text editor. I find that pasting text from word or others is a big NO NO and wordpress will literally strip you down with all types of tags. Just I use to use another editor within wordpress but went back to the original after upgrading to wordpress 3.xx and newer. I find it handles text better with keeping your tags in place for the HTML.

I swapped out the editor with the CKeditor. And this is working perfectly.

Thanks where is the TinyMce option page? I’ve been searching the admin area and can’t find it. Thanks E

That says it’s broken and only Compatible up to: 2.8.3 :frowning:

Amazing the great WP devs can’t solve this one!

  • Vince

I just manually fix it. =\ It is inconvenient though.