tylerted
Member
Posted 1 year ago #
Just a quick heads-up, on the line of code that specifies the Amazon affiliate tag to pass along, it references the wrong variable. It uses {$tag} instead of {$amazonID}, which makes the affiliate tagging not work as expected.
Replacing {$tag} with {$amazonID} fixes it.
Also, suggest adding a "format" variable to pass along to allow for the smaller-format player (the "compact" version). Explicitly adding the line:
amzn_wdgt.format='{$format}';"
After adding format as an array variable seems to do the trick.
Otherwise, nice!
http://wordpress.org/extend/plugins/quick-amazon-mp3-clips/
turtlepod
Member
Posted 1 year ago #
thanks for this fix..
btw, i try to use this plugin in my template using shortcode using
<?php echo do_shortcode('[mp3 artist="Artist Name" album="Album Name" songtitle="Song Title" ]'); ?>
in my template, and it works..
is there a possible way to automatic insert artist name using category, and song title using post title, and album name using custom field 'album' ?
i try
<?php echo do_shortcode('[mp3 artist="<?php the_category(); ?>" album="<?php echo $album; ?>" songtitle="<?php the_title(); ?>"]'); ?>
but it's not working..
3dperuna
Member
Posted 1 year ago #
I wanted to search via ASIN, so I added the asin to the shortcode definition:
[Code moderated as per the Forum Rules. Please use the pastebin]
There's probably a more elegant way to do it, but it worked for me.