Forums

[resolved] [Plugin: eShop] do_shortcode (4 posts)

  1. eeyakc
    Member
    Posted 4 months ago #

    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!!

  2. elfin
    Member
    Posted 4 months ago #

  3. BlueDove
    Member
    Posted 2 months ago #

    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

  4. eeyakc
    Member
    Posted 2 months ago #

    OH Thanks!

Reply

You must log in to post.

About this Topic

Tags