Title: Posts Like Dislike
Author: Happy Coders
Published: <strong>2019 年 5 月 8 日</strong>
Last modified: 2026 年 5 月 23 日

---

搜索插件

![](https://ps.w.org/posts-like-dislike/assets/banner-772x250.png?rev=2885426)

![](https://ps.w.org/posts-like-dislike/assets/icon-256x256.png?rev=2087699)

# Posts Like Dislike

 作者：[Happy Coders](https://profiles.wordpress.org/happy-coders/)

[下载](https://downloads.wordpress.org/plugin/posts-like-dislike.1.1.6.zip)

 * [详情](https://cn.wordpress.org/plugins/posts-like-dislike/#description)
 * [评价](https://cn.wordpress.org/plugins/posts-like-dislike/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/posts-like-dislike/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/posts-like-dislike/#developers)

 [支持](https://wordpress.org/support/plugin/posts-like-dislike/)

## 描述

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

**Posts Like Dislike** 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

## 屏幕截图

 * [[
 * Posts Like Dislike Icon Template 1
 * [[
 * Posts Like Dislike Icon Template 2
 * [[
 * Posts Like Dislike Icon Template 3
 * [[
 * Posts Like Dislike Icon Template 4
 * [[
 * Posts Like Dislike Icon Custom Template
 * [[
 * Posts Like Dislike Basic Settings

## 安装

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

## 常见问题

### 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.

## 评价

![](https://secure.gravatar.com/avatar/1ad07090ced238c04ec2d7c358ee07c67b34ee9fb3e3cd7da3385977cb8e5f4c?
s=60&d=retro&r=g)

### 󠀁[Well written and cool!](https://wordpress.org/support/topic/well-written-and-cool/)󠁿

 [ftdrgn](https://profiles.wordpress.org/ftdrgn/) 2026 年 4 月 7 日

I was searching for a simple, well written and usable like / dislike plugin with
minimum options. While there are behemoths, there are also small ones, all of which
didn’t really fit the bill because they were ether too simplistic, or too big, complex
and pricy. If you know what you are doing, this plugin really it all. As an added
bonus – it doesn’t create any additional WP tables, but uses wp_meta. Excellent!
Kudos guys!

![](https://secure.gravatar.com/avatar/f91b2c082431b42b0b43fcb7d4372ccee3aa2acbdf81d269687d837fc0cd9970?
s=60&d=retro&r=g)

### 󠀁[it’s the best plugin](https://wordpress.org/support/topic/its-the-best-plugin-2/)󠁿

 [dgner](https://profiles.wordpress.org/dgner/) 2025 年 6 月 21 日

This is incredibly lightweight, and it doesn’t even create additional DB tables.
I think it’s the best plugin for likes and dislikes.

![](https://secure.gravatar.com/avatar/fd71a874e77a5030bd9770368de7bf087b85fcfe579d22adc6140b9dde39d02b?
s=60&d=retro&r=g)

### 󠀁[Не работает… вжух… и заработало 🙂](https://wordpress.org/support/topic/%d0%bd%d0%b5-%d1%80%d0%b0%d0%b1%d0%be%d1%82%d0%b0%d0%b5%d1%82-161/)󠁿

 [Danilkin](https://profiles.wordpress.org/danilkin/) 2025 年 6 月 8 日

К сожалению, этот плагин не работает. Установил по инструкции. Открыл статью, нажал
на “лайк” ничего не происходит. Только со второго раза меняется цвет лайка при нажатии,
но сам лайк не появляется. Также при прописывании лайков в мета поле, лайки также
не отображаются. Очень жаль. Надеюсь поправите или чем-то поможете.- Оценку исправил
на 5. Сам был виноват. Нужно было удалить id=post_id из <?php echo do_shortcode(‘[
posts_like_dislike id=post_id]’);?>

![](https://secure.gravatar.com/avatar/8653b45be6ed603e69d9cca933aeed124c15ff0efdeeff85f47336f4f93de008?
s=60&d=retro&r=g)

### 󠀁[Does it have most liked posts widget?](https://wordpress.org/support/topic/does-it-have-most-liked-posts-widget/)󠁿

 [Monk Mantra](https://profiles.wordpress.org/peaceful-monk/) 2024 年 11 月 16 日

This is a great and simple plugin, and lightweight also. There are many plugins 
out there in the market bloated with ads, and loaded with lots of css and js. But,
this one is very lightweight. I just have one requirement, I’ve to display top 10
most liked posts in the widget on frontend? Is it possible?

![](https://secure.gravatar.com/avatar/ea1ccfec2355d9f236e7ffbaa5a4d30ac4a9f480051dd62b1b054b0ab93ee47f?
s=60&d=retro&r=g)

### 󠀁[Stopped working after the latest update](https://wordpress.org/support/topic/stopped-working-after-the-latest-update/)󠁿

 [torstiva](https://profiles.wordpress.org/torstiva/) 2024 年 4 月 25 日 4 回复

Disappeared from the site after the latest update. I hate when a plugin gets worse
after update.

![](https://secure.gravatar.com/avatar/8b88e91d06c1c946df1da81f3e79ecfda497be73d02fa85a94db9c8a18951d1b?
s=60&d=retro&r=g)

### 󠀁[Perfect](https://wordpress.org/support/topic/perfect-10207/)󠁿

 [Anonymous User](https://profiles.wordpress.org/anonymized-20571783/) 2024 年 1
月 19 日

Great plugin

 [ 阅读所有23条评价 ](https://wordpress.org/support/plugin/posts-like-dislike/reviews/)

## 贡献者及开发者

「Posts Like Dislike」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Happy Coders ](https://profiles.wordpress.org/happy-coders/)
 *   [ Regan Khadgi ](https://profiles.wordpress.org/regankhadgi/)

「Posts Like Dislike」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/posts-like-dislike/contributors)
为本插件所做的贡献。

[帮助将「Posts Like Dislike」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/posts-like-dislike)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/posts-like-dislike/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/posts-like-dislike/)，或通过[RSS](https://plugins.trac.wordpress.org/log/posts-like-dislike/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/posts-like-dislike/)。

## 更新日志

#### 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

## 额外信息

 *  版本 **1.1.6**
 *  最后更新：**1 周前**
 *  活跃安装数量 **6,000+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  语言
 * [English (US)](https://wordpress.org/plugins/posts-like-dislike/) 和 [Russian](https://ru.wordpress.org/plugins/posts-like-dislike/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/posts-like-dislike)
 * 标签
 * [Dislike](https://cn.wordpress.org/plugins/tags/dislike/)[like](https://cn.wordpress.org/plugins/tags/like/)
   [like dislike](https://cn.wordpress.org/plugins/tags/like-dislike/)[page](https://cn.wordpress.org/plugins/tags/page/)
   [post](https://cn.wordpress.org/plugins/tags/post/)
 *  [高级视图](https://cn.wordpress.org/plugins/posts-like-dislike/advanced/)

## 评级

 4.3 星（最高 5 星）。

 *  [  17 条 5 星评价     ](https://wordpress.org/support/plugin/posts-like-dislike/reviews/?filter=5)
 *  [  2 条 4 星评价     ](https://wordpress.org/support/plugin/posts-like-dislike/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/posts-like-dislike/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/posts-like-dislike/reviews/?filter=2)
 *  [  3 条 1 星评价     ](https://wordpress.org/support/plugin/posts-like-dislike/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/posts-like-dislike/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/posts-like-dislike/reviews/)

## 贡献者

 *   [ Happy Coders ](https://profiles.wordpress.org/happy-coders/)
 *   [ Regan Khadgi ](https://profiles.wordpress.org/regankhadgi/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/posts-like-dislike/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://wphappycoders.com/)