164 posts ThemeVan
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has been part of the Envato Community for over 4 years
  • Won a Most Wanted contest
+3 more
ThemeVan says

I found shortcode usually generate p or br in return value. when I use do_shortcodes(get_content()), it’ OK, however, there is no paragraphs in the content . how do you do? thanks!

1025 posts
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
  • Contributed a free file of the month
+6 more
greenline says

I’m also having this problem. It drives me crazy, I browsed here about 10 threads about it and haven’t found a solution yet.

A <p></p> is added inside the string I am returning from my shortcode method=> is messing up all the content inside the shortcode.

Are we allowed to use work-arounds using remove_filter( 'the_content', 'wpautop' ); ?
by
by
by
by
by
by