Random Related Posts Based on Category
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.
Consider an alternative
Random Related Posts Based on C… shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites and was last updated 16 years ago, and scores 23/100 on our health check.
- Small user base (10+ active installs)
- Very few reviews so far
- No update in 15 years
- Only tested up to WordPress 3 (latest is 7.1)
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Random Related Posts Based… stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| category | >100 |
| posts | >100 |
| random | >100 |
| related | >100 |
Version adoption
Share of active sites per release.
About Random Related Posts Based on Category
From the official readme · v1.0.2Description
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:
- Choose the number of Posts to show
- Choose whether it displays these posts randomly, or in order specified by you.
- Choose whether to display a title, what tags to use, and what text should be displayed (e.g. H3)
- Choose a class for the main UL
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 = 'Related Posts',
$rPulclass = 'related_posts',
$orderby = 'title',
$order = 'ASC'
); ?>
Where:
- $ppp = Number of posts to display (Any integer allowed)
- $rand = sets the display to random (true/false)
- $rPinctitle = Displays the title (true/false)
- $rPtitletag = The type of tag to wrap the title in (Default h3, but it can be any valid HTML tag)
- $rPtitle = The title to be displayed (This can be any text value)
- $rPulclass = This sets the class of the ul (This can be any text value)
- $rPexcerpt = Displays the post excerpt (true/false)
- $orderby = This allows you to order the posts by certain parameters (title/author/date/modified/menu_order/parent/ID/none/comment_count) If you want to choose the order of your posts, be sure to set $rand to false
- $order = This can either be Ascending or Descending (ASC/DESC)
Installation
- Upload the
random_related_posts_by_catdirectory to the/wp-content/plugins/directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Place
<?php relatedPosts(); ?>in your templates – please see the description for more options.
Changelog
Added ability to choose the order that the related posts are displayed in.
1.0.2
- Added ability to choose the order that the related posts are displayed in.
1.0.1
- Added ability to choose whether to display the excerpt.
1.0
- First Release
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best Random Related Posts Based on… alternatives
All category plugins →FAQ
Random Related Posts Based on Categ…: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Random Related Posts Based on C… free?
Yes. Random Related Posts Based on C… is free to download and use from the official WordPress.org plugin directory.
Is Random Related Posts Based on C… safe to use in 2026?
Random Related Posts Based on C… shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites and was last updated 16 years ago, and scores 23/100 on our health check.
How many websites use Random Related Posts Based on C…?
Random Related Posts Based on C… is active on 10+ WordPress websites and has been downloaded 5,333 times since it launched in December 2010. It was downloaded 43 times in the last 30 days.
Does Random Related Posts Based on C… work with WordPress 7.1?
Random Related Posts Based on C… is officially tested up to WordPress 3, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was Random Related Posts Based on C… last updated?
The latest version, 1.0.2, was released on January 10, 2011 (16 years ago).
Who makes Random Related Posts Based on C…?
Random Related Posts Based on C… is developed and maintained by James Kemp.
What are the best alternatives to Random Related Posts Based on C…?
The most popular alternatives to Random Related Posts Based on C… are Pages with category and tag (50K+ installs), Search & Filter (40K+ installs) and PublishPress Taxonomies (40K+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card
