sandywp / plugins / related-posts-for-wp
Related Posts for WordPress
The best WordPress plugin for related posts. Simple, flexible, powerful algorithm, and built-in caching. Fully set up with only 1 click!
Ready in seconds.
v3.0.1 10,000+ installs WP 6.8+ PHP 8.0+

What you get inside
5 screens-
After activating Related Posts for WordPress, the settings screen offers to link your existing content: choose how many related posts every post gets and press…
-
The installer runs in the background and shows how far it is. You can leave the page while it works.
-
That's it! The settings are on the same screen, in the style of WordPress.
-
A new meta box is added to your post edit screens allowing you to link related posts, we will sort them on what we think is related (where top is most related).
-
Related posts are automatically added below your posts!
About this plugin
Related Posts for WordPress
Related Posts for WordPress offers you the ability to link related posts to each other with just 1 click!
Our installer will do all the hard work for you: simply activate the plugin, choose how many related posts every post gets and press Start. It runs in the background, so you can keep working while Related Posts for WordPress does the rest. Relating posts in WordPress has never been this easy!
Fully tested and working on PHP 8.0 and up (including PHP 8.1, 8.2, 8.3, 8.4 & 8.5) and WordPress 6.8 and up!
Related Posts for WordPress Premium
There’s an even better version of this plugin that comes with the following extra features:
- Full Styling Control With Our Configurator
- Cross Custom Post Type Support
- Overwritable templates
- Custom Taxonomy Support
- Adjustable Weights
- Older posts get your new posts as related posts, right away and on a schedule
- See why posts are related
- WordPress Network / Multisite support
- Priority Email Support
Related Posts for WordPress won’t lag your server!
We believe having related posts shouldn’t slow down your website. That’s why Related Posts for WordPress keeps its own tables and does the heavy lifting in the background and when you publish a post. Showing related posts only reads the links stored for a post, offering you quality related posts while keeping your website fast!
Automatically link posts to each other
After activating the plugin, its settings screen offers to analyze your posts and link them to each other based on what we think is related. This runs in the background, which means you can install Related Posts for WordPress on your website that has thousands of posts and create related connections on the fly, without any manual work!
Manually add, edit or remove
Everyone makes mistakes, so do we. That’s why you can easily modify all automatically created related posts. Simply navigate to the post that has incorrect related posts attached to it, select the correct related post and you’re done. Related posts you add by hand keep their place when the plugin links your posts again.
Shortcode
Related Posts for WordPress has a related post shortcode allowing you to display related posts on any position within your content.
Widget
Related Posts for WordPress has a related post widget allowing you to display related posts in any sidebar you’d like.
More information
- Visit the Related Posts for WordPress website
- Read the documentation
- Other WordPress plugins by Barry Kooij
- Contact Barry on X: @barry_kooij
- If you’re a dev, follow or contribute to the Related Posts for WordPress plugin on GitHub
Questions
- Related Posts for WordPress Premium
There’s an even better version of this plugin that comes with the following extra features:
- Full Styling Control With Our Configurator
- Cross Custom Post Type Support
- Overwritable templates
- Custom Taxonomy Support
- Adjustable Weights
- Older posts get your new posts as related posts, right away and on a schedule
- See why posts are related
- WordPress Network / Multisite support
- Priority Email Support
- Where’s the settings screen?
Settings > Related Posts.
- Can the displaying of excerpt be disabled?
Yes, set the excerpt length to 0 in the Related Posts for WordPress settings screen.
- Can I use custom CSS?
Yes, it’s in the Related Posts for WordPress settings screen. To change only the space between the posts or the width of the images, set the CSS custom properties
--rp4wp-gapand--rp4wp-image-widthin your theme, for example.rp4wp-related-posts { --rp4wp-gap: 2rem; --rp4wp-image-width: 25%; }.- Can the automatically outputted CSS be disabled?
Yes, clear the CSS field in the Related Posts for WordPress settings screen, or use the
rp4wp_disable_cssfilter:add_filter( 'rp4wp_disable_css', '__return_true' );.- Is there a theme function so I can output this list anywhere in my theme I want?
Yes, you can use
rp4wp_children();.
More information on the theme function can be found here.- Is there a shortcode?
Yes. To display your related posts via a shortcode use:
[rp4wp]- Can I limit the amount of related posts in the shortcode?
Yes. Use the limit attribute, for example
[rp4wp limit=1]for one related post, and the offset attribute to skip the first ones, for example[rp4wp limit=3 offset=3]for the fourth to the sixth.
Spin up a real WordPress site in seconds.
Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.