Title: Recommend
Author: mattlitzinger
Published: <strong>2021 年 5 月 6 日</strong>
Last modified: 2023 年 3 月 20 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/recommend/assets/icon.svg?rev=2527490)

# Recommend

 作者：[mattlitzinger](https://profiles.wordpress.org/mattlitzinger/)

[下载](https://downloads.wordpress.org/plugin/recommend.zip)

 * [详情](https://cn.wordpress.org/plugins/recommend/#description)
 * [评价](https://cn.wordpress.org/plugins/recommend/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/recommend/#developers)

 [支持](https://wordpress.org/support/plugin/recommend/)

## 描述

#### Features

 * Give users a “like” action on posts
 * Display the like count on a post
 * Custom label text for like count
 * Disable label text for count site-wide
 * Choose between a “Thumbs Up” or a “Heart” icon
 * Limit like action to specific post types
 * Disable plugin CSS or add custom styling rules

By default, the like count will be displayed below the content for individual posts
across all post types. You can disable this in the plugin settings or define which
post types to include.

If you’d rather display the like count in your template files, use the below code:

    ```
    <?php 
        if( function_exists('wp_recommend_show_likes') ) 
            wp_recommend_show_likes(); 
    ?>
    ```

### Shortcodes

The following shortcode will display the like count on any post.

    ```
    [recommend-likes]  
    ```

The following shortcode will display a list of most liked posts. There are two optional
parameters to fine tune the displayed results: `post_type` and `posts_per_page`.
The default values for these parameters are shown in the example below.

    ```
    [recommend-liked-posts post_type="post" posts_per_page="5"]
    ```

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ mattlitzinger ](https://profiles.wordpress.org/mattlitzinger/)

[帮助将「Recommend」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/recommend)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.6.3

_Release Date: August 9th, 2022_

 * Updated to support WordPress 6.0.1 release
 * Fixes:
    - Added `in_the_loop()` and `is_main_query()` conditionals for displaying like
      count after post content

#### 0.6.2

_Release Date: January 25rd, 2022_

 * Updated to support WordPress 5.9 release

#### 0.6.1

_Release Date: June 3rd, 2021_

 * Fixes:
    - Fixed issue w/ disabled admin field

#### 0.6

_Release Date: June 3rd, 2021_

 * Changes:
    - Renamed shortcodes (breaking change)
    - Updated Readme to include clearer set up instructions
    - General code cleanup (commments/spacing)
 * New features:
    - Admin field to show/hide like count after the content for all posts
    - Admin field to define included post types

#### 0.5

_Release Date: May 6th, 2021_

 * Initial beta release.

## 额外信息

 *  版本 **0.6.2**
 *  最后更新：**3 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.7 或更高版本 **
 *  已测试的最高版本为 **6.2.9**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/recommend/)
 * 标签
 * [heart](https://cn.wordpress.org/plugins/tags/heart/)[like](https://cn.wordpress.org/plugins/tags/like/)
   [recommend](https://cn.wordpress.org/plugins/tags/recommend/)[thumbs-up](https://cn.wordpress.org/plugins/tags/thumbs-up/)
 *  [高级视图](https://cn.wordpress.org/plugins/recommend/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/recommend/reviews/)

## 贡献者

 *   [ mattlitzinger ](https://profiles.wordpress.org/mattlitzinger/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/recommend/)

## 捐助

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

 [ 捐助此插件 ](https://paypal.me/mattlitzinger)