How to remove wpautop ONLY for a shortcode content?


Does it exist something similar to no_texturize_shortcodes for wpautoup? Something like no_wpautop_shortcodes?

I’ve found already:

this solution has a problem with Adinjection

I’ve also found this solution:

Another solution I found is this custom user code

I’ve also read here (Remove wpautop from shortcode content / remove whitespace in buffering) that there is a shortcode_unautop wordpress native function, but it doesn’t seem to output the raw content of the shortcode.

From the documentation:

Don’t auto-p wrap shortcodes that stand alone

, Revious 4 years 2019-11-06T11:23:49-05:00 0 Answers 78 views 0

Leave an answer