AriRelated · Related posts for WordPress

Related posts that are really about the same thing.

AriRelated matches posts by what they are about, adds “Read also” links between paragraphs where readers actually are, and always puts the posts you picked yourself first.

v0.1.0WordPress 6.3+PHP 7.4+GPLv2 or later

3layouts: cards, a list or titles only
0cookies, IP addresses or visitor IDs
1counter per link per day is all it stores
Anylanguage, including Chinese, Japanese and Thai
What it does

Give readers a reason to stay

A post about sourdough should lead to bread and baking, not to whatever you published last week.

Matching that understands topics

Compares the words in each post, giving rare and specific words the most weight, plus the categories and tags posts share.

Your own picks first

Search and pick related posts on the edit screen, put them in order, and link them both ways if you like. See why each automatic match was chosen.

Inline “Read also” links

Links between paragraphs, never inside quotes, lists or tables and never after the last paragraph. Posts linked inline are not repeated below the post.

Three layouts

Cards in a grid, a list with thumbnails, or titles only. Cards turn into compact rows on phones.

Fits your theme

Uses your theme's fonts and colours on light and dark themes. Or turn the stylesheet off and style it yourself.

Place it anywhere

Automatically after the post, with the Related Posts block, the [arirelated] shortcode, the sidebar widget or arirelated() in a template.

Click stats without cookies

See which related links readers click and which posts send the most readers on. One counter per link per day: no cookies, no IP addresses, no visitor IDs.

Multilingual

Suggests posts in the same language with Polylang or WPML, and works in any language, including Chinese, Japanese and Thai.

Fast

Keeps its own small keyword index and caches each post's list. A new post joins its best matches straight away.

How matching works

Specific words count more than common ones

A word that appears in only a few posts says more about a topic than a word that appears everywhere. AriRelated scores matches that way, and does the same with tags and categories.

What it compares

Words in the post, rare words weigh mostShared tags, small tags weigh moreShared categories

What always wins

Posts you picked by hand come first

What you can exclude

One post (“Never suggest this post”)Whole categories
Setup

Works the moment you activate it

  1. Install and activate AriRelated.
  2. Related posts appear after your posts straight away. The keyword index builds in the background.
  3. Go to Settings → AriRelated to change the look and the matching, or to turn on inline links. A live preview shows each change.
For developers

Shortcode, REST API and WP-CLI

[arirelated count="3" layout="list" heading="More reading"]
GET /wp-json/arirelated/v1/posts/123?count=4
wp arirelated reindex

Override the markup with arirelated/list.php in your child theme, or use filters such as arirelated_related_ids and arirelated_html.

Be clear about the limits

What to expect

The first minutes use tags and categories

The keyword index builds itself after activation. Until it is finished, matches are based on categories and tags only.

A first release

AriRelated is at version 0.1.0. Tell us what your site needs from it and we will shape the next versions around that.

Privacy

No cookies, no personal data and no calls to any outside service. Click stats store one counter per link per day.

Coming soon on WordPress.org

AriRelated will be free to install straight from your WordPress dashboard under Plugins → Add New. Leave your email and we will tell you the day it is live.

Questions

Frequently asked

Which WordPress and PHP versions does it need?

WordPress 6.3 or newer and PHP 7.4 or newer. Install and set up AriRelated.

How do I place the list somewhere else?

Add the Related Posts (AriRelated) block where you want it, the [arirelated] shortcode, the AriRelated: Related posts widget, or arirelated() in a theme template. A post with the block or shortcode does not also get the automatic list. Place related posts.

Does it work with my theme or page builder?

The automatic list and inline links are added through WordPress's normal post content, so they appear wherever your theme or builder prints it. In a block theme you can put the block in a template instead. If your builder does not print the post content, use the shortcode or the widget. Set Style to “No CSS” to style the list yourself.

Can I stop a post from being suggested?

Yes. Tick “Never suggest this post on other posts” on its edit screen, or exclude whole categories under Settings → AriRelated → Matching. Posts you picked by hand still show. Picks and exclusions.

Will it slow my site down?

Each post's list is cached for 72 hours by default and its stylesheet and click script load only on pages that can show a list. Matching uses a small index of up to 40 keywords per post, kept up to date when you publish or edit.

Does it set cookies or need cookie consent?

No. It sets no cookies and contacts no outside service. Click stats store one total per link per day, with no IP addresses or visitor IDs, and you can turn them off. Click stats.

What data does it store, and what happens when I delete it?

AriRelated adds two tables of its own and never alters WordPress's tables. It keeps its settings in one option and your picks and cached lists in post meta. Deactivating keeps everything; deleting the plugin removes the tables, options and post meta. Stored data.

Does it work on a multilingual site?

Yes. With Polylang or WPML it suggests posts in the same language as the post being read. Matching works in any language, including Chinese, Japanese and Thai, and ignores common English words, plus common words in your site's language when it is Norwegian, Swedish, Danish, Finnish, German, French, Spanish, Dutch, Italian or Portuguese.

Does it work on multisite?

Yes. Network activation sets up every site, new sites set themselves up on first load, and each site has its own settings and index. Deleting a site removes its tables, and deleting the plugin cleans up every site.

Can I change the markup?

Add your own arirelated/list.php to your child theme, or use the arirelated_html and arirelated_item filters. Developer reference.