xxxxxxxxxx
<?php echo do_shortcode('[name_of_shortcode]'); ?>
xxxxxxxxxx
function f_name() {
ob_start(); ?>
Your HTML Code
<?php
return ob_get_clean();
}
add_shortcode( 'shortcode', 'f_name' );
//Use this in HTML
[shortcode]
**Note this is note Necessary
ob_start(); ?>
<?php
return ob_get_clean();
}
**In Php
<?php echo do_shortcode("[your_shortcode]"); ?>