About redundant code when I use shortcode to output the HTML from a variable
This is because the content of a post – and therefore your shortcode – is run through the wpautop() function which generates the <p> and <br /> tags in order to space out the post properly. Shortcodes are run at priority 11, which is after wpautop() on priority 10. We can change the piority that … Read more