Hi,
Just install the plugin 'WP Custom Category Pages' – is this the one you are using?
I created a category ‘kindle’ and put the following in the section ‘Category Copy‘: "This is the Kindle Category [amazon asin=9876543210&template=image]"
When I go to the ‘kindle’ category page I get the text and image I expect, is this what you are doing?
If I pick a post at random with some Amazon Links in it and tick the ‘Make this post sticky’ option then go to the front page the shortcode expands as expected and all the images display okay.
I do have the Amazon Link Cache enabled and no other cache plugins installed. Do you have the Amazon Link Cache enabled? Do you have any other caching plugins running?
Paul
Hi Paul,
Thanks for the reply. I worked through your suggestions and made some progress, but couldn’t quite get what I wanted. I think it may actually be an issue with the custom template I’m using (below). The price and amazon logo pull through, but not the thumbnail?
<div class="al_found%FOUND%">
%LINK_OPEN%<img class="%IMAGE_CLASS%" src="%THUMB%">%LINK_CLOSE%
<p>%LINK_OPEN%%TITLE%%LINK_CLOSE%</p>
<span class="amazon_price">
<span class="al_found%FOUND%">%LINK_OPEN% <img height=20px src="%BUY_BUTTON%"> %PRICE%%LINK_CLOSE%
</span>
</span>
</div>
<img src="http://www.assoc-amazon.%TLD%/e/ir?t=%TAG%&l=as2&o=%MPLACE_ID%&a=%ASIN%" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
Hi,
Glad you’re making progress!
Some questions…
Are you using live data (i.e. have you entered some valid AWS keys)?
Are you providing the price in the shortcode or is the plugin fetching it live?
If you look at the page source is the %THUMB% keyword expanded to a URL/link to the Amazon website?
What ASIN are you using and I will try recreating on my test site.
Cheers,
Paul
Yes, live data, and plugin fetching for price. I can’t validate source code at the moment, but the same template works as a post, so I assume it is ok (It doesn’t however work as a full post displayed in an archive page)
Example admin: B009D14AQ2
.com domain for amazon.
Hi,
Struggling to recreate the problem, do you have a link to your site so I can see the problem first hand?
I assume you have localisation turned off? (That ASIN does not exist in all locales).
Paul
Hi Paul,
Localisation wasn’t turned off, but this wasn’t the problem – turned out to be a conflict with another plugin – Category Sticky Posts, which I’d been looking at as an alternative solution to the same problem.
Deactivated now and all works perfectly.
Thanks for the help
Brian
Excellent,
I might have a look at Category Sicky Posts to see if it is something I can fix in Amazon Link.
Thanks for the update,
Paul
‘Category Sticky Posts’ plugin seems to muddle with the search for attachments (which Amazon Link does to see if there is an image in the media library it should use).
I’ll put a fix in the next version of the plugin,
Cheers,
Paul