CS Likes Counter

CS Likes Counter Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 2,361 downloads
CS Likes Counter Icon

Try plugin: CS Likes Counter

We'll create fresh WordPress site with CS Likes Counter installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About CS Likes Counter

Show multiple Likes Counter on your website.

2


0


0


0


0

updated: 6 years ago
since: 8 years ago
author: EdCreater

Description

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); ?>