Skip to content

Link Extension for XFN

Link Extension for XFN adds XFN (XHTML Friends Network) relationship options to the WordPress block editor’s link tools, so you can say how you know the person behind a link. These docs help you install the plugin, tag your first link, and display relationships on your site.

XFN lets you describe how you know the person or site you’re linking to — friend, colleague, spouse, met, and so on. The plugin stores those relationships in the link’s standard HTML rel attribute, which is visible to anyone reading the page source and to tools that parse XFN. There are 18 values in 7 categories, and the plugin enforces the XFN 1.1 rules for which values can be combined.

It also ships three server-rendered blocks — XFN Blogroll, Relationship Badge, and Relationship Directory — that turn the relationships in your published content into browsable listings.

Bloggers, IndieWeb users, and site owners who want semantic, human-readable relationships on their links — without a custom database table or a separate link manager.

As of version 1.0.4, the plugin requires:

  • WordPress 6.9 or higher (frontend tooltips need WordPress 7.0 or later).
  • PHP 8.2 or higher.
  • The block editor — the plugin doesn’t use or restore the classic Link Manager.

Link Extension for XFN is published in the WordPress.org plugin directory — install it from Plugins → Add New Plugin in wp-admin. Installation also covers GitHub installs, and Playground preview lets you try it in your browser first.

  1. Installation — install and activate the plugin.
  2. Getting started — add your first XFN relationship to a link.
  3. Settings — decide which editor interfaces to enable.
  • No specific theme is required — rel attributes work with any theme.
  • Frontend tooltips (a hover/focus popover showing a link’s relationships) are gated to WordPress 7.0 or later by a feature flag; on 6.9 they don’t appear. See FAQ.
  • The optional Outpost plugin’s Micropub bridge can set relationships automatically; see Common tasks.

The plugin is developed in the open at github.com/courtneyr-dev/link-extension-for-xfn. Developer and maintainer documents (QA guides, testing notes, historical reports) live in the repository, separate from these user docs.