1512 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE says

Hey Net-Labs, you should not use above code because it affects 3rd party shortcodes as well.

Instead, use this: https://gist.github.com/bitfade/4555047

It’s TF approved and it only affects shortcodes you specify.

props to bitfade/pixelentity

1164 posts
  • Has been a beta tester for an Envato feature
  • Has sold $10,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Has referred 1+ members
+6 more
greenline says

Wow, removing autop is a sure way to make a few enemies. Unfortunately with removing the p tag, it also remove a lot of plugins ability to function properly.

I totally agree.

I think you should see point 9 on WordPress Theme Submission Requirements: http://support.envato.com/index.php?/Knowledgebase/Article/View/472/85/wordpress-theme-submission-requirements

9. Modification of filters in wpautop is not allowed.
90 posts
  • Has referred 200+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+5 more
Net-Labs says

Hey Net-Labs, you should not use above code because it affects 3rd party shortcodes as well.

Instead, use this: https://gist.github.com/bitfade/4555047

It’s TF approved and it only affects shortcodes you specify.

props to bitfade/pixelentity

Wow, this is the first solution that i see that have the idea of filtering for specific shortcodes, I’m keen to give it a try.

While the p’s is slowly driving be round the bend, i just do not want to do things that can break other stuff.

Thanks for the code

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

by
by
by
by
by
by