I am a little bit confused..
i couldn't find a section in the help page telling me how to use the "do_shortcode" function inside the wordpress templates.
Please help!!
I am a little bit confused..
i couldn't find a section in the help page telling me how to use the "do_shortcode" function inside the wordpress templates.
Please help!!
I found that looking at http://codex.wordpress.org/Shortcode_API was a bit of overkill if you only want to add an existing shortcode to a template since the Shortcode API page majors on creating a custom shortcode.
The following from a post by Thunderknuckle is much simpler and applicable to the task at hand:
Use code similar to the following, changing the name of the shortcode and attributes to match the one you want to use.
<?php echo (do_shortcode("[eshop_random_products panels='yes' imgsize='30' records='9' show='9']")); ?>
ref:
http://wordpress.org/support/topic/299351?replies=4
Thunderknuckle
OH Thanks!
You must log in to post.