153 posts ThemeVan
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Most Wanted Bounty Winner
  • Referred between 100 and 199 users
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!

906 posts
  • Author had a Free File of the Month
  • Grew a moustache for the Envato Movember competition
  • Sold between 10 000 and 50 000 dollars
  • Beta Tester
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Bought between 50 and 99 items
  • Referred between 1 and 9 users
  • Has been a member for 1-2 years
+1 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' ); ?