Displays recent tracks from your last.fm account. Requires PHP 5!
If you are using widgets
If you are not using widgets
Copy the following PHP code in your template:
<?php wplastfm('username' [, number of tracks [, $options]]); ?>
You can configure the plugin via "wplastfm-settings.php" or via array. E.g.
<?php $options = array("template" => '%track%', "cache" => 45, "trunctrack" => 40, "truncalbum" => 25); ?>
The plugin provides the following CSS classes:
If you don't need the
wplastfm.css, you can delete it.
You can change the following settings in the "wplastfm-settings.php" or via array.
$wplastfm_options['cache']- Specifies how long the data is kept locally
$wplastfm_options['trunctitle']- Maximum length of the text
$wplastfm_options['timeformat']- Time format for songs played more than 24 hours ago
$wplastfm_options['imagesize']- Image source (small, medium or large)
$wplastfm_options['albumcover_height']- Height of the album cover
$wplastfm_options['useartistimage']- If there is no album cover, the plugin uses the artist image instead (can be true or false)
$wplastfm_options['profilelink']- Displays link to your profile or disables it.
Requires: 2.9 or higher
Compatible up to: 3.1.4
Last Updated: 6 years ago
Active Installs: 70+
Got something to say? Need help?