Linux 软件免费装
Banner图

Cherry Trending Posts

开发者 Zemez
更新时间 2019年5月7日 19:11
PHP版本: 4.5 及以上
WordPress版本: 5.1.0
版权: GPL-3.0+
版权网址: 版权信息

标签

widget posts comments views popular rating cherry framework

下载

1.0.1 1.0.2

详情介绍:

This plugin will allow you to track and display the most popular posts of your WordPress website based on the number of views, rating and the number of comments; and thus increase its view-per-visitor rate. The plugin comprises three main components:

安装:

  1. Upload cherry-trending-posts folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
And of course, you will find new 'Cherry Trending Posts' widget in 'Appearance - Widgets' menu in your WordPress admin panel.

屏幕截图:

  • Widget settings

常见问题:

How to use?

It is not enough to install and activate the plugin to make it work properly. You also need to add 2 actions to the template.

  1. do_action( 'cherry_trend_posts_display_rating' ) / do_action( 'cherry_trend_posts_return_rating' ) - display / return HTML for ratings
  2. do_action( 'cherry_trend_posts_display_views' ) / do_action( 'cherry_trend_posts_return_views' ) - display / return HTML for post views counter
For example, in the twentysixteen template you need to add the actions to the template-parts/content-single.php file. In your template the actions can be stored in a different file.

更新日志:

1.0.0