Ditto: tried [amazon text=search term] and it doesn’t work…
hello dear chasman hello dear patter38
many many thanks for steppin up the plate with this truely outstanding idea!! I like it very very much. I run Amazon-Link for years now. But this great feature would be a top-notch feature.
hopefully the author answers
greetings
Okay, got it working:
Template add %TEXT4% as search key:
<script charset='utf-8' type='text/javascript'>
amzn_assoc_ad_type = 'responsive_search_widget';
amzn_assoc_tracking_id = '%TAG%';
amzn_assoc_marketplace = 'amazon';
amzn_assoc_region = '%MPLACE%';
amzn_assoc_placement = '';
amzn_assoc_search_type = 'search_widget';
amzn_assoc_width = 'auto';
amzn_assoc_height = 'auto';
amzn_assoc_default_search_category = '';
amzn_assoc_default_search_key = '%TEXT4%';
amzn_assoc_theme = 'light';
amzn_assoc_bg_color = 'FFFFFF';
</script>
<script src='//z-%REGION%.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&Operation=GetScript&ID=OneJS&WS=1&MarketPlace=%MPLACE%'>
</script>
Shortcode: [amazon template=search &text4=duty belt]
http://theedcbible.com/wp/shop/books/book1/belts/duty/
ok… not sure if anyone is looking, but i added something to set the default search to be the Yoast SEO focus keyword. You need the Yoast plugin, and also one called “PHP Code”…
See http://www.ok2begreen.com/ to look how it looks…
———————————————————–
<?php
$focuskw = wpseo_get_value(‘focuskw’, $post->ID);
if ($focuskw == “”) {
$tempGreen = get_the_title();
} else {
$tempGreen = $focuskw;
}
echo amazon_shortcode(“template=search &text4=$tempGreen”);
?>
<hr />
If anyone uses this, i’d sure love to know!