[WordPress] 外掛分享: WP Year End Stats

首頁外掛目錄 › WP Year End Stats
10+
安裝啟用
尚無評分
4097 天前
最後更新
問題解決
WordPress 2.0+ v1.0 上架:2008-06-07

內容簡介

此外掛可顯示有關您的部落格的華麗統計數據,您可以在年終回顧文章中使用。

需要 PHP 5.3 或更高版本,無法在 PHP 5.2.x 中使用。

功能

此外掛目前支援以下統計數據:

每年發布的文章總數
每年收到的評論總數
每年寫作的總字數
每年文章的平均字數

簡碼

您可以使用以下簡碼在您的部落格中顯示統計數據。

`[yes_stats type="post_num" start_year="2004" end_year="2014" range="to" post_type="post" post_status="publish" title="圖表標題" height="500" width="500" ] ```

yes_stats 簡碼可包含以下屬性

type - 圖表類型。以下為允許的值

post_num - 按年份排列的文章總數 (預設值)
comment_num - 按年份排列的評論總數
post_avg_length - 按年度平均文章字數
post_totoal_length - 按年度文章總字數

start_year - 圖表的第一年 (預設值:當前年份)
end_year - 圖表的最後一年 (預設值:當前年份)
range - 年份的處理方式,可能的值有 to (預設值) 和 and
post_type - 產生圖表的文章類型 (預設值:post)
post_status - 產生圖表的文章狀態 (預設值:publish)
title - 圖表標題
height - 圖表高度 (預設值:500px)
width - 圖表寬度 (預設值:500px)

待辦事項

以下是我想增加到此外掛的功能,當我有空時間時會加入。如果您有任何功能請求或想提高特定功能的優先級,請告訴我。

新增更多統計數據
使圖表更可配置
快取數據

支援

如果您發現錯誤/問題或有功能請求,請在 github issues 上張貼。
如果您對使用方式有疑問或需要協助進行疑難排解,請在 WordPress 論壇上張貼或在 此外掛的首頁上留言。
如果您喜歡此外掛,請在 WordPress 插件庫頁面 上留下評論/反饋。
如果您找到此外掛有用或想要說聲謝謝,請查看其他我編寫的 WordPress 插件。
如果還有其他任何事項,請在 Twitter 上與我聯繫。

翻譯

此外掛附帶 pot 檔案。如果您想為此外掛進行翻譯,
可使用 pot 檔案創建您語言的 .po 檔案,並且讓我知道。

鳴謝

感謝 Alex King 為他的 b 函式庫。

外掛標籤

開發者團隊

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

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

原文外掛簡介

Displays fancy stats about your blog which you can include in your year end review posts.
Requires PHP 5.3 or higher. Will not work in PHP 5.2.x
Features
The plugin currently supports the following stats

Total number of posts per year
Total number of comments per year
Total number of words written per year
Average length of posts per year

Shortcode
You can use the following shortcode to display stats in your blog.
`[yes_stats type="post_num" start_year="2004" end_year="2014" range="to" post_type="post" post_status="publish" title="Title of the graph" height="500" width="500" ] ```

The yes_stats shortcode can have the following attributes

type – The type of graph. The following are the allowed values.

post_num – Number of posts by year (default)
comment_num – Number of posts by year
post_avg_length – Average length of posts by year
post_totoal_length – Total length of posts by year

start_year – The first year for the graph (default: current year)
end_year – The last year for the graph (default: current year)
range – How the years should be treated. Possible values are to (default) and and
post_type – The post type for which the graph should be generated (default: post)
post_status – The post status for which the graph should be generated (default: publish)
title – Title for the graph
height – Height of the graph (Default: 500px)
width – Width of the graph (Default: 500px)

TODO
The following are the features that I am thinking of adding to the Plugin, when I get some free time. If you have any feature request or want to increase the priority of a particular feature, then let me know.

Add more stats
Make the graphs more configurable
Cache the stats

Support

If you have found a bug/issue or have a feature request, then post them in github issues
If you have a question about usage or need help to troubleshoot, then post in WordPress forums or leave a comment in plugins’s home page
If you like the Plugin, then kindly leave a review/feedback at WordPress repo page.
If you find this Plugin useful or and wanted to say thank you, then there are ways to make me happy 🙂 and I would really appreciate if you can do one of those.
Checkout other WordPress Plugins that I have written
If anything else, then contact me in twitter.

Translation
The pot file is available with the Plugin. If you are willing to do translation for the Plugin,
use the pot file to create the .po files for your language and let me know.
Credits

Thanks to Alex King for his blog stats SQL scripts and for the inspiration.
Thanks to the excellent Flot JavaScript library.

Readme Generator
This Readme file was generated using wp-readme, which generates readme files for WordPress Plugins.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon