MF2 Feed adds a machine readable version of your posts, in the same way WordPress already offers RSS feeds. Other sites and services (readers, Webmention endpoints, IndieWeb tools) can read your content as structured data, no matter which theme you use.
Just install and activate the plugin. There are no settings.
After activation every URL of your site gets two additional feeds:
- Microformats2 JSON (
/feed/mf2/): the raw Microformats2 data, the same format a Microformats parser would produce. - JF2 (
/feed/jf2/): a simplified version of the same data, easier to read and to work with. See the JF2 spec.
Examples
- Your site:
https://example.com/https://example.com/feed/mf2/andhttps://example.com/feed/jf2/ - A single post:
https://example.com/2024/01/my-post/https://example.com/2024/01/my-post/feed/mf2/andhttps://example.com/2024/01/my-post/feed/jf2/(the comments of the post are included)
A live example: https://notiz.blog/2013/06/18/the-rise-of-the-indieweb/ and the matching mf2 and jf2 feeds.
The plugin also adds rel="alternate" links to the <head> of every page, so tools can discover the feeds on their own. And it supports content negotiation: a client that requests a post with the Accept: application/mf2+json (or application/jf2+json) header gets the JSON directly instead of the HTML.
Why?
Microformats2 are a key building block of the IndieWeb. But it is very hard (if not impossible) to get them into all WordPress themes. There are a few community themes that support Microformats2, but you should be able to use the theme you like. After a lot of discussions and some different plugin approaches, this plugin provides an alternate (rel="alternate") representation instead of changing the HTML of your theme.