Amazon product display shortcode
Amazon asin display product
// Add Shortcode function amazon_shortcode( $atts ) { // Attributes extract( shortcode_atts( array( 'asin' => '', ), $atts ) ); // Code return '<iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="http://ws-eu.amazon-adsystem.com/widgets/q?region=GB&ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=GB&source=ss&ref=ss_til&ad_type=product_link&tracking_id=-&marketplace=amazon&placement=' . $asin . '&asins=' . $asin . '&linkId=&show_border=true&link_opens_in_new_window=true"> </iframe>'; } add_shortcode( 'amazon', 'amazon_shortcode' );