=== Posts Like Dislike ===
Contributors: Happy Coders,regankhadgi
Donate link: http://wphappycoders.com/
Tags: post, page, like, dislike, like dislike
Requires at least: 5.0
Tested up to: 6.9
Stable tag: 1.1.6
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Like Dislike for WordPress Posts | WordPress Page | Custom Post Types

== Description ==
<strong>Posts Like Dislike</strong> is the <strong>Free</strong> WordPress Plugin to enable Like and Dislike Icons for <strong>default WordPress Posts</strong> or <strong>any other post types</strong>. Choose Thumbs Up or Thumbs Down, Smiley or Frown, Right or Wrong icons or your own custom like dislike icons, choice is yours.

<strong>Posts Like Dislike</strong> increases the interaction with the WordPress posts/post types by enabling likes and dislikes buttons along with the count.

= Posts Like Dislike Features =
* Status
    - Enable or Disable Posts Like Dislike for posts/page or any other post types
* Like Dislike Position
    - After Post
    - Before Post
* Like Dislike Display
    - Display Both Like and Dislike
    - Display Like Only
    - Display Dislike Only
* Like Dislike Restriction
    - Cookie Restriction
    - IP Restriction
    - No Restriction
* Like Dislike Order
    - Like Dislike
    - Dislike Like 
* 4 Pre Available Icon Templates
    - Thumbs Up Thumbs Down
    - Heart or Heart Beat
    - Right or Wrong
    - Smiley or Frown
* Custom Like Dislike Icon Upload feature
* Icon Color Configuration
* Count Color Configuration

= Shortcode = 
[posts_like_dislike id=post_id]
Please replace post_id with the id of the post or remove id parameter for considering the post id as the id of global $post object


= Custom Function = 
`<?php echo do_shortcode('[posts_like_dislike id=post_id]');?>`
Please replace post_id with the id of the post or remove id parameter for considering the post id as the id of global $post object

If you are using in your single.php template file then you can use below code 
`<?php 
$id = get_the_ID();
echo do_shortcode("[posts_like_dislike post_id='$id']");
?>`
    

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/posts-like-dislike` directory, or install the plugin through the WordPress plugins screen directly.
1. Activate the plugin through the 'Plugins' screen in WordPress
1. Use the Posts Like Dislike settings page inside the Posts Menu to configure the plugin



== Frequently Asked Questions ==
= What does this plugin do ? = 
This plugin provides the ability to add the like and dislike buttons for WordPress native posts.

= I have enabled the plugin but like and dislike icons are not being displayed. What may be the reason ? =
Our plugin uses the_content filter to append like and dislike icons . So if your active theme's posts template doesn't use the_content filter to display posts content then our plugin won't be able to display like and dislike icons.

= Is there any hooks available to extend the plugin ? = 
Our plugin does contains many actions and filters which are described inside the Help Section

= I want to display in the post detail template. Do you have a custom function? = 
We do have a shortcode [posts_like_dislike] which can also be used as custom function through `<?php echo do_shortcode('[posts_like_dislike]');?>`

= Can I disable fontawesome? = 
Yes you can disable the fontawesome as well from the display settings and also you can use your own icons by using custom icon option in the display settings

= Can I undo like and dislike after already liking or disliking? = 
Yes you can undo like or dislike by clicking the like or dislike. You can also give the different icon color for already liked or disliked icon from the display settings.

== Screenshots ==

1. Posts Like Dislike Icon Template 1
2. Posts Like Dislike Icon Template 2
3. Posts Like Dislike Icon Template 3
4. Posts Like Dislike Icon Template 4
5. Posts Like Dislike Icon Custom Template
6. Posts Like Dislike Basic Settings
7. Posts Like Dislike Design Settings

== Changelog ==
= 1.1.6 = 
* Fix: User IP being saved in comments meta instead of post meta

= 1.1.5 = 
* Fix: Ommitted like dislike icon being appended in RSS content 

= 1.1.4 = 
* Fixed user ip related issue

= 1.1.3 = 
* Fixed a security issue

= 1.1.2 = 
* Fixed security issue

= 1.1.1 = 
* Fixed security issue

= 1.1.0 = 
* Added undo feature for like and dislike action
* Added already liked disliked icon color option

= 1.0.9 = 
* Fixed few undefined index warnings
* Added fontawesome loading disable in the frontend option

= 1.0.8 = 
* WP 6.0 compatibility checked

= 1.0.6 = 
* WP 5.7 compatibility checked

= 1.0.5 = 
* Fixed login restriction mode issue
* Fixed ajax load issue
* Fixed some security issues

= 1.0.4 = 
* WP 5.6 compatibility checked

= 1.0.3 = 
* Added Post Like Dislike Count Info Metabox
* Added an option to display 0 by default
* Added alt tag in the custom image
* Removed default post type select 
* Added [posts_like_dislike] shortcode

= 1.0.2 = 
* WP 5.4 compatibility checked

= 1.0.1 = 
* Added custom post type support
* Updated the backend settings save mechanism
* Added array sanitization functions

= 1.0.0 =
* Initial plugin commit to wordpress.org repository

== Upgrade Notice ==
There is a new update. Please update to the latest version to get the new features and bug fixes.





