199 posts ThemeVan
  • Weekly Top Seller
  • Elite Author
  • Author Level 8
  • 5 Years of Membership
+4 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!

1486 posts
  • Trendsetter
  • Most Wanted Winner
  • Author Level 5
  • Collector Level 3
+8 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