It is possible to have Amazon product ads displayed on your blog posts automatically and without your intervention. The ads would be related to the topic of your post and you would get commission on any sales generated through your ads.
(Note: if you’d rather manually pick products for each post, there’s another guide for that)
The best source to get these relevant, contextual ads is the Amazon Omakase widget.
According to Amazon:
Omakase links will show an Associate’s visitors what they’re most likely to buy based on Amazon’s unique understanding of the site, the user, and the page itself.
On this page, I’ll show you how to have Omakase automatically displayed:
- at the bottom of your blog posts
- at the beginning of your blog posts
- on your sidebar
Omakase Widget Configurations

As you can see in the screenshot above, Amazon provides you with a lot of options to style and customize your Omakase widget. You can change the colors, the size, how the products are displayed and more.
If you want to display Omakase in your post area, make sure its size fits in your WordPress theme and choose matching colors. Once you’ve tweaked Omakase to your liking, you can copy the HTML code to insert in your WordPress theme as shown below.
Contextual Amazon Products in Post Area
To have Omakase be displayed in the post — whether above or below the content — you have to edit the relevant file in your WordPress theme. Some understanding of PHP would be helpful, but not necessary.
(Note: if you don’t wanna mess with PHP at all, you can use the sidebar method explained below. It don’t require no PHP)
So, in your WordPress admin area, go to Appearance >> Editor. Under the list of Templates, click on Single Post.
Now use the Find feature of your browser to find the_content. It may look like:
- the_content();
- <?php the_content(); ?>
- or something a little different
What you want to do is paste the Omakase code that you got from Amazon either before or after the_content() and outside the PHP tags, <?php and ?>. Pasting before the_content will show Omakase above your post content and below it will have the opposite effect.
Here’s how I have the Omakase code pasted below the_content();

Contextual Amazon Products in the Sidebar
Inserting Omakase in the sidebar is easy. Once you’ve copied the HTML code for Omakase, go to WordPress admin area and navigate to: Appearance >> Widgets. Add a Text widget to your sidebar. Now paste the Omakase code in the text widget.

Save and done!



Why is Omakase displaying the wrong type of products on my site?
Okay I have tried this every way I know how to. I can not get the Omakase script to work on my site. I have the blogolife theme and I can not get it to load. It just jacks up my blog. Any suggestions? I need some help.
How does it jack up your blog?
It will not work (the blog) if I try putting that code in the index.php or a single.php. I put one the search ad on my side bar no issues. It is editing the code that has NO content to break…
hi
I installed Omakase widget but it is showing the wrong type of products for my site. Why is that ?
Thanks a lot
Dori
wow thanks sir for this tutorial…
i’m just wondering how to show an “Associate’s visitors what they’re most likely to buy based on amazon’s unique understanding of the site, the user, and the page itself.”
btw can u make the code more copyable ?
@bojong soang, If you want to show your visitors what they’re most likely to buy, you have to use Amazon’s Omakase widget. It is like AdSense, it knows what your visitor has been previously looking at, and according to this data, it displays relevant products to them.
The code snippets in the post above are not meant to be copied and used as-is. They contain my own Amazon Associate tag. You need to go to Amazon Omakase widget and get your code from there. Then insert the code as instructed in the post above.