Support » Plugin: Amazon Product in a Post Plugin » How to call inside the theme

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


    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:

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

    Hope that helps.

    Thank you.

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