Support » Plugin: TinyMCE Advanced » Stop replacing double br with p-tags and stop wrapping content inside p-tags
2 years, 10 months ago
It my have been answered before but I couldn’t find an answer for this:
1. Can I somehow stop WordPress replacing my double br-tags with a single p-tag? I tried with: remove_filter( ‘the_content’, ‘wpautop’ ); but it didn’t work.
2. I dont need wordpress editor to wrap my content in p-tags, how can I stop this, I want to choose where I put the p-tag myself? How can I fix this?
Doing remove_filter( 'the_content', 'wpautop' ); is not enough. You can try both by changing the settings for TinyMCE by using tiny_mce_before_init filter.
remove_filter( 'the_content', 'wpautop' );