{"id":141800,"date":"2010-11-30T08:00:00","date_gmt":"2010-11-30T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/rate\/"},"modified":"2015-07-31T05:33:00","modified_gmt":"2015-07-31T05:33:00","slug":"rate","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/rate\/","title":{"rendered":"Rate"},"content":{"rendered":"<p>Most ratings plugins contain too much code: inline JavaScript, messy markup, weird CSS. Rate is simple, hardly intrusive, and completely overridable.<\/p>\n<p>A Post\/Page\/Custom Post Type\u2019s 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\u2019d).<\/p>\n<p>Don\u2019t be afraid to play around and extend the code: drop a <code>rate.css<\/code> file in your theme directory and mine won\u2019t even load (by default, Rate stars are transparent with a white border, so you can use <code>background-color<\/code> to set your stars\u2019 colors)!<\/p>\n<pre><code><?php \n\/\/ in this version, you need to insert these functions into your theme for ratings to appear\n\/\/ you don't have to use the_rating(), the comment_rating() will work by itself, but the_rating() will not\n\n\/\/ for a Post, Page, or Custom Post Type (average of all comment ratings)\nthe_rating();\n\n\/\/ for a comment\nthe_comment_rating();\n?>\n<\/code><\/pre>\n<p>Read More: http:\/\/scottctaylor.wordpress.com\/2010\/11\/30\/new-plugin-rate\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Most ratings plugins contain too much code: inline JavaScript, messy markup, weird CSS. Rate is simple, hardly intrusive, and completely overridable.<\/p>\n","protected":false},"author":65,"featured_media":331957,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Rate - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Most ratings plugins contain too much code: inline JavaScript, messy markup, weird CSS. Rate is simple, hardly intrusive, and completely overridable."},"footnotes":""},"categories":[1],"tags":[124,581,542,1465,6896],"class_list":["post-141800","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-comments","tag-pages","tag-posts","tag-rate","tag-ratings"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/141800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=141800"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/141800\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/331957"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=141800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=141800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=141800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}