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!

1 Answer 1


It turns out that the Infocus theme was the culprit. Deactivating it immediately solved the problem.

Their support forum recommended using the [raw][/raw] shortcode surrounding our shortcode, which allowed us to use our plugin with the Infocus theme.

[raw][recentreviews radius="15" count="3" zoomlevel="10"][/raw]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.