This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Random Post Link


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


“Parse error: syntax error, unexpected T_CLASS…” Help!

Make sure your host is running PHP 5. Add this line to wp-config.php to check:

What happens when there are no more posts?

If a user has seen all the available posts, the plugin will clear the list and redirect to a random post.

Contributors & Developers

“Random Post Link” is open source software. The following people have contributed to this plugin.


Translate “Random Post Link” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • handle case when a user has seen all posts