Title: Feditoot – Embed Latest Post from Mastodon
Author: pfennig
Published: <strong>2026 年 7 月 24 日</strong>
Last modified: 2026 年 7 月 24 日

---

搜索插件

![](https://s.w.org/plugins/geopattern-icon/feditoot.svg)

# Feditoot – Embed Latest Post from Mastodon

 作者：[pfennig](https://profiles.wordpress.org/pfennig/)

[下载](https://downloads.wordpress.org/plugin/feditoot.1.0.0.zip)

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

 [支持](https://wordpress.org/support/plugin/feditoot/)

## 描述

**Feditoot** adds a shortcode that fetches the most recent public post from a Mastodon
account and displays it using the instance’s official embed script — the same output
you get from Mastodon’s “Get embed code” feature.

This plugin is not affiliated with Mastodon.

No account ID lookup required. Just use the familiar `@user@instance` format.

**Features:**

 * Simple shortcode: `[feditoot acct="@user@instance.social"]`
 * Uses the official Mastodon `embed.js` for native-looking embeds
 * Configurable caching to reduce API calls
 * Optional filtering of replies and reblogs
 * Works with any Mastodon-compatible instance

**How it differs from other plugins:**

 * Unlike feed plugins that show multiple posts and require a numeric account ID,
   this plugin embeds only the latest post and accepts `@user@domain` directly.
 * Unlike single-post embed plugins that need a specific status URL, this plugin
   always shows the newest matching post.

## 安装

 1. Upload the `feditoot` folder to `/wp-content/plugins/`.
 2. Activate the plugin through the **Plugins** menu in WordPress.
 3. Add the shortcode to any post, page, or widget that supports shortcodes.

**Shortcode example:**

    ```
    [feditoot acct="@user@instance.social"]
    ```

## 常见问题

### What format should `acct` use?

Use your Mastodon handle: `user@instance.domain`. A leading `@` is optional.

Examples:

 * `acct="@alice@mastodon.social"`
 * `acct="alice@mastodon.social"`

### How does caching work?

By default, the latest post URL is cached for 10 minutes. Change this with `cache_minutes
="30"` (minimum 1 minute). Clear cache by waiting for expiry or deactivating/reactivating
the plugin.

### What if no posts are found?

The shortcode outputs nothing visible on the page (an HTML comment is left for debugging).
This can happen if the account has no public posts, or if all posts are filtered
out by `exclude_replies` or `exclude_reblogs`.

### Does this work with private or followers-only posts?

No. Only public posts accessible via the instance API are embedded.

### My instance does not support `/api/v1/accounts/lookup`

Most modern Mastodon instances support account lookup. If yours does not, this plugin
cannot resolve the account. Check with your instance administrator.

### Does my server need outbound HTTPS?

Yes. WordPress must be able to reach the Mastodon instance API over HTTPS.

### Is this an official Mastodon plugin?

No. Feditoot is an independent WordPress plugin and is not affiliated with Mastodon.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Feditoot – Embed Latest Post from Mastodon」是开源软件。 以下人员对此插件做出了
贡献。

贡献者

 *   [ pfennig ](https://profiles.wordpress.org/pfennig/)

[帮助将「Feditoot – Embed Latest Post from Mastodon」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/feditoot)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.0

 * Initial release.
 * Shortcode `[feditoot]` with `acct`, `cache_minutes`, `exclude_replies`, and `
   exclude_reblogs` attributes.
 * Transient caching and uninstall cleanup.

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**1 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **7.0.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/feditoot/)
 * 标签
 * [embed](https://cn.wordpress.org/plugins/tags/embed/)[fediverse](https://cn.wordpress.org/plugins/tags/fediverse/)
   [mastodon](https://cn.wordpress.org/plugins/tags/mastodon/)[shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
   [social](https://cn.wordpress.org/plugins/tags/social/)
 *  [高级视图](https://cn.wordpress.org/plugins/feditoot/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/feditoot/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/feditoot/reviews/)

## 贡献者

 *   [ pfennig ](https://profiles.wordpress.org/pfennig/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/feditoot/)