Plugin info

Total downloads: 4,693
Active installs: 10
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 1/10/2011 (5469 days ago)
Added to WordPress: 12/21/2010 (15 years old)
Minimum WordPress version: 3
Tested up to WordPress version: 3
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 5469 days ago

20/100

Is Random Related Posts Based on Category abandoned?

Possibly abandoned (last update 5469 days ago).

Compatibility

Requires WordPress: 3
Tested up to: 3
Requires PHP: f

Languages

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Contextual Related Posts
Rating 4.8/5 (197 reviews)Active installs 60,000
Related Posts for WordPress
Rating 4.6/5 (325 reviews)Active installs 20,000
WPC Frequently Bought Together for WooCommerce
Rating 4.5/5 (83 reviews)Active installs 10,000
Related Posts by Taxonomy
Rating 4.8/5 (76 reviews)Active installs 10,000
Same Category Posts
Rating 4.7/5 (13 reviews)Active installs 3,000
upPrev
Rating 4.6/5 (126 reviews)Active installs 1,000

Description

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 – .

To edit the options availble, use the following codes:


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

  1. Upload the random_related_posts_by_cat directory to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Place <?php relatedPosts(); ?> in your templates – please see the description for more options.

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

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