该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的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.

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

常见问题

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

评价

此插件暂无评价。

贡献者及开发者

「Random Post Link」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「Random Post Link」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.1

  • handle case when a user has seen all posts

1.0