336 posts
  • Has been part of the Envato Community for over 2 years
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Sells items exclusively on Envato Market
+2 more
subsolar
says

Hi, is there a way to remove the unwanted paragraphs from the shortcodes, that is compatible with the new Phase?

I know that modified wpautop and this is not permitted anymore: $array = array ( '<p>[' => '[', ']</p>' => ']', ']<br />' => ']' ); $content = strtr($content, $array); return $content;

Can somebody share a code snipped that can get the job done. Thanks! :)

74 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
jezh
says

Check out this thread, you’ll find useful info there.

336 posts
  • Has been part of the Envato Community for over 2 years
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Sells items exclusively on Envato Market
+2 more
subsolar
says

Oh, thanks! I knew about this thread but couldn’t find it..

by
by
by
by
by
by