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
Or use ID of post, if function call outside the loop
To obtain the number of likes, use the function:
To obtain the number of dislikes, use the function:
1.0
1.0.2
- Add Russian Language support
- Add likes metabox to page
1.0.3
- Add support function outside the loop
1.0.4
1.0.5
- Update for wordpress 4.7.4
- function CS_Likes::show_buttons_like($post_id = NULL, $show = false) add parameter $show for display vote form
1.0.6
- Update for wordpress 4.9.8
Example 1: CS_Likes::show_buttons_like('', true) for display inside post loop
Example 2: CS_Likes::show_buttons_like($post_id, true) for display outside post loop