Title: Random Post Link
Author: scribu
Published: <strong>2009 年 11 月 4 日</strong>
Last modified: 2012 年 9 月 13 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/random-post-link.svg)

# Random Post Link

 由 [scribu](https://profiles.wordpress.org/scribu/) 開發

[下載](https://downloads.wordpress.org/plugin/random-post-link.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/random-post-link/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/random-post-link/#reviews)
 * [開發資訊](https://tw.wordpress.org/plugins/random-post-link/#developers)

 [技術支援](https://wordpress.org/support/plugin/random-post-link/)

## 外掛說明

Unlike the [Random Redirect](https://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.

    ```
    <?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](http://scribu.net/wordpress/random-post-link) | [Author’s Site](http://scribu.net)

## 常見問題集

  “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〉的開發相關工作。

參與者

 *   [ scribu ](https://profiles.wordpress.org/scribu/)

[將〈Random Post Link〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/random-post-link)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/random-post-link/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/random-post-link/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/random-post-link/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/random-post-link/)。

## 變更記錄

#### 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)

## 中繼資料

 *  版本 **1.0.1**
 *  最後更新 **14 年前**
 *  啟用安裝數 **60+**
 *  WordPress 版本需求 ** 2.8 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.0.5**
 *  語言
 * [English (US)](https://wordpress.org/plugins/random-post-link/)
 * 標籤:
 * [button](https://tw.wordpress.org/plugins/tags/button/)[redirect](https://tw.wordpress.org/plugins/tags/redirect/)
 *  [進階檢視](https://tw.wordpress.org/plugins/random-post-link/advanced/)

## 評分

 2 星，滿分為 5 星

 *  [  0 個 5 星使用者評論     ](https://wordpress.org/support/plugin/random-post-link/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/random-post-link/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/random-post-link/reviews/?filter=3)
 *  [  1 個 2 星使用者評論     ](https://wordpress.org/support/plugin/random-post-link/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/random-post-link/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/random-post-link/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/random-post-link/reviews/)

## 參與者

 *   [ scribu ](https://profiles.wordpress.org/scribu/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/random-post-link/)