This plugin allows you to list any number of related posts from the same category as the current post. You can also randomise these results.
As of April 2026, Random Related Posts Based on Category is a WordPress posts plugin with 10 active installations and a 0/5 rating0. It has been downloaded 4.8K+ times in total. Requires WordPress 3+ and PHP false+. Available on WordPress.org since 2010. Last updated 15 years ago — may have compatibility concerns. Top alternative: WP Shortcodes Plugin — Shortcodes….
This plugin allows you to list any number of related posts from the same category as the current post. You can also randomise these results. It is very lightweight, at only 3KB.
There are a number of options available:
To display the random related posts in its simplest form, simply place the following code in your single.php file – <?php relatedPosts(); ?>.
To edit the options availble, use the following codes:
<?php relatedPosts(
$ppp = 4,
$rand = true,
$rPinctitle = true,
$rPtitletag = 'h3',
$rPtitle = 'Rela…| WordPress | 3+ requiredTested up to 3 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.