trouble with WP-Amazon (3 posts)

  1. Katrina
    Posted 11 years ago #

    I installed WP amazon and it's working out great, except I want the script to output the html like this:

    <td><img src="IMAGE URL/></td>
    <td><b>Currently Reading</b><br><a href="Product URL">PRODUCT NAME</a><br>By AUTHOR</td></tr></table>

    does anyone know how to hack into the plugin core?

  2. Katrina
    Posted 11 years ago #

    It doesn't have to put the name of the author

    (I got this from XANGA)

  3. rmanalan
    Posted 10 years ago #

    At some point, I'll make this configurable, but for now you can hack the wp-amazon.php file... look for a javascript function called generateHTMLCode:

    function generateHTMLCode(format,prodname,url,imgurl) {
    if (format=='link') {
    html = ''+prodname+'';
    } else {
    html = '<img src="'+imgurl+'" alt="'+prodname+'" />';
    htmlCode = document.getElementById("htmlcode")
    htmlCode.value = html;


Topic Closed

This topic has been closed to new replies.

About this Topic