WordPress plugin intelligence profile

Random Post Plugin – Redirect URL to Post

Automatically redirect to your latest, oldest, random, or other post through a custom URL

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.8
Current version0.25.0
WordPress coverageTested up to WordPress 6.8
Minimum stackWP 4.9 · PHP 8.0
Directory statusactive
Last directory update8 Jun 20251y ago
Active installations3K+Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 20 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Random Post Plugin – Redirect URL to Post version 0.25.0 as active, updated 1y ago and tested up to WordPress 6.8.

Overview

About this plugin

Redirect your visitors to

  • a random post
  • your last (latest) post
  • your first (oldest) post
  • the previous or next post
  • or a combination of conditions, for example a random post among your last 10 posts, or the latest post from at least 3 months ago, or the latest post of a specific author.

Features | Examples | Documentation | Latest Development Blog Post

A magic URL takes you to the right post

This plugin provides a URL (link) that takes you directly to a post in single-post view. redirect_to= and optional others.

While the URL remains the same, its target changes depending on the available posts at the time when somebody enters it. That means you can use the same static URL in a menu, with a button or in a newsletter and the plugin finds out the correct target.

redirect_to=… to the end.

Possible values for redirect_to are:

  • last or latest – The URL will redirect to the last (latest) post.
  • first or oldest – The URL will redirect to the first (oldest) post.
  • random – The URL will redirect to a random post.
  • prev or previous – The URL will redirect to the previous post (by date).
  • next – The URL will redirect to the next post (by date).
  • custom – The post will be determined according to the mandatory parameter orderby and the optional parameter order.

You can also limit the scope of considered posts by additional filter parameters, such as &s=searchaword or &cat=2, or use an offset to go to the second latest or to the post before the previous. The parameter random combined with count and bias lets you pick the latest (or oldest) posts with a different probability than the rest.

Caching

The plugin offers caching of database results.

Settings and Parameters

There is no settings page in the backend. You configure the plugin entirely through the query parameters in the URL.

Please find more information about parameters and troubleshooting on the plugin website.

Examples for URLs

com/” with your own website location. Spaces are written as “%20”.

redirect_to=latest – redirects to the latest post

redirect_to=random&pk_campaign=random – redirects to a random post and tracks the visit

redirect_to=prev – redirects to the previous post

redirect_to=random&each_once=rewind – redirects to a random post, avoiding duplicates, and then starts over again

redirect_to=prev&offset=1 – redirects to the post before the previous post

redirect_to=random&count=10 – redirects to a random post among the 10 latest posts

redirect_to=random&count=10&bias=80 – redirects to a random post. The plugin picks one from the latest 10 with a probability of 80% and from the rest with a probability of 20%

redirect_to=random&count=10&offset=1 – redirects to a random post among the 10 posts that come after the latest

redirect_to=random&after=1%20month%20ago – redirects to a random post among the posts that are not older than 1 month

redirect_to=latest&exclude=4,7 – redirects to the latest post, excluding the posts with the IDs 4 and 7

redirect_to=latest&offset=1 – redirects to the second latest post

redirect_to=custom&orderby=comment_count&order=DESC – redirects to the post with the most comments

redirect_to=latest&s=iaido&default_redirect_to=12&cache=200 – redirects to the latest post that contains the word ‘iaido’ or, if nothing can be found, to the page or post with the ID 12; use a cache with a 200 second lifetime

Button

The plugin also provides a shortcode [redirect_to_post_button] to create a simple button. Some parameters are available.

A button that links to a random post is a great way to increase your visitors’ on-site engagement and therefore your SEO ranking!

(video by WPBeginner)

If you find this plugin useful, please give it a 5-star rating. Thank you!

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • random post
  • filter
  • recent
  • redirect
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.8

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.8.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.8
Minimum requirementsWordPress 4.9 · PHP 8.0
Update activity8 Jun 20251y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.