Random Post Plugin – Redirect URL to Post
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 | Ex
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 . This post is determined by the query parameter ?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.
Simply enter the URL of your WordPress site into your browser and add ?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 .