A collection of WordPress blocks that use the Last.fm API to display data from a user's Last.fm account.
This block has the following settings:
Setting | Description | Type | Default |
---|---|---|---|
Username | The Last.fm username to fetch data for | string | null |
Number of Tracks | The number of tracks to display (between 1-50) | number | 10 |
Include Album Artwork | Whether to include album artwork | boolean | true |
Artwork Type | Choose between vinyl, cassette, or CD artwork | string | vinyl |
Include Link to Track | Whether to include a link to the track on Last.fm | boolean | true |
- WordPress 6.7+
- PHP 7.4+
- Clone this repository.
- Run
npm install
to install the plugin's dependencies. - Run
composer install
to install the additional WordPress composer tools. - Start a local WordPress environment by running
npm run env:start
. - Run
npm start
to compile and watch source files for changes while developing.
Refer to package.json and composer.json for additional commands.