Microformats2 Feed for WordPress URLs
Clone or download
Latest commit e159897 Dec 1, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin added test env Aug 14, 2018
includes fixed warning Dec 1, 2018
languages updated readme and removed unused function Nov 29, 2018
tests fixed c&p issue Aug 14, 2018
.codeclimate.yml added test env Aug 14, 2018
.gitignore ignore .DS_Store Aug 14, 2018
.svnignore ignore lock file Aug 14, 2018
.travis.yml don't support PHP 5.2 Aug 14, 2018
Gruntfile.js automation stuff Aug 10, 2018
composer.json don't support PHP 5.2 Aug 14, 2018
docker-compose.yml first quick and dirty changes Aug 9, 2018
mf2-feed.php updated readme and removed unused function Nov 29, 2018
package.json some more documentation Aug 13, 2018
phpcs.ruleset.xml added test env Aug 14, 2018
readme.md updated readme and removed unused function Nov 29, 2018
readme.txt updated readme and removed unused function Nov 29, 2018


MF2 Feeds

Contributors: pfefferle, indieweb
Donate link: https://notiz.blog/donate/
Tags: microformats, mf2, jf2, rel-alternate, indieweb
Requires at least: 4.7
Tested up to: 4.9.8
Stable tag: 2.1.0
Requires PHP: 5.3
License: MIT
License URI: http://opensource.org/licenses/MIT

Microformats2 Feeds for WordPress


Microformats2 are a key building-block 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. After a lot of discussions and some different plugin approaches, we are trying to provide an alternate (rel=altenate) representation of the microformatted HTML.

The mf2-feed plugin provides a Microformats2 JSON "Feed" for every WordPress URL, and helps to get a pre-parsed Microformats-JSON even if the theme does not support Microformats2.

The plugin is inspired by the URL design of p3k of @aaronpk.

p3k Example:

WordPress Example:


What are Microformats 2?

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


Follow the normal instructions for installing WordPress plugins.

Automatic Plugin Installation

To add a WordPress Plugin using the built-in plugin installer:

  1. Go to Plugins > Add New.
  2. Type "mf2-feed" into the Search Plugins box.
  3. Find the WordPress Plugin you wish to install.
    1. Click Details for more information about the Plugin and instructions you may wish to print or save to help setup the Plugin.
    2. Click Install Now to install the WordPress Plugin.
  4. The resulting installation screen will list the installation as successful or note any problems during the install.
  5. 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.

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.
  • 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 and find the newly uploaded Plugin in the list.
  • Click Activate to activate it.


Project actively developed on Github at indieweb/wordpress-mf2-feed. Please file support issues there.


  • Fixed JSON output
  • Fixed "flush rewrite rules" again


  • Fixed "flush rewrite rules"
  • Added filter to extend the mf2/jf2 data



  • Initial plugin