Title: GrooveLog Blocks for Last.fm
Author: Sarah Norris
Published: <strong>2026 年 5 月 21 日</strong>
Last modified: 2026 年 5 月 21 日

---

搜索插件

![](https://ps.w.org/groovelog-blocks-for-last-fm/assets/banner-772x250.png?rev=
3542726)

![](https://ps.w.org/groovelog-blocks-for-last-fm/assets/icon.svg?rev=3542710)

# GrooveLog Blocks for Last.fm

 作者：[Sarah Norris](https://profiles.wordpress.org/mikachan/)

[下载](https://downloads.wordpress.org/plugin/groovelog-blocks-for-last-fm.1.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/groovelog-blocks-for-last-fm/#description)
 * [评价](https://cn.wordpress.org/plugins/groovelog-blocks-for-last-fm/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/groovelog-blocks-for-last-fm/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/groovelog-blocks-for-last-fm/#developers)

 [支持](https://wordpress.org/support/plugin/groovelog-blocks-for-last-fm/)

## 描述

GrooveLog Blocks for Last.fm adds block-based Last.fm listening data to your WordPress
site.

The plugin currently includes a Recently Played Tracks block that displays the latest
tracks from a Last.fm user. Add a username, choose how many tracks to show, and 
optionally include artwork and links back to Last.fm.

#### Features

 * Display 1 to 50 recently played tracks.
 * Show track names and artist names.
 * Link tracks to their Last.fm pages.
 * Add optional artwork using default, vinyl, cassette, or CD styles.
 * Configure your Last.fm API key once for all blocks.
 * Cache Last.fm responses for five minutes to reduce repeat API requests.

#### Recently Played Tracks

Use this block to show a list of recently played tracks from a Last.fm profile.

Block settings:

 * Last.fm Username: the Last.fm username to fetch tracks for.
 * Number of Tracks: the number of tracks to display. Defaults to 1.
 * Include Album Art: whether to include artwork for each track. Disabled by default.
 * Artwork Type: default, vinyl record, CD, or cassette tape.
 * Include Link to Track: whether to link each track to Last.fm.

Set the Last.fm API key once in Settings > GrooveLog Blocks for Last.fm, then add
your Last.fm username in the block sidebar.

### External Services

This plugin connects to the [Last.fm API](https://www.last.fm/api) to fetch recently
played track data. When a page containing the Recently Played Tracks block is rendered,
the plugin sends the saved Last.fm API key, the configured Last.fm username, and
the requested number of tracks to `https://ws.audioscrobbler.com/2.0/`.

The response can include track names, artist names, Last.fm track URLs, and artwork
URLs. When track artwork is enabled, visitors’ browsers may request the returned
artwork image URLs directly. Responses are cached in WordPress transients for five
minutes. The plugin stores the Last.fm API key in the WordPress options table and
stores the Last.fm username in block attributes.

Last.fm service links:

 * [Last.fm API documentation](https://www.last.fm/api)
 * [Last.fm API Terms of Service](https://www.last.fm/api/tos)
 * [Last.fm Privacy Policy](https://www.last.fm/legal/privacy)

### Source Code

The distributed plugin includes compiled block assets in the `build` directory. 
The human-readable source code and build tools are available on [GitHub](https://github.com/mikachan/groovelog-blocks-for-last-fm).

To build the plugin assets from source, run `npm install` and `npm run build`.

## 区块

该插件提供了 1 个区块.

 *   Recently Played Tracks Display your most recently played tracks scrobbled from
   Last.fm.

## 安装

 1. Install the plugin from the WordPress plugin directory, or upload the plugin files
    to `/wp-content/plugins/groovelog-blocks-for-last-fm`.
 2. Activate the plugin from the Plugins screen in WordPress.
 3. Add your Last.fm API key in Settings > GrooveLog Blocks for Last.fm.
 4. Add your Last.fm username in the block settings.

## 常见问题

### Do I need a Last.fm API key?

Yes. Create an API key from [Last.fm](https://www.last.fm/api), then save it in 
Settings > GrooveLog Blocks for Last.fm.

### Where is the API key stored?

The API key is stored in the WordPress options table. It is not stored in block 
attributes or post content.

### Does the block make an API request on every page load?

No. Last.fm responses are cached in WordPress transients for five minutes.

### Can I show album artwork?

Yes. Enable album artwork in the block settings and choose the default, vinyl, cassette,
or CD style.

## 评价

此插件暂无评价。

## 贡献者及开发者

「GrooveLog Blocks for Last.fm」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Sarah Norris ](https://profiles.wordpress.org/mikachan/)

[帮助将「GrooveLog Blocks for Last.fm」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/groovelog-blocks-for-last-fm)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/groovelog-blocks-for-last-fm/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/groovelog-blocks-for-last-fm/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/groovelog-blocks-for-last-fm/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/groovelog-blocks-for-last-fm/)。

## 更新日志

#### 1.0.0

 * Initial release

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**6 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.7 或更高版本 **
 *  已测试的最高版本为 **7.0.8**
 *  PHP 版本 ** 7.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/groovelog-blocks-for-last-fm/)
 * 标签
 * [block](https://cn.wordpress.org/plugins/tags/block/)[lastfm](https://cn.wordpress.org/plugins/tags/lastfm/)
   [music](https://cn.wordpress.org/plugins/tags/music/)[recently played](https://cn.wordpress.org/plugins/tags/recently-played/)
   [scrobble](https://cn.wordpress.org/plugins/tags/scrobble/)
 *  [高级视图](https://cn.wordpress.org/plugins/groovelog-blocks-for-last-fm/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/groovelog-blocks-for-last-fm/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/groovelog-blocks-for-last-fm/reviews/)

## 贡献者

 *   [ Sarah Norris ](https://profiles.wordpress.org/mikachan/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/groovelog-blocks-for-last-fm/)