Plugin Directory

Last.fm Rotation

Last.fm Rotation will display the album covers for the records that you've played the most over the last week.

  1. 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.

  2. Activate the plugin through the 'Plugins' menu in WordPress

  3. Configure under Settings -> Last.fm Rotation
  4. If you want to use Last.fm Rotation in your sidebar (the recommended spot), simply add the following code in your sidebar.php file
        <?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

Average Rating

0 stars
(0 ratings)

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.