Recent Tracks Last.fm Widget

The Last.fm Recent Tracks Plugin/Widget let’s you display your Last.fm recent tracks in the sidebar of your blog, useful if you use WP-Cache / Super Cache and want the feed to be fresh.

Download Last.fm Recent Tracks Wordpress Plugin / Widget Now

Installation:
Unzip the he Last.fm Recent Tracks Plugin and upload it to wp-content/plugins.

Go to your Plugin management screen and activate the plugin.

===========================
Widget Enabled Themes
===========================
Go To The Widget Screen Under Appearance.

Add The Recently on Last.fm Widget.

Add Your own Last.fm username to see your tracks instead of the default user account.

Select The number of Recent Tracks you want to display

===========================
Non Widget Enabled Themes
===========================
Ensure that jquery.lastfm.js file is being included in the head of your page

Add The following HTML to your sidebar, replacing __YOUR_USER_ID__ with your actual Last.fm username

<div class="last_fm_recent_tracks_bx">
	<h4><a href="http://www.last.fm/user/__YOUR_USER_ID__" target="_blank">Recently on Last.fm</a></h4>
	 <ul id="recent_on_last_fm_itm_list"></ul>
</div>
<script type="text/javascript">jQuery('#recent_on_last_fm_itm_list').lastfm( { params : { limit : "5", user : "__YOUR_USER_ID__" } } );</script>

Notes:
This plugin has been tested for Wordpress 2.8 using the k2 and Classic Theme. It leverages jQuery and JSONP to provide a never-stale, asynchronous connection to Last.fm.