[WordPress] 外掛分享: Results count

首頁外掛目錄 › Results count
30+
安裝啟用
尚無評分
5696 天前
最後更新
問題解決
WordPress 2.0+ v0.5 上架:2008-06-20

內容簡介

Results-Count 是一個非常簡單的外掛程式,會準確地計算 WordPress 中的操作 (例如搜尋、查看類別、查看月份歸檔等) 所得到的文章數量。
該外掛程式的目的是讓您能在存檔和搜尋結果頁面頂部插入文字,如:結果:1-10 共 43 篇文章,以顯示文章數量,同時顯示您目前所在結果頁面。
欲查看該外掛程式示例,可參考以下存檔或類別頁面:
http://www.elginism.com/,例如 http://www.elginism.com/archives/acropolis/

如您有任何問題或發現錯誤,請透過 http://www.elginism.com 上的聯絡表格與我聯繫。

修訂歷史

版本 0.5
修正可能的 XSS 漏洞。

版本 0.4.2
新增對作者存檔的支援。
修正當結果總數超過 999 篇時,輸出未正確顯示的錯誤。

版本 0.4.1
修正單一日期歸檔頁面的顯示問題。

版本 0.4
調整在頁面上只有單一搜尋結果時的文字。
修正在頁面上只有單一頁面結果時呈現正確文字的錯誤。
顯示在顯示年份歸檔時顯示正確的文字,而非月份的文字。
修正某些文法錯誤,美化部分文本。
修復各種非關鍵性錯誤和整理舊代碼。
在 html 輸出中添加註解,以幫助錯誤追蹤,可以識別外掛產生的代碼。

版本 0.3
新增與標籤 (WordPress 2.3 中引入) 的兼容性,因此標題將顯示在標籤歸檔結果中。

版本 0.2
更新外掛以與 WordPress 2.3 及更高版本兼容。

版本 0.1
外掛程式的首個公開發佈版本。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.5) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Results count」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Results-Count is a very simple plugin that does exactly what it says on the tin & will count the number of posts that result from operations in WordPress such as a search, viewing a category, or viewing a monthly archive etc.
The purpose of the plugin is to allow you to insert text at the top of your archive & search results pages saying something like: results: 1-10 of 43. It serves the dual purpose of showing the number of results, as well as showing what page you are currently on within those results.
For an example of the plugin in use, look at the top of any of the archive or category pages at:
http://www.elginism.com/ e.g. http://www.elginism.com/archives/acropolis/
If you have any queries or find bugs, could you please contact me via the contact form on http://www.elginism.com
Revision history

Version 0.5
Fixes possible XSS vulnerability.

Version 0.4.2
Adds support for Author archives.
Fixes bug where output does not display correctly when there are over 999 results.

Version 0.4.1
Fixes incorrect display for single day archive pages.

Version 0.4
Alters the text when there is only a single result on the page.
Corrects bug so that the correct text displays when there is only a single page of results.
Displays correct text when a year archive is shown rather than a month.
Tidied up text to fix some grammatical errors.
Various non-critical bugs fixed & old code tidied up.
Comments added in the html output to help error tracing, identifying the code produced by the plugin.

Version 0.3
Adds compatibility with tags (introduced in WordPress 2.3), so headers will now show up for tag archive results.

Version 0.2
Updates the plugin to work with version 2.3 & higher of WordPress.

Version 0.1
Initial public release of the code in plugin form.

延伸相關外掛

文章
Filter
Mastodon