跳到内容

Rate

v0.4

Scott Taylor · 2010年11月30日 上架

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

正在使用
40+
评分
4.3 / 5
累计下载
2.4 万
最近更新
2015年7月31日
6 条评价需要 WordPress 3.0+已测试到 3.0.5

贡献者

截图

The top rating is an average of all of the comment ratings
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 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 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
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

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/

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums