How to Add Related Posts to WordPress in 2026 (4 Methods That Work)

A laptop showing a WordPress blog post with a related posts section of three article cards below it — how to add related posts to WordPress

Most readers never reach your second-best article: they finish one post, see nothing inviting underneath it, and leave — a gap that costs blogs a large share of pageviews. Below, you will learn how to add related posts to WordPress four ways, from a one-click plugin setup to a lightweight code snippet you control completely.

A related posts section sits at the end of each article and suggests three to six other posts your visitor is likely to enjoy. Done well, it turns one pageview into two or three and surfaces older articles search engines already trust. Done badly, it shows random posts nobody clicks. This guide compares all four options honestly, with real prices and maintenance status verified in November 2026.

Related posts are automatic recommendations shown after an article, chosen because they share a topic, category, or tags with the post just read. WordPress does not include this feature by default, which is why every guide to how to add related posts to WordPress starts with a plugin or a snippet.

The benefits go beyond keeping readers on your site: internal links help search engines discover older content and pass authority between your pages, while a second click sends a positive engagement signal — one more reason to learn how to add related posts to WordPress properly.

There is a catch, and it explains why knowing how to add related posts to WordPress is only half the job. Relevance is everything: suggest unrelated posts and visitors learn to ignore the section, while extra queries can slow your pages. Matching quality matters more than the plugin badge. If you are still building the basics, start with our guide on how to add a table of contents to WordPress.

Before You Start: 4 Decisions to Make First

Before you learn how to add related posts to WordPress on your own site, make four quick decisions — five minutes that prevent most later problems.

First, decide how many posts to show. Three is the safe default; four to six works on magazine-style sites with strong featured images. More than six rarely earns extra clicks.

Second, choose thumbnails or text links. Thumbnails earn more clicks but add image requests to every post page; if your pages are heavy, text links are faster. Our guide on how to speed up WordPress explains how to measure the difference.

Third, decide where the section should appear: directly below the post content and above the comments is standard, with the highest click rates. Sidebar placement works as a secondary spot, but never as a replacement.

Fourth, check your content volume. Some tools need a minimum number of posts before they can find good matches — Jetpack only shows related posts when it finds at least three good results. With fewer than ten posts, a hand-picked manual list serves you better until your archive grows.

Method 1: How to Add Related Posts to WordPress With Jetpack

For beginners learning how to add related posts to WordPress, Jetpack is the simplest route, especially if it is already installed. Its Related Posts feature is free, maintained by Automattic, and needs no template editing on classic themes. Jetpack itself has over 3,000,000 active installs, and the feature was updated in November 2026.

One requirement first: Related Posts runs through WordPress.com infrastructure, as Jetpack’s documentation explains, so your site must be connected to a WordPress.com account. Matching and indexing happen there, not on your server.

Install and activate Jetpack, connect it to WordPress.com, then go to Jetpack, then Settings, then Traffic, and turn on “Show related content after posts”. On a classic theme, that is the whole job: related posts appear automatically below every post.

Block themes need one extra step: enabling the feature does not place the section automatically. Open Appearance, then Editor, then Templates, then Single Post, and add the Related Posts block after the post content, before the comments. Save the template and check a published post.

The same settings screen lets you add a “Related” heading, thumbnails, and publish dates. Be patient after activation: Jetpack notes indexing and caching can take up to 12 hours, so new posts may not show recommendations immediately. That is the whole story of how to add related posts to WordPress with Jetpack — one toggle, one block on block themes, and patience.

Contextual Related Posts, usually called CRP, is the strongest free plugin pick for most sites in 2026. It is actively maintained, works entirely on your own server, and needs no WordPress.com connection. It has over 50,000 active installs and a 4.8-star rating from 201 reviews, and version 4.5.7 was released on 21 November 2026 with security hardening. If you want the most reliable free answer to how to add related posts to WordPress, start here.

It matches posts by comparing titles and content using MySQL FULLTEXT indexes, and can also weigh tags, categories, and custom fields. Output is cached automatically, keeping database load under control on busy sites.

Installation takes about two minutes: go to Plugins, then Add New, search for “Contextual Related Posts”, install it, and activate it. That is the whole setup — the plugin displays related posts automatically after your post content and in your feed, with no template edits needed. This is why so many guides call it the easiest answer to how to add related posts to WordPress.

For more control, open Settings, then Related Posts, where you can change the post count, heading, thumbnails, excerpts, and included post types, and exclude specific categories or posts.

WordPress related posts plugin settings panel with layout and thumbnail options

Placement is flexible: beyond automatic display, CRP offers a “Related Posts [CRP]” block, a [crp] shortcode, and a widget for sidebars and footers, plus a REST API endpoint and filters for developers. That flexibility is why many tutorials on how to add related posts to WordPress recommend CRP first.

CRP Pro exists for larger sites at $99 per year for one site, Pro Multi from $199 per year, Agency at $599 per year, all verified in November 2026. Pro adds custom database tables, lazy loading, an advanced algorithm, WooCommerce related products, and WP-CLI commands — an upgrade path high-traffic publishers should know, though most blogs never need it.

Method 3: How to Add Related Posts to WordPress With YARPP

YARPP, short for Yet Another Related Posts Plugin, is the oldest and best-known name in this space, with over 100,000 active installs and a 4.8-star rating from 1,166 reviews. Its weighted algorithm considers titles, content, tags, categories, and custom taxonomies, and it offers list and thumbnail templates plus a full custom template system.

Before you install it, read this warning. YARPP is still listed on WordPress.org and is not closed for security reasons, but its last release, version 5.30.11, dates from 11 November 2024 — more than two years without an update, tested only up to WordPress 6.7.11. Reviews remain positive and it still works in tests, but no update for over a year signals stalled maintenance.

Our recommendation is clear: for a new install in 2026, start with Contextual Related Posts instead. Only choose YARPP if you specifically need its custom template system or fine-grained algorithm weights, and only after testing it on staging. That caution applies to every way to learn how to add related posts to WordPress, but most to a plugin with no release in two years.

If you still choose this route for how to add related posts to WordPress, the setup is familiar: install it from Plugins, then Add New, search for “YARPP”, and activate it. Then open the YARPP settings page and configure the pool, algorithm weights, and automatic display. Lower the match threshold if many pages report “no related posts” — the default is often too strict for smaller sites.

YARPP also gives you a [yarpp] shortcode, a block, a widget, and the yarpp_related() PHP function, with shortcode attributes such as template="thumbnails" and limit="3". Review its compatibility before every major WordPress upgrade — part of the ongoing care that comes with how to add related posts to WordPress using an aging plugin.

Method 4: How to Add Related Posts to WordPress Without a Plugin

For developers, the code method is the most precise answer to how to add related posts to WordPress. It uses WordPress’s own WP_Query class to fetch posts from the same categories as the current post, excluding the post itself — full control of markup, query, and styling, with nothing extra loading.

The simplest version needs no code at all: in the block editor, add a Query Loop block to any post and filter it by the current post’s categories. The Query Loop is a core block, so it works on every modern site with no plugin and no theme edits — the fastest no-plugin route for how to add related posts to WordPress, and our pick for non-developers.

A developer editing a WordPress post in the block editor with a related posts block

For full control, add a small function to your child theme’s functions.php file, or better, to a code snippets plugin so a theme update cannot wipe it out. The snippet below fetches three posts from the same categories as a simple list. Never edit parent theme files directly — updates overwrite them.

function badilhost_related_posts() {
    if ( ! is_single() ) {
        return;
    }
    $categories = get_the_category();
    if ( empty( $categories ) ) {
        return;
    }
    $cat_ids = wp_list_pluck( $categories, 'term_id' );
    $related = new WP_Query( array(
        'category__in'   => $cat_ids,
        'post__not_in'   => array( get_the_ID() ),
        'posts_per_page' => 3,
        'orderby'        => 'rand',
    ) );
    if ( $related->have_posts() ) {
        echo '<div class="related-posts"><h2>Related Posts</h2><ul>';
        while ( $related->have_posts() ) {
            $related->the_post();
            echo '<li><a href="' . esc_url( get_permalink() ) . '">'
                . esc_html( get_the_title() ) . '</a></li>';
        }
        echo '</ul></div>';
        wp_reset_postdata();
    }
}
add_action( 'generate_after_content', 'badilhost_related_posts' );

The hook depends on your theme — the example uses GeneratePress’s generate_after_content hook. The query itself is portable: same categories, exclude the current post, three results, random order. Cache it with a transient on high-traffic sites, since uncached queries on every post view add database load.

A third no-plugin option is the manual list: at the end of important posts, add three hand-picked links with one line each explaining why the reader should click. It costs nothing and usually beats any algorithm. Learning how to add related posts to WordPress by hand is slower, but for your ten most important pages, manual picks beat automation.

Related Posts Plugins Compared

All three plugins are free at their core, but they differ in maintenance, matching, and cost — the three things that decide how to add related posts to WordPress well. Figures below come from WordPress.org listings, checked in November 2026.

Plugin Active installs Rating Last updated Price
Contextual Related Posts 50,000+ 4.8 / 5 (201 reviews) 21 November 2026 (v4.5.7) Free; Pro $99/year
Jetpack Related Posts 3,000,000+ (Jetpack) 3.7 / 5 (Jetpack) November 2026 Free feature; WordPress.com connection required
YARPP 100,000+ 4.8 / 5 (1,166 reviews) 11 November 2024 (v5.30.11) Free

Contextual Related Posts is the only dedicated plugin of the three with a 2026 release; YARPP has the largest install base but the oldest release.

Which Method Should You Choose?

Your site’s size and your comfort with code decide the answer — and the best answer to how to add related posts to WordPress is the one you will actually maintain.

Method Setup time Cost Control Best for
Jetpack Related Posts 5 minutes $0 Low Sites already running Jetpack
Contextual Related Posts 2 minutes $0 (Pro $99/year) Medium Most blogs and publishers
YARPP 10 minutes $0 High Developers needing custom templates
Code / Query Loop block 15–30 minutes $0 Full Developers and minimal-plugin sites

If you want the short answer on how to add related posts to WordPress, install Contextual Related Posts and move on. It is free, maintained, needs no setup, and works on your own server without sending data to a third party. Choose Jetpack only when it is already part of your stack, the code method when performance is your top priority, and YARPP only for its template system. Then measure the result: compare pages per session two weeks after launch, and if the number does not move, fix relevance, not the plugin.

How to Style Your Related Posts Section

Default plugin styling is functional but plain, and a little CSS turns it into a section readers notice. Keep it consistent with your theme — same fonts, same card radius, same button style. Style is the last step in how to add related posts to WordPress properly: a working feature readers ignore is a wasted feature.

Use three columns on desktop and one on mobile, with a fixed-aspect featured image, a title in your heading font, and a one-line excerpt per card. Keep titles to two lines and add a small hover effect to signal the cards are clickable.

For the heading, “Keep Reading” or “You May Also Like” reads warmer than “Related Posts”. Keep it identical across the site. If your theme offers a sticky header, the grid pairs well with it — our guide on how to add a sticky header to WordPress covers that setup.

Troubleshooting: Related Posts Not Showing?

This is the most common complaint, and the fix is usually simple. Work through this checklist — most failures in how to add related posts to WordPress trace back to one of these causes.

First, confirm you have enough content. Jetpack needs at least three good matches, and all plugins struggle on sites with fewer than ten posts or posts sharing no categories or tags. Add broad, consistent categories and tags — not a new tag per post.

Second, check placement. On block themes, Jetpack Related Posts does not appear automatically; the block must sit in your Single Post template. For CRP and YARPP, confirm automatic display is enabled and your theme calls the standard content hooks.

Third, clear your caches, then test in a private browser window — page and server caches can serve an old version of the page without the new section. Also check for conflicts by briefly disabling other plugins that modify post content.

Finally, check security before blaming the plugin: a compromised install can break features in strange ways, so run through our WordPress security checklist if anything else behaves oddly. If the section still does not appear, switch briefly to a default theme on staging to confirm whether your theme is the cause.

Best Practices for Related Posts That Get Clicked

A related posts section is a recommendation engine, and engines live or die on relevance. Tag posts consistently with a small set of real topic tags, not one-off labels, and put every post in exactly one primary category so the matching logic has clean signals. These habits matter more than the tool: how to add related posts to WordPress is a relevance problem first, a technical one second.

Refresh your archive monthly, since old posts with broken images or outdated information drag down the section when recommended. Exclude posts that should never be recommended, such as landing pages and time-sensitive announcements — most plugins offer exclusion settings, so use them. Test one change at a time: thumbnails against text links for two weeks, then three posts against six. That testing habit is what turns knowing how to add related posts to WordPress into clicks.

BadilHost Verdict

Contextual Related Posts is the best free answer to how to add related posts to WordPress in 2026: it is actively maintained, it runs on your own server, and it works with zero setup. Jetpack is the easiest option if you already use it, and the Query Loop block is the best no-plugin route. Skip YARPP for new installs until it ships a fresh release.

Conclusion

Related posts are one of the cheapest engagement wins in WordPress: one plugin or snippet can turn one pageview into two, revive older articles, and give search engines fresh paths through your site. The hard part was never installation — it was choosing a trustworthy tool.

Now you know how to add related posts to WordPress four different ways, what each one costs, and which one fits your site. Install Contextual Related Posts for the fastest reliable setup, use Jetpack if it is already running, or build the code version for full control. Set it up today, check analytics in two weeks, and tune until the clicks prove it.

Frequently Asked Questions

No. WordPress core does not include a related posts feature. You need a plugin such as Contextual Related Posts or Jetpack, the Query Loop block, or custom code — those are the standard answers to how to add related posts to WordPress.

Three is the best default for most blogs. Magazine-style sites with strong featured images can show four to six. More than six rarely earns extra clicks and pushes your footer further down the page, so test before adding more.

A well-built plugin adds very little load. Contextual Related Posts caches its output, and Jetpack processes matching on WordPress.com servers rather than yours. Avoid plugins that run uncached database queries on every page view, and always test your page speed before and after installing one.

Yes — that is the code route for how to add related posts to WordPress. Add a Query Loop block filtered by the current post’s categories, or add a small WP_Query snippet to your child theme. Both methods are free, add no plugin overhead, and give you full control over the design and the matching logic.

The most common causes when learning how to add related posts to WordPress are too few posts, missing shared categories or tags, caching, or placement. Jetpack needs at least three good matches and up to 12 hours to index new content. Clear your cache, check your Single Post template on block themes, and confirm automatic display is enabled.

Is YARPP still safe to use in 2026?

YARPP is still listed on WordPress.org and is not closed for security reasons, but its last release was in November 2024. It still works in tests, yet the lack of updates means new WordPress versions and security issues may not be addressed quickly. For new installs, Contextual Related Posts is the safer choice for how to add related posts to WordPress.

Leave a Comment