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!
- 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
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.
<p></p> is added inside the string I am returning from my shortcode method=> is messing up all the content inside the shortcode.
remove_filter( 'the_content', 'wpautop' );?