1466 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • Croatia
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

913 posts
  • Author had a Free File of the Month
  • Football Contest Participant/Runner-up
  • 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
+2 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
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 200 and 499 users
  • South Africa
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

by
by
by
by
by
by