WooCommerce product shortcode
If you are using WooCommerce plugin you can create affiliate products using your Amazon affiliate links and then use the [product]
shortcode to link them in your blog posts.
Shortcode demo
[product id="83"]
WooCommerce product page shortcode
Alternatively use the Chap theme’s custom AMP-compatible [wcproductpage]
shortcode to link them in your blog posts. This will show all the information you have added for this product as well as reviews and related products. It’s suitable for bigger and more expensive products that your whole blog post focuses on.
Shortcode demo
Woo Album #1
$9.00
View product[wcproductpage id="83" tabs="false"]
See: [wcproductpage] shortcode documentation
Card shortcode
If you do not wish to install WooCommerce on your WordPress site but still would like to link to affiliate products with the similar “card”-like look, then you can use the [card]
shortcode that comes with Chap.
Shortcode demo
[card]
[cardheader center aligned]Amazon product[/cardheader]
[cardimage src="//placehold.co/300x160"]
[cardtext]Short description for the Amazon product you’re linking to.[/cardtext]
[cardheader]€59.99[/cardheader]
[button large positive marginless right labeled icon url="https://amazon.com" icon="external"]Buy from Amazon[/button]
[/card]