Random Post Link Icon

Random Post Link

By scribu

Active Installs

50+

Last Updated

September 13, 2012

First Released

November 4, 2009

Download History (Last one month)


Contributors

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.

Usage

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

No installation instructions provided.

“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:

var_dump(PHP_VERSION);

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.

Changelog

1.0.1

  • handle case when a user has seen all posts

1.0

<br />
<b>Warning</b>:  Undefined array key /home/ylinkin/truewp.net/wp-content/plugins/truewp-plugin-info/truewp-plugin-info.php on line 756
" width="120" height="120">

No previous versions available.

Plugin Info

  • Version: 1.0.1
  • Last Updated: September 13, 2012
  • Active Installs: 50+
  • WordPress Version: 2.8 or higher
  • Tested up to: 3.0.5
  • PHP Version: or higher
  • Tags:    
    button redirect

Ratings


2.0 out of 5 stars. (1 reviews)

See all reviews
Scroll to Top