Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scribu/wp-random-post-link
https://github.com/scribu/wp-random-post-link
wordpress
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/scribu/wp-random-post-link
- Owner: scribu
- Created: 2010-12-08T04:09:15.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2012-04-30T15:58:12.000Z (over 12 years ago)
- Last Synced: 2024-10-03T06:40:12.965Z (about 1 month ago)
- Topics: wordpress
- Language: PHP
- Homepage: http://wordpress.org/extend/plugins/random-post-link/
- Size: 97.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.txt
Awesome Lists containing this project
README
=== Random Post Link ===
Contributors: scribu
Tags: button, redirect
Requires at least: 2.8
Tested up to: 3.0
Stable tag: trunkGenerates a link that takes a visitor to a random post, but never the same as before.
== Description ==
Unlike the [Random Redirect](http://wordpress.org/extend/plugins/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.
``
You can specify the text you want on the link like so:
``
Links: [Plugin News](http://scribu.net/wordpress/random-post-link) | [Author's Site](http://scribu.net)
== Frequently Asked Questions ==
= "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 =
* initial release
* [more info](http://scribu.net/wordpress/random-post-link/rpl-1-0.html)