[wordpress插件] BE StatsBE统计

wordpress 插件 文章 2020-03-02 07:40 482 0 全屏看文

AI助手支持GPT4.0

评分
90
描述

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

这是一个帮助程序插件,可让您使用WordPress.com统计信息来构建WordPress查询。

This plugin uses the WordPress.com stats (packaged in Jetpack) to find out your most popular posts.

此插件使用WordPress.com统计信息(打包在Jetpack中)来查找您最受欢迎的帖子。

You must be running Jetpack for this plugin to work.

您必须正在运行Jetpack,此插件才能工作。

I recommend running Jetpack for at least 30 days to get useful data.

我建议运行Jetpack至少30天以获取有用的数据。

It asks for the 100 most popular posts over the past 30 days.

它要求过去30天内100篇最受欢迎的帖子。

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’).

我将此列表筛选为仅帖子,然后将其排名存储为帖子元(“ be_stats”)。

You can write custom queries to list popular posts, or use the 编写自定义查询以列出热门帖子,或使用

https://wordpress.org/extend/plugins/display-posts-shortcode/">Display Posts Shortcode plugin to do it for you.

https://wordpress.org/extend/plugins/display-posts-shortcode/">Display Posts Shortcode插件为您完成此操作。

Examples using the shortcode plugin:

使用shortcode插件的示例:

[display-posts orderby=”popular”] – Lists the 10 most popular posts

[display-posts orderby =” popular”] –列出10个最受欢迎的帖子

[display-posts orderby=”popular” posts_per_page=”4″] – Lists the 4 most popular posts

[display-posts orderby =” popular” posts_per_page =” 4”] –列出4个最受欢迎的帖子

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

[display-posts orderby =” popular” posts_per_page =” 4” tag =“ basic”] –列出标记为“ basic”的4个最受欢迎的帖子

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.

be_stats_args –传递给WordPress.com Stats API的参数。

Default: array( ‘days’ => 30, ‘limit’ => 100 )

默认值:array('days => 30,'limit'=> 100)

Example: http://www.billerickson.net/code/customize-be-stats-arguments/

例如:http://www.billerickson.net/code/customize-be-stats-arguments/

be_stats_update – Conditional for determining if stats data should be saved

be_stats_update –确定是否应保存统计数据的条件

Default: ‘post’ == get_post_type()

默认值:“ post” == get_post_type()

Example: http://www.billerickson.net/code/be-stats-change-ranking-conditions/

例如:http://www.billerickson.net/code/be-stats-change-ranking-conditions/

下载地址
https://downloads.wordpress.org/plugin/be-stats.1.1.1.zip
-EOF-

AI助手支持GPT4.0