How to remove wpautop ONLY for a shortcode content?

Question

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

I’ve found already:


this solution https://github.com/chiedolabs/shortcode-wpautop-control has a problem with Adinjection

I’ve also found this solution: https://bnks.xyz/resolving-wpautop-and-shortcodes/

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

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/how-to-remove-wpautop-only-for-a-shortcode-content/">

How to remove wpautop ONLY for a shortcode content?</a>
0
, Revious 8 months 0 Answers 34 views 0

Leave an answer