Okay, so you can add shortcodes to WP template files like:
<?php echo do_shortcode('[my_awesome_shortcode]'); ?>
but what if the shortcode is intended to wrap around content like this:
[my_awesome_shortcode]
Hey, this is the content within the awesome shortcode.
[/my_awesome_shortcode]
I’m a bit unsure how to put that into a template file.
According to http://codex.wordpress.org/Shortcode_API#Enclosing_vs_self-closing_shortcodes
adding
$content = nullto the shortcut function should do the trick:so that:
would result in: