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

BE Stats

描述

This is a helper plugin to allow you to build WordPress queries using WordPress.com stats.

This plugin uses the WordPress.com stats (packaged in Jetpack) to find out your most popular posts. You must be running Jetpack for this plugin to work. I recommend running Jetpack for at least 30 days to get useful data.

It asks for the 100 most popular posts over the past 30 days. This includes both posts and pages, since their stats don’t let you filter based on post type. I filter this list down to just posts and then store its ranking as post meta (‘be_stats’).

You can write custom queries to list popular posts, or use the Display Posts Shortcode plugin to do it for you. Examples using the shortcode plugin:

[display-posts orderby=”popular”] – Lists the 10 most popular posts
[display-posts orderby=”popular” posts_per_page=”4″] – Lists the 4 most popular posts
[display-posts orderby=”popular” posts_per_page=”4″ tag=”basic”] – Lists the 4 most popular posts tagged “basic”

For Developers

There are a few filters available to you for customization. Refer to the plugin’s code for more information.

be_stats_args – arguments passed to WordPress.com Stats API.
Default: array( ‘days’ => 30, ‘limit’ => 100 )
Example: http://www.billerickson.net/code/customize-be-stats-arguments/

be_stats_update – Conditional for determining if stats data should be saved
Default: ‘post’ == get_post_type()
Example: http://www.billerickson.net/code/be-stats-change-ranking-conditions/

評價

There are no reviews for this plugin.

貢獻者及開發者

“BE Stats” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 BE Stats 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.1.1

  • Bump up the “Tested to” version

1.1

  • Fix PHP Notice, props jjeaton

1.0

  • Initial Version