Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › eStore Shortcode in page template › Reply To: eStore Shortcode in page template
August 1, 2013 at 9:42 pm
#56894
Member
This is how I am utilizing the shortcode function in case there is anyone else wanting to do the same thing:
function sub_button(){
ob_start();
$subscribe = print_eStore_subscribe_button_form(4);
return $subscribe;
}
add_shortcode(‘subscribe’, ‘sub_button’);
Where ‘4’ is equal to the product ID.