
Scrobbled Blocks brings your Last.fm listening history to your WordPress site using native Gutenberg blocks. Whether you’re a music blogger, podcaster, DJ, or just want to share your musical tastes with your audience, this plugin makes it simple.
Now Playing Block
Display the track you’re currently listening to, or the most recent track you’ve played. Perfect for sidebars, footers, or anywhere you want to show off your current musical mood.
Recently Played Block
Show a list or grid of your recent scrobbles. Configurable from 1-20 tracks, with flexible layout options to match your site’s design.
This plugin connects to the Last.fm API (https://ws.audioscrobbler.com/2.0/) to retrieve your public listening history and display it on your WordPress site.
What the service is used for:
This plugin uses the Last.fm API to fetch your recent scrobbles (listening history) so they can be displayed on your WordPress site using the Now Playing and Recently Played blocks.
What data is sent:
When data is sent:
Service provider:
This service is provided by Last.fm Ltd.
No personal data from your site visitors is collected or sent to Last.fm. Only your configured Last.fm username and API key are transmitted to retrieve your public listening data.
The plugin uses CSS custom properties (CSS variables) for easy theming. Add these to your theme’s CSS to override the defaults:
:root {
/* Artwork sizes */
--scrobble-artwork-size: 64px;
--scrobble-artwork-size-grid: 100%;
/* Spacing */
--scrobble-gap: 1rem;
/* Typography */
--scrobble-font-size-track: inherit;
--scrobble-font-size-artist: 0.875em;
--scrobble-font-size-timestamp: 0.75em;
/* Colours */
--scrobble-color-text: inherit;
--scrobble-color-text-secondary: inherit;
--scrobble-color-link: inherit;
}
:root {
--scrobble-artwork-size: 100px;
}
:root {
--scrobble-color-text: #333;
--scrobble-color-text-secondary: #666;
--scrobble-color-link: #1db954;
}
This plugin uses build tools to compile JavaScript for the block editor. The compiled files are located in the build/ directory.
The original, human-readable source code is available in the src/ directory and on GitHub:
https://github.com/jordesign/scrobbled-blocks
To build from source:
npm install to install dependenciesnpm run build to compile the blocksFor bug reports and feature requests, please visit the GitHub repository.
Contributions are welcome! Please see the GitHub repository for development guidelines.