[WordPress] 外掛分享: RandomRSS

首頁外掛目錄 › RandomRSS
10+
安裝啟用
尚無評分
1392 天前
最後更新
問題解決
WordPress 3.0.1+ v1.5.0 上架:2022-01-21

內容簡介

RandomRSS 是一個 WordPress 外掛,可協助網站管理員進行內容聚合。它創建了一個真正簡單聚合 (RSS) 提要,可以隨機選擇最多10篇文章,並提供可選擇的篩選參數。

篩選參數允許使用者使用查詢字符串按分類或標籤篩選他們的 RandomRSS 提要的內容。他們也可以選擇將 pubDate 欄位從帖子最初發佈的日期更改為當前日期和時間。

要查看您的 RandomRSS 提要,只需在瀏覽器中載入 URL /wp-content/plugins/randomrss/feed.php 。要按類別篩選,只需在該 URL 後添加“?category = category_name”。要按標籤篩選,只需在 URL 後添加“?tag=tag”。如果您想按類別和標籤篩選,只需將其全部添加到 URL 中,例如“?category=category_name&tag=tag”。

要將 pubDate 更改為當前日期/時間,只需在 URL 中添加“?pubdate=new”。如果 URL 已經有不同的查詢字符串,則需要像這樣添加“&pubdate=new”。

新增:若要按日期範圍篩選,請添加指定最早和最晚日期的字符串。可以使用支援 YYYY-MM-DD 格式的字符串“datemin”和“datemax”完成。

如果您想在指定日期之後篩選所有內容(例如:2016年6月18日),只需添加“datemin=2016-06-18”,如果您想在指定日期之前篩選所有內容(例如:2021年5月20日之前),只需添加“?datemax =2021-05-21”,如果您想設定所有內容的日期範圍,可以添加類似這樣的字符串: “?datemin=2016-06-18&datemax-2021-05-21”,只有在添加多個字符串時才需要使用字符&。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.5.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「RandomRSS」→ 直接安裝(推薦)

原文外掛簡介

RandomRSS is a WordPress Plugin that helps webmasters with content syndication. It creates a Really Simple Syndication (RSS) feed featuring up to 10 posts selected at random with optional filtering parameters.
Filtering parameters allow users to filter the content of their RandomRSS feed by category or tag using query strings. They are also given the option to change the pubDate field from the date the post was originally published to the current date and time.
To view your RandomRSS feed simply load the URL /wp-content/plugins/randomrss/feed.php into your browser. To filter by category simply append “?category=category_name” to that URL. To filter by tag simply append “?tag=tag” to the URL. If you want to filter by category and tag simply append both to the URL like so “?category=category_name&tag=tag”.
To change the pubDate to the current date/time simply append “?pubdate=new” to the URL. If the URL already has a different query string you will need to append it like this “&pubdate=new”.
NEW: To filter by date range append strings specifying the earliest and latest dates you want. That can be done with the “datemin” and “datemax” strings which support the YYYY-MM-DD format.
If you want everything after a specific date (ex: June 18, 2016) simply append “datemin=2016-06-18” or if you want everything before a specific date (ex: May 20, 2021) simply appened “?datemax=2021-05-21” and if you want to set both append something like “?datemin=2016-06-18&datemax-2021-05-21” with the & character only being used when appending more than one string.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon