We’ve written a plugin that shows reviews upon usage of a shortcode. On some sites, WordPress is adding <br>
tags throughout the shortcode content, and others it does not.
The shortcode works here (Nearby Now).
The shortcode has tags inserted here (Dent Biz).
There’s a couple of articles here and here that recommend adding tho following code to the functions.php file.
remove_filter( 'the_content', 'wpautop' );
add_filter( 'the_content', 'wpautop' , 12);
I’ve tried this on the 2nd site above (Dent Biz), but it doesn’t fix the problem. Also, I’ve tried disabling all other plugins on the site with no success. I would hope there was an easy way to prevent WordPress from molesting the html returned by the plugin.
Any help would be appreciated!