前言介紹
- 這款 WordPress 外掛「Random Post Plugin – Redirect URL to Post」是 2015-05-20 上架。
- 目前有 4000 個安裝啟用數。
- 上一次更新是 2025-03-02,距離現在已有 63 天。
- 外掛最低要求 WordPress 4.9 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 8.0 以上。
- 有 20 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
camthor |
外掛標籤
filter | random | recent | redirect | random post |
內容簡介
重定向您的訪客到:
隨機文章
您最新的文章
您最舊的文章
前一篇或下一篇文章
或一組條件的組合,例如最新的10篇文章中的隨機文章,至少3個月前的最新文章,或特定作者的最新文章。
功能 | 範例 | 文檔 | 最新開發部落格文章
一個神奇的URL帶您到正確的文章
此外掛提供了一個URL(連結),可直接帶您前往單篇文章檢視。此文章是由查詢參數?redirect_to=和其他可選參數來決定的。
當有人輸入此URL時,若可用的文章有更改,其URL將保持相同但目標會變更。這表示您可以在選單中使用相同的靜態URL、按鈕或電子報中使用,而此外掛會找出正確的目標。
只需將您的WordPress網站URL輸入瀏覽器中並加上?redirect_to=…即可。
redirect_to的可能值包括:
last或latest – URL將重新導向到最新的文章。
first或oldest – URL將重新導向到最舊的文章。
random – URL將重新導向到隨機文章。
prev或previous – URL將重新導向到上一篇文章(按日期)。
next – URL將重新導向到下一篇文章(按日期)。
custom – 依據強制性orderby參數和可選的order參數來決定文章。
您也可以透過其他篩選參數來限制考慮的文章範圍,例如&s=searchaword或&cat=2,或使用偏移量前往第二新的文章或上一篇文章之前的文章。random與count及bias結合可讓您選擇具有不同概率的最新(或最舊)文章。
緩存
此外掛提供資料庫結果的快取。
設定和參數
後端沒有設定頁面,您可以透過URL中的查詢參數來完全配置此外掛。
欲取得更多關於參數和疑難排解的資訊,請前往此外掛網頁。
URL的範例
注意:請以自己網站位置替換“http://www.example.com/”,空白要寫成“%20”。
http://www.example.com/?redirect_to=latest – 將重新導向至最新的文章
http://www.example.com/?redirect_to=random&pk_campaign=random – 將重新導向至隨機文章並追蹤訪問
http://www.example.com/?redirect_to=prev – 將重新導向至上一篇文章
http://www.example.com/?redirect_to=random&each_once=rewind – 將重新導向至隨機文章,避免與上一篇文章重複
原文外掛簡介
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.
Settings and Parameters
There is no settings page in the backend. You configure the plugin entirely through the query parameters in the URL.
Please find more information about parameters and troubleshooting on the plugin website.
Examples for URLs
Note: Replace “http://www.example.com/” with your own website location. Spaces are written as “%20”.
http://www.example.com/?redirect_to=latest – redirects to the latest post
http://www.example.com/?redirect_to=random&pk_campaign=random – redirects to a random post and tracks the visit
http://www.example.com/?redirect_to=prev – redirects to the previous post
http://www.example.com/?redirect_to=random&each_once=rewind – redirects to a random post, avoiding duplicates, and then starts over again
http://www.example.com/?redirect_to=prev&offset=1 – redirects to the post before the previous post
http://www.example.com/?redirect_to=random&count=10 – redirects to a random post among the 10 latest posts
http://www.example.com/?redirect_to=random&count=10&bias=80 – redirects to a random post. The plugin picks one from the latest 10 with a probability of 80% and from the rest with a probability of 20%
http://www.example.com/?redirect_to=random&count=10&offset=1 – redirects to a random post among the 10 posts that come after the latest
http://www.example.com/?redirect_to=random&after=1%20month%20ago – redirects to a random post among the posts that are not older than 1 month
http://www.example.com/?redirect_to=latest&exclude=4,7 – redirects to the latest post, excluding the posts with the IDs 4 and 7
http://www.example.com/?redirect_to=latest&offset=1 – redirects to the second latest post
http://www.example.com/?redirect_to=custom&orderby=comment_count&order=DESC – redirects to the post with the most comments
http://www.example.com/?redirect_to=latest&s=iaido&default_redirect_to=12&cache=200 – redirects to the latest post that contains the word ‘iaido’ or, if nothing can be found, to the page or post with the ID 12; use a cache with a 200 second lifetime
Button
The plugin also provides a shortcode [redirect_to_post_button] to create a simple button. Some parameters are available.
A button that links to a random post is a great way to increase your visitors’ on-site engagement and therefore your SEO ranking!
(video by WPBeginner)
If you find this plugin useful, please give it a 5-star rating. Thank you!
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Random Post Plugin – Redirect URL to Post」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
trunk | 0.14.0 | 0.14.1 | 0.15.0 | 0.15.1 | 0.16.0 | 0.17.0 | 0.18.0 | 0.18.1 | 0.18.2 | 0.18.3 | 0.19.0 | 0.19.1 | 0.20.0 | 0.21.0 | 0.22.0 | 0.23.0 | 0.24.0 | 0.25.0 |
延伸相關外掛(你可能也想知道)
Post-Plugin Library 》Post-Plugin Library 是一個共享代碼庫,並沒有獨立的功能,必須安裝它才能為 Similar Posts、Recent Posts、Random Posts、Popular Posts 和 Recent Comment...。
Recently Registered 》此外掛會為使用者列表新增一個可排序的欄位,顯示他們註冊的日期和時間。, 主要適用於單站台(因為單站台中完全沒有這方面的顯示)。在多站台網路中,它會為...。
Superb Recent Posts With Thumbnail Images 》展示哪些近期文章您曾經刊登過,以讓您的訪客看到。目前 WordPress 的預設組件「最新文章」並不支援圖片、縮略圖及更高階的自訂化。因此,我們釋出了自己的版...。
Advanced Recent Posts 》在 0.6.13 版本中,介紹了一個新功能:內嵌影片取代文章特色圖片, 你現在可以在 Responsive Grid Layout 中使用內嵌影片(第一部影片),並取代文章特色圖片...。
CPO Widgets 》CPO Widgets 是一個 WordPress 外掛,它為任何網站提供了多個必要的小工具。這些小工具為您的側邊欄提供了額外的功能,例如顯示圖像或推文等,來輕鬆顯示更豐...。
Vertical scroll recent post 》「垂直滾動最新文章」外掛可以在小工具中滾動顯示最新文章的標題,文章從底部向上垂直滾動。這是向使用者展示所有最新文章的最好、最時尚的方法。啟用此外掛...。
Recent Posts Plus 》這是 WordPress 近期文章外掛的加強版,提供更多的自訂選項。, 功能包括:, , 可以顯示文章縮圖,並且可自訂大小。, 可以顯示文章摘要、作者、評論數等等。, ...。
Mini Loops 》迷你文章循環的外掛程式。, 顯示最近的文章、分類文章等等。可以透過小工具、短代碼和樣板標籤來顯示。, 開發現在正在GitHub Repo進行中。, 選項解釋:, 小工...。
Advanced Most Recent Posts Mod 》進階最新文章小工具可選擇以縮圖(可選)顯示最新文章,從所選種類或當前種類或所有種類中獲取文章。當您的訪客在首頁時,它會從所有文章或選定的種類中獲取...。
Posts Viewed Recently 》此外掛包含一個響應式小工具,可顯示訪客最近訪問的文章或頁面。 Posts Viewed Recently 外掛能夠顯示自定義文章類型,您也可以使用小工具選項中提供的短碼在...。
Recent Posts 》「最新文章」插件會顯示您部落格的最新文章清單,輸出的結果可以進行多種自訂設定,如欲了解更多詳情,請參考這個網址。, 此插件需要最新版本的「文章外掛程...。
Better Recent Posts Widget (with thumbnails) 》重要提示:支援已移至 ZATZLabs 網站,不再提供於 WordPress.org 論壇。如果您需要開發人員的及時回覆,請 提交一個問題單。, 如果你曾經想要顯示最新文章,...。
ACF Recent Posts Widget 》ACFRPW 外掛新增了一個部件至「外觀」→「小工具」→「ACF 最新文章部件」。大部分欄位都相當明顯,您可以從一個設定集中選擇想要顯示的文章。, 每個設定會改變...。
Recent Posts 》取得最新文章列表。, 配置, 在調用此函數時,您可以傳遞參數來配置一些選項。, 例如: mdv_recent_posts(10, '', '
', true, 5, false, false), 參...。Flexible Recent Posts 》尋找維護者。請寄信至[email protected], 彈性最新文章 (FRP) 外掛讓你可以使用自定義模板在部落格上新增最新文章的小工具。, 主要功能如下:, , 小工具...。