190 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

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!

1336 posts
  • Won a Most Wanted contest
  • Has been a beta tester for an Envato feature
  • Has sold $10,000+ on Envato Market
  • Has collected 50+ items on Envato Market
+7 more

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' ); ?

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes