Site icon Hip-Hop Website Design and Development

WordPress tinyMCE Hold Wrapping <p> Tags To HTML Codes When Saving

WordPress tinyMCE hold including <p> tags once I saved my customized publish sorts in visible mode opened!

I had looking for many options, however not working. Right here is the answer that I discovered, however that is unable to cease wordpress from including annoying <p> tags from my html codes:

Javascript:

<script sort="textual content/javascript">
     tinyMCE.init({force_p_newlines : false});
</script>

PHP

perform tinymce_remove_root_block_tag( $init ) {
    $init['wpautop'] = false; 
    $init['force_p_newlines'] = false; 
    $init['forced_root_block'] = false; 
    return $init;
}
add_filter( 'tiny_mce_before_init', 'tinymce_remove_root_block_tag' );

I do not need any sort of resolution which is utilizing the_content hook, as a result of that is nonetheless letting <p> tags inside wordpress textual content editor. Instance:

remove_filter ("the_content", "wpautop");

What else ought to I exploit to cease tinyMCE from messing up html codes with its auto added <p> tags?