Last.fm Rotation will display the album covers for the records that you've played the most over the last week.
Upload the folder lastfm-rotation to the wp-content/plugins directory.
The main script should be at /wp-content/plugins/lastfm-rotation/lastfm-rotation.php.
Activate the plugin through the 'Plugins' menu in WordPress
<?php wp_lastfm_rotation(); ?>
This function will generate an unordered list (UL) element in HTML. Here is a code snippet with how your sidebar.php file should look. You can place the call to wp_lastfm_rotation inside sidebar directly, or you can include this code inside of div element that includes a header element with a name (e.g. 'The Rotation').
<!--- Sidebar Starts -->
<div id="sidebar">
<div>
<h2><?php _e('The Rotation'); ?></h2>
<?php wp_lastfm_rotation(); ?>
</div>
<br clear="all" />
</div>
<!--- Sidebar Ends -->
Requires: 2.7 or higher
Compatible up to: 2.7
Last Updated: 2009-9-6
Downloads: 466
Got something to say? Need help?