Title: Managed posts rating ★ Like button
Author: Daria Levchenko
Published: <strong>2023 年 3 月 29 日</strong>
Last modified: 2026 年 1 月 2 日

---

搜索插件

![](https://ps.w.org/managed-posts-rating-like-button/assets/banner-772x250.png?
rev=2953694)

![](https://ps.w.org/managed-posts-rating-like-button/assets/icon-256x256.gif?rev
=2953694)

# Managed posts rating ★ Like button

 作者：[Daria Levchenko](https://profiles.wordpress.org/levenyatko/)

[下载](https://downloads.wordpress.org/plugin/managed-posts-rating-like-button.2.0.2.zip)

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

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

## 描述

The Managed posts rating ★ Like button plugin is a rating system for your WordPress
site with a simple “like” button and advanced admin panel.
 This lightweight plugin
empowers you to enhance user engagement by enabling rating functionality for your
posts, pages, or any custom post type. You can automatically integrate the like 
button or use shortcodes to customize its placement.

### Key Features

 * Lightweight.
 * Integrate the like button automatically or use shortcodes for custom placement.
 * Access a detailed logs page to track user interactions and ratings.
 * The chart page displays users’ voting activity.
 * Ability to allow only logged-in users to vote.
 * Ability to customize the maximum number of votes per post from one user.
 * Easy voting management.
 * Ability to rewrite the voting button template in your theme.

### Usage

To automatically add the “like” button to your posts in the admin panel
 – Go to
the “MPRating” -> “Settings” page – Change the “Display” select value to “Before
Content” or “After Content” – Save settings

For more advanced control, select the “Manually” value for the “Display” select 
and use the provided shortcodes in your post content or templates:
 – `[mpr-button]`–
Display the like button. – `[mpr-button id="XX" disabled="false"]` – Display the
like button for a specific post (replace “XX” with the post ID). Use the “disabled”
attribute if you want to show the “like” button but disallow voting.

You can also display the voting button using the mpr_button function. The function
parameters are similar to the shortcode.
 mpr_button([‘id’ => 1, ‘disabled’ => false,‘
return’ => false ]);

### Admin Panel

Visit the “MPRating” section in your WordPress admin dashboard to access the admin
panel. From here, you can:
 – View and manage user ratings. – Customize the plugin
settings to match your preferences.

## 屏幕截图

 * [[
 * MPR Plugin Settings page
 * [[
 * New Rating column for posts list table in the admin panel
 * [[
 * Shortcode to show rating star manually and panel to add a rating for the post
   by hands
 * [[
 * Log page
 * [[
 * Chart page
 * [[
 * “Like” button after user voted

## 安装

**Modern way**

 1. In the admin panel to the Plugins’ menu in WordPress.
 2. On the top of the page press the ‘Add new’ button.
 3. In the search field type ‘Managed posts rating’, then click ‘Search Plugins’ or
    press Enter.
 4. Once you’ve found it, install it by clicking ‘Install Now’ and WordPress will take
    it from there.
 5. Activate the plugin after installation.
 6. Go to the “MPRating” -> “Settings” page to configure the plugin.

**Manually**

 1. Upload the plugin folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Go to the “MPRating” -> “Settings” page to configure the plugin.

## 常见问题

### How do I add the like button to my posts?

The like button can be added automatically. Go to the “MPRating” -> “Settings” page,
select the post types in which you want to display the “Like” button, and specify
the location where you want to add the button.
 You can also use the provided shortcodes
to add the button to specific posts or templates.

### How to customize the rating template?

Create an `mpr` folder in your theme and copy the `partials/front` folder into it.

### Is the plugin compatible with custom post types?

Yes, the plugin works with custom post types. Make sure that you enabled support
of new CPT on plugin settings page.

### Can I translate the plugin into other languages?

Yes, the plugin is translation-ready. You can use tools like WPML or Loco Translate
to create translations for different languages.

### Does the plugin slow down my website?

No, the plugin is designed to be lightweight and efficient, ensuring that it doesn’t
negatively impact your website’s performance.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Managed posts rating ★ Like button」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Daria Levchenko ](https://profiles.wordpress.org/levenyatko/)

[帮助将「Managed posts rating ★ Like button」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/managed-posts-rating-like-button)

### 对开发感兴趣吗?

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

## 更新日志

#### 2.0.2

 * Updated npm packages
 * Tested up to WP 6.9 version

#### 2.0.1

 * Updated npm packages
 * Tested up to WP 6.4.1 version

#### 2.0.0

 * Updated Logs page display
 * Added a page with a chart to display voting activity
 * Fixed rating block display on WooCommerce pages
 * Added the ‘mpr_get_post_rating’ function to retrieve post total rating or rating
   for the specified time period
 * Updated Tested up to WP version
 * Updated Readme files

#### 1.2.0

 * Added display settings for the “like” button on unsupported post types
 * Added mpr_is_user_can_vote_unsupported filter to change if a user can vote for
   the post unsupported post type.
 * Added the_mpr_button_shortcode_hidden filter to show notification shortcode when
   display disabled.
 * Added Compatibility with WordPress 6.2.

#### 1.1.0

 * Added escaping for echoed variables
 * Fixed frontend CSS
 * Fixed frontend JS multiple AJAX calls

#### 1.0.1

 * Removed unused code
 * Added readme.txt file

#### 1.0

 * Initial release

## 额外信息

 *  版本 **2.0.2**
 *  最后更新：**4 月前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.9 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 8.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/managed-posts-rating-like-button/)
 * 标签
 * [like button](https://cn.wordpress.org/plugins/tags/like-button/)[rate post](https://cn.wordpress.org/plugins/tags/rate-post/)
   [rating](https://cn.wordpress.org/plugins/tags/rating/)[rating system](https://cn.wordpress.org/plugins/tags/rating-system/)
   [voting](https://cn.wordpress.org/plugins/tags/voting/)
 *  [高级视图](https://cn.wordpress.org/plugins/managed-posts-rating-like-button/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ Daria Levchenko ](https://profiles.wordpress.org/levenyatko/)

## 支持

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

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