Generates a link that takes a visitor to a random post, but never the same as before.
As of April 2026, Random Post Link is a WordPress button plugin with 50 active installations and a 2/5 rating from 1 reviews. It has been downloaded 7.4K+ times in total. Requires WordPress 2.8+ and PHP false+. Available on WordPress.org since 2009. Last updated 13 years ago — may have compatibility concerns. Top alternative: AddQuicktag.
Unlike the Random Redirect plugin, this plugin makes sure that a user will not see the same post twice.
It does this by storing a cookie containing a list of single posts that the user has seen. It then checks that list before redirecting.
Just put this line anywhere in your theme where you want the link to appear.
<?php random_post_link(); ?>
You can specify the text you want on the link like so:
<?php random_post_link('Feeling lucky'); ?>
Links: Plugin News | Author’s Site
| WordPress | 2.8+ requiredTested up to 3.0.5 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.