Last.fm Widget
The Last.fm Recently Played Tracks widget is here to feel in the gap of old plugins and other plugins that just don’t seem to work right anymore! When you search the WordPress plugins gallery, you’ll notice that all of the Last.fm recently playing plugins seem to be at least one to two years old or have low reviews. That’s why I took the time to whip up this widget.
Version: 1.1.3
Shortcode Support
Starting with version 1.1.0, shortcodes are supported. This means you can put your recently played tracks anywhere! The shortcode works 100% independent of the widget and will only use the options from it if you don’t supply it with options.
The shortcode that you can post anywhere on your blog is:
[ lastfm ]
In all the exmaples, you need to remove the space after the [ and before the ].
The options the shortcode currently accepts are:
- Username (use as username, eg
[ lastfm username=just_in_time90 ]) - Number of tracks (use as tracks, eg
[ lastfm tracks=10 ], currently supporting up to 50 tracks) - Show Album Art (use as albumart, eg
[ lastfm albumart=1 ], using 0 for no and 1 for yes) - Show User Info (use as userinfo, eg
[ lastfm userinfo=1 ], using 0 for no and 1 for yes)
Combine them all: [ lastfm username=just_in_time90 tracks=3 albumart=1 userinfo=1 ]
Features
Selectable username (since v1.0.0)
Shortcode Support (since v1.1.0)
Widget title (since v1.0.0)
Number of tracks to show (since v1.0.0)
Select whether to show album art or not (since v1.0.0)
Select whether to show user info or not (since v1.0.4)
Star icon if no album art is available to keep style looking nice (since v1.0.0)
Select whether or not to use JavaScript to load (since v1.0.11)
Use jQuery to load if the browser supports JS, if not, load normally (since v1.0.0)
Displays simple “Last.fm may be down” instead of messing up your page or widget bar if Last.fm is down (since v1.0.1)
For JS enabled browsers, auto-refresh tracks every two minutes (since v1.0.2)
Ability to select whether or not to update every two minutes using JS (since v1.0.9)
Current Limitations
Only one instance of the widget is allowed right now
No error checking (will just show a blank spot if last.fm is down (will be coming in version 1.0.1)
You can see the widget in action on the side of my blog.
If you have any suggestions, bug fixes, or ideas for the widget, let me know in the comments.














about 1 month ago
Great widget! Took me forever to find one for last.fm that works with my version of wordpress.
about 1 month ago
Help. I installed the last fm.
Got the already sent error message
Opened the file mentioned in the error message using ftp login
Got to the text editor and I cannont figure out how to locate the line that has the extra lines.
PS Remember enough about text editing to make myself dangerous. Any suggestions?
about 1 month ago
Hi!
Can I ask what version of the plugin you’re running? The latest from wordpress.org? Also your version of WordPress? Where do you see the error? Is it all the time? Let me know that info, and I’ll try to help you as much as possible. I have the same release on my blog (I update it from WP.org) as the public version, and I’m not seeing any issues myself.
Thanks,
Justin
about 4 weeks ago
hi Justin,
I was looking for a lastfm plugin that is compatible with my worpress version 3.0.1
I found ur plugin and installed, but it just shows the name of the plugin in the side bar. can u help me to configure it??
thanks
about 3 weeks ago
I’m always more than willing to help! I’ll send you an e-mail and we’ll see what we can do!
Justin
about 3 weeks ago
Tnx Justin!! It works perfect now
)
about 5 days ago
On activation I get this message:
Fatal error: Cannot redeclare ij_lastfm_widget() (previously declared in /var/www/btstory/wp-content/plugins/lastfm-recently-played-tracks/lastfm.php:26) in /var/www/btstory/wp-content/plugins/lastfm-recently-played-tracks/lastfm.php on line 90
I’m using WordPress 3.0.1
The plugin shows as activated, even though I got “Plugin not activated because it triggered a fatal error”
about 5 days ago
Hi John,
What version of the plugin are you using? Also, what theme and any notable plugins are you using? (this will help me test to check compatibility issues).
Also, if you add it to your sidebar, will it show up?
Thanks,
Justin