WordPress Shortcode Using Shortcodes Inside PHP Code (themes and plugins)


Example

<?php echo do_shortcode("[footag foo='Hi! I am a foo output']"); ?>

To print a shortcode using php use the do_shortcode function and echo the returned value.