Thursday, June 20, 2013

How to add WooCommerce short codes in Wordpress Template files?

By using do_shortcode() function we can add the WooCommerce shortcode 
to the template files.
Syntax:
<?php echo do_shortcode( 'ShortCode' ); ?>
Example:
<?php echo do_shortcode( '[fblike]' ); ?>


Keep Smiling

Naresh.

1 comment: