Title: MF2 Feeds
Author: Matthias Pfefferle
Published: <strong>2018 年 8 月 14 日</strong>
Last modified: 2025 年 12 月 7 日

---

搜索插件

![](https://ps.w.org/mf2-feed/assets/icon-256x256.png?rev=2856054)

# MF2 Feeds

 作者：[Matthias Pfefferle](https://profiles.wordpress.org/pfefferle/)

[下载](https://downloads.wordpress.org/plugin/mf2-feed.3.1.1.zip)

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

 [支持](https://wordpress.org/support/plugin/mf2-feed/)

## 描述

Provides a [Microformats2 JSON](http://microformats.org/wiki/microformats2-parsing)“
Feed” for every WordPress URL, and helps to allow other sites to get pre-parsed 
[Microformats-JSON](https://indieweb.org/jf2) even if the theme
 does not support
Microformats2.

[Microformats2](https://indieweb.org/microformats) are a key [building-block](https://indieweb.org/Category:building-blocks)
of the IndieWeb, but it is very hard (if not impossible) to get Microformats2 as
a core feature for all WordPress themes. There are several themes that are supporting
Microformats2, but everyone should choose his prefered theme and should not be limited
to use one of the [few community themes](https://indieweb.org/WordPress/Themes).
After [a lot of discussions](https://github.com/indieweb/wordpress-uf2/issues/30)
and some different plugin approaches, we are trying to provide an alternate ([`rel=altenate`](https://indieweb.org/rel-alternate))
representation of the microformatted HTML.

The plugin is inspired by the URL design of [p3k](https://github.com/aaronpk/p3k)
of [@aaronpk](https://github.com/aaronpk).

p3k Example:

 * Original: [https://aaronparecki.com/2018/07/30/18/xray-updates](https://aaronparecki.com/2018/07/30/18/xray-updates)
 * Microformats2 JSON: [https://aaronparecki.com/2018/07/30/18/xray-updates.json](https://aaronparecki.com/2018/07/30/18/xray-updates.json)
 * JF2: [https://aaronparecki.com/2018/07/30/18/xray-updates.jf2](https://aaronparecki.com/2018/07/30/18/xray-updates.jf2)

WordPress Example:

 * Original: [https://notiz.blog/2013/06/18/the-rise-of-the-indieweb/](https://notiz.blog/2013/06/18/the-rise-of-the-indieweb/)
 * Microformats2 JSON: [https://notiz.blog/2013/06/18/the-rise-of-the-indieweb/feed/mf2](https://notiz.blog/2013/06/18/the-rise-of-the-indieweb/feed/mf2)
 * JF2: [https://notiz.blog/2013/06/18/the-rise-of-the-indieweb/feed/jf2](https://notiz.blog/2013/06/18/the-rise-of-the-indieweb/feed/jf2)

## 安装

Follow the normal instructions for [installing WordPress plugins](https://codex.wordpress.org/Managing_Plugins#Installing_Plugins).

### Automatic Plugin Installation

To add a WordPress Plugin using the [built-in plugin installer](https://codex.wordpress.org/Administration_Screens#Add_New_Plugins):

 1. Go to [Plugins](https://codex.wordpress.org/Administration_Screens#Plugins) > [Add New](https://codex.wordpress.org/Plugins_Add_New_Screen).
 2. Type “`mf2-feed`” into the **Search Plugins** box.
 3. Find the WordPress Plugin you wish to install.
 4.  a. Click **Details** for more information about the Plugin and instructions you may
        wish to print or save to help setup the Plugin.
     b. Click **Install Now** to install the WordPress Plugin.
 5. The resulting installation screen will list the installation as successful or note
    any problems during the install.
 6. If successful, click **Activate Plugin** to activate it, or **Return to Plugin 
    Installer** for further actions.

### Manual Plugin Installation

There are a few cases when manually installing a WordPress Plugin is appropriate.

 * If you wish to control the placement and the process of installing a WordPress
   Plugin.
 * If your server does not permit automatic installation of a WordPress Plugin.
 * If you want to try the [latest development version](https://github.com/indieweb/wordpress-mf2-feed).

Installation of a WordPress Plugin manually requires FTP familiarity and the awareness
that you may put your site at risk if you install a WordPress Plugin incompatible
with the current version or from an unreliable source.

Backup your site completely before proceeding.

To install a WordPress Plugin manually:

 * Download your WordPress Plugin to your desktop.
    - Download from [the WordPress directory](https://wordpress.org/plugins/mf2-feed/)
    - Download from [GitHub](https://github.com/indieweb/wordpress-mf2-feed/releases)
 * If downloaded as a zip archive, extract the Plugin folder to your desktop.
 * With your FTP program, upload the Plugin folder to the `wp-content/plugins` folder
   in your WordPress directory online.
 * Go to [Plugins screen](https://codex.wordpress.org/Administration_Screens#Plugins)
   and find the newly uploaded Plugin in the list.
 * Click **Activate** to activate it.

## 常见问题

### What are Microformats 2?

Microformats are a simple way to markup structured information in HTML using classes.
WordPress incorporates some classic Microformats. Microformats 2 supersedes classic
microformats.

## 评价

此插件暂无评价。

## 贡献者及开发者

「MF2 Feeds」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Matthias Pfefferle ](https://profiles.wordpress.org/pfefferle/)
 *   [ David Shanske ](https://profiles.wordpress.org/dshanske/)
 *   [ IndieWeb ](https://profiles.wordpress.org/indieweb/)

[帮助将「MF2 Feeds」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/mf2-feed)

### 对开发感兴趣吗?

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

## 更新日志

Project actively developed on Github at [indieweb/wordpress-mf2-feed](https://github.com/indieweb/wordpress-mf2-feed).
Please file support issues there.

### 3.1.1

 * Small tweaks and dependency updates

### 3.1.0

 * Support Content Negotiation

### 3.0.0

 * Refactored to match the configuration of feeds built into WordPress
 * Bumped PHP Version requirement to PHP5.6 to match WordPress 5.3
 * Bumped minimum WordPress version to 5.2 as this allows for the version of get_content
   that includes a $post parameter
 * Fixed incorrect PHPCS configuration
 * Enabled JSON Pretty Print by default as originally disabled due a PHP5.4 requirement
 * Changed Post Item Generation Class to use WordPress functions instead of directly
   accessing the data where applicable
 * Adjusted jf2 feed to comply with jf2feed spec (https://jf2.spec.indieweb.org/#
   jf2feed)

### 2.1.0

 * Fixed JSON output
 * Fixed “flush rewrite rules” again

### 2.0.1

 * Fixed “flush rewrite rules”
 * Added filter to extend the mf2/jf2 data

### 2.0.0

 * Complete re-write to match the latest ideas of rel-alternate: https://github.
   com/indieweb/wordpress-uf2/issues/38

### 1.0.0

 * Initial plugin

## 额外信息

 *  版本 **3.1.1**
 *  最后更新：**6 月前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 5.2 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/mf2-feed/)
 * 标签
 * [indieweb](https://cn.wordpress.org/plugins/tags/indieweb/)[microformats](https://cn.wordpress.org/plugins/tags/microformats/)
 *  [高级视图](https://cn.wordpress.org/plugins/mf2-feed/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/mf2-feed/reviews/#new-post)

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

## 贡献者

 *   [ Matthias Pfefferle ](https://profiles.wordpress.org/pfefferle/)
 *   [ David Shanske ](https://profiles.wordpress.org/dshanske/)
 *   [ IndieWeb ](https://profiles.wordpress.org/indieweb/)

## 支持

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

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://opencollective.com/indieweb)