跳到内容

Popular Post Real Time

v1.0

vicenteguerra · 2016年9月27日 上架

Set Category with Popular Posts (Based in Google Analytics Real Time)

正在使用
10+
评分
1.0 / 5
累计下载
1,727
最近更新
2016年9月28日
1 条评价需要 WordPress 3.4+已测试到 3.4.2

贡献者

截图

Popular Post Real Time
Popular Post Real Time
Popular Post Real Time

Get popular posts from Google Analytics Real Time and set every 10 minutes a new category called “Popular RT” with a number (By default 10 Posts) of popular post that you want and the number of active users in every post in this category, ready for you display your blog´s trendy post in every place of your WordPress.

Query Example using the category and the number of views for sorting.

<?php  $args = array( 'posts_per_page' => 5,      'offset' => 0,      'category_name' => 'popular_real_time_cat',      'meta_key' => 'active_users',      'orderby' => 'meta_value_num',      'order' => 'DESC');       $queryWP = new WP_Query();   ?> 
  • The number of posts assigned in “Popular RT” may be less than the number selected (By default 10) because Google Analytics also include root path / (Home), categories or tags if have more active users than another posts.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums