跳到内容

Random Post Link

v1.0.1

scribu · 2009年11月4日 上架

Generates a link that takes a visitor to a random post, but never the same as before.

正在使用
50+
评分
2.0 / 5
累计下载
8,025
最近更新
2012年9月14日
1 条评价需要 WordPress 2.8+已测试到 3.0.5

贡献者

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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums