plugin-icon

CS Likes Counter

作者:Yaroslav Popov·
Show multiple Likes Counter on your website.
评级
5/5
版本
1.0.6
活跃安装
100
最后更新
Nov 12, 2018
CS Likes Counter

Counter allows you to count the likes and dislikes.

Counting is carried out using AJAX.

Limitation of cheating over IP (from one IP can vote with 10 minutes intervals).

Usage

Simply place the template single.php function call inside the loop

<?php while(have_post()) : the_post(); ?> <?php echo CS_Likes::show_buttons_like(); ?> <?php endwhile; ?>

Or use ID of post, if function call outside the loop

<?php echo CS_Likes::show_buttons_like($post_id); ?>

To obtain the number of likes, use the function:

<?php $likes_count = CS_Likes::get_post_likes($post_id); ?>

To obtain the number of dislikes, use the function:

<?php $dislikes_count = CS_Likes::get_post_dislikes($post_id); ?>
免费使用Business套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 4.7.31
这个插件是可用的下载,适用于您的站点。