Title: Rate
Author: Scott Taylor
Published: <strong>2010 年 11 月 30 日</strong>
Last modified: 2015 年 7 月 30 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/rate.svg)

# Rate

 作者：[Scott Taylor](https://profiles.wordpress.org/wonderboymusic/)

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

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

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

## 描述

Most ratings plugins contain too much code: inline JavaScript, messy markup, weird
CSS. Rate is simple, hardly intrusive, and completely overridable.

A Post/Page/Custom Post Type’s rating is the average of all comment ratings. A user
can leave a rating when commenting, and change that rating inline after leaving 
a comment (if logged-in or Cookie’d).

Don’t be afraid to play around and extend the code: drop a `rate.css` file in your
theme directory and mine won’t even load (by default, Rate stars are transparent
with a white border, so you can use `background-color` to set your stars’ colors)!

    ```
    <?php 
    // in this version, you need to insert these functions into your theme for ratings to appear
    // you don't have to use the_rating(), the comment_rating() will work by itself, but the_rating() will not

    // for a Post, Page, or Custom Post Type (average of all comment ratings)
    the_rating();

    // for a comment
    the_comment_rating();
    ?>
    ```

Read More: http://scottctaylor.wordpress.com/2010/11/30/new-plugin-rate/

## 屏幕截图

 * [[
 * The top rating is an average of all of the comment ratings
 * [[
 * You can add the_rating() anywhere that has comments attached to it using the 
   Theme editor
 * [[
 * You can add ratings to comments in the Twenty Ten or any other Theme by adding
   the_comment_rating() to the custom comment callback located in functions.php 
   using the Theme Editor
 * [[
 * You can edit the CSS for Rate right in the Plugin Editor. Choose “Rate” from 
   the dropdown, then select rate/css/rate.css to edit the styles right in the Editor

## 评价

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

### 󠀁[great plugin](https://wordpress.org/support/topic/great-plugin-13762/)󠁿

 [yangma20](https://profiles.wordpress.org/yangma20/) 2017 年 5 月 5 日

Pretty simple

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

### 󠀁[Simple but nice.](https://wordpress.org/support/topic/simple-but-nice-4/)󠁿

 [Jan](https://profiles.wordpress.org/jannetto96/) 2017 年 2 月 11 日

Very Very nice! Thanks.

 [ 阅读所有6条评价 ](https://wordpress.org/support/plugin/rate/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Scott Taylor ](https://profiles.wordpress.org/wonderboymusic/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 0.3

 * Added jQuery as a required script – Whoops!

#### 0.2.1.1

 * Whoops, adds second argument to `rate_calculate($id = 0, $is_comment = false)`
   for internal purposes

#### 0.2.1

 * `the_rating()` now excludes ratings from comments that are awaiting moderation.`
   the_rating($id = 0)` will not take an argument of ID. Use it to show a rating
   anywhere.

#### 0.2

 * User can leave a rating while commenting now, can still edit rating inline after
   comment is posted

#### 0.1.4

 * I broke the rate.css path, oops!

#### 0.1.2

 * Got rid of Divide by Zero warning that PHP was throwing
 * Does not count ratings of Zero or non-ratings in the Average Rating displayed
   by the_rating()
 * Added screenshots to the Plugin page at WordPress.org

#### 0.1

 * Initial release

## 额外信息

 *  版本 **0.4**
 *  最后更新：**11 年前**
 *  活跃安装数量 **40+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **3.0.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/rate/)
 * 标签
 * [comments](https://cn.wordpress.org/plugins/tags/comments/)[pages](https://cn.wordpress.org/plugins/tags/pages/)
   [posts](https://cn.wordpress.org/plugins/tags/posts/)[rate](https://cn.wordpress.org/plugins/tags/rate/)
   [ratings](https://cn.wordpress.org/plugins/tags/ratings/)
 *  [高级视图](https://cn.wordpress.org/plugins/rate/advanced/)

## 评级

 4.3 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Scott Taylor ](https://profiles.wordpress.org/wonderboymusic/)

## 支持

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

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