WordPress.org

Support

Support » Plugins and Hacks » [Resolved] How to call inside the theme

[Resolved] How to call inside the theme

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Don Fischer
    Member

    @prophecy2040

    if you want to put a product in a template page, you can use the do_shortcode method like so:

    <?php echo do_shortcode('[AMAZONPRODUCTS ASIN=1234567890]');?>

    or if you used a custom field for the ASIN, you could do something like this:

    <?php
    $amazon_prod = get_post_meta{$post->ID,'amazon-asin',true);
    if($amazon_prod!=''){
        echo do_shortcode("[AMAZONPRODUCTS ASIN={$amazon_prod}]");
    }
    ?>

    Hope that helps.
    Regards,
    Don

    cloudduster
    Member

    @cloudduster

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] How to call inside the theme’ is closed to new replies.