Hi Raúl,
There are a number of ways to add this functionality…
1/
You could hack it into the plugin by editing the file ‘amazon.php’, find the line:
add_filter('the_content', array($this, 'content_filter'),15,1); // Process the content
and adding the line immediately after it:
add_filter('the_title', array($this, 'content_filter'),15,1); // Process the title
2/
However if you upgrade the plugin this will be lost, so you could add the following into some plugin or theme file e.g. in ‘functions.php’ add:
function add_amazon_titles ($opts, $al) {
add_filter('the_title', array($al, 'content_filter'), 15,1);
}
add_action ('amazon_link_init', 'add_amazon_titles', 10,2);
3/
Or you change your themes template to call the Amazon Link plugins functions directly, e.g. in your themes ‘single.php’ files where it displays the title add some code like:
<?php
$ASIN = get_the_title();
if (function_exists(amazon_shortcode)) echo amazon_shortcode("template=price&asin='$ASIN'");
?>
Just some ideas, I haven’t tested them thoroughly!
Paul