Solution for : Removing <p> and <br/> tags in WordPress posts
This happens because of WordPress's wpautop.
Simply add below line of code in your theme's functions.php file
remove_filter( 'the_content', 'wpautop' ); remove_filter( 'the_excerpt', 'wpautop' );
For more information: http://codex.wordpress.org/Function_Reference/wpautop
No comments:
Post a Comment