I've been ripping my hair out for hours and now I'm almost bald! :p Any time I try to insert any shortcode into the visual editor (on its own line), it wraps them in
<p></p> tags. This happens when I save or switch to the text tab, even after I've manually removed the
<p></p> tags. Wordpress is basically treating everything as text. It affects both default WP shortcodes and custom ones. Examples:
[gallery] -> <p>[gallery]</p> [cardimg][/cardimg] -> <p>[cardimg][/cardimg]</p> [W][/W] -> <p>[W][/W]</p>
I have tried every single solution here and on Google: https://wordpress.stackexchange.com/search?q=shortcode+wrap I don't know what to do at this point. Absolutely nothing I do changes the results.