- This topic has 1 reply, 2 voices, and was last updated 11 years, 11 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › eStore – get random products from Category in the Theme PHP
Tagged: estore, shortcodes, wp_eStore_random_products
Hello,
we are using extra eStore shortcode:
[wp_eStore_random_products number=5 style=1 type=1 cat_id=3]
We would like to move this function to the Theme PHP files.
Many other eStore extra shortcodes do have a PHP function equivalent, but we cannot see a PHP function for the [wp_eStore_random_products] shortcode.
Is there an easy way to repeat this shortcode with PHP code?
Thank you.
Use the following to use it from a PHP template file:
<?php echo do_shortcode('[wp_eStore_random_products number=5 style=1 type=1 cat_id=3]'); ?>