Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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!

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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]

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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