{"id":387,"date":"2006-02-08T22:29:53","date_gmt":"2006-02-08T22:29:53","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-postratings\/"},"modified":"2024-07-16T13:07:04","modified_gmt":"2024-07-16T13:07:04","slug":"wp-postratings","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/wp-postratings\/","author":259,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.91.2","stable_tag":"1.91.2","tested":"6.6.5","requires":"4.9.6","requires_php":"","requires_plugins":null,"header_name":"WP-PostRatings","header_author":"Lester 'GaMerZ' Chan","header_description":"","assets_banners_color":"e9eaec","last_updated":"2024-07-16 13:07:04","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/lesterchan.net\/site\/donation\/","header_plugin_uri":"https:\/\/lesterchan.net\/portfolio\/programming\/php\/","header_author_uri":"https:\/\/lesterchan.net","rating":4.3,"author_block_rating":0,"active_installs":30000,"downloads":2264161,"num_ratings":179,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","faq","changelog"],"tags":{"1.00":{"tag":"1.00","author":"GamerZ","date":"2007-03-17 07:18:59"},"1.00beta":{"tag":"1.00beta","author":"GamerZ","date":"2007-03-17 07:18:59"},"1.01":{"tag":"1.01","author":"GamerZ","date":"2007-03-17 07:18:59"},"1.02":{"tag":"1.02","author":"GamerZ","date":"2007-03-17 07:18:59"},"1.02a":{"tag":"1.02a","author":"GamerZ","date":"2007-03-17 07:18:59"},"1.03":{"tag":"1.03","author":"GamerZ","date":"2007-03-17 07:18:59"},"1.03(wp1.52)":{"tag":"1.03(wp1.52)","author":"GamerZ","date":"2007-03-17 07:18:59"},"1.04":{"tag":"1.04","author":"GamerZ","date":"2007-03-17 07:18:59"},"1.05":{"tag":"1.05","author":"GamerZ","date":"2007-03-17 07:18:59"},"1.10":{"tag":"1.10","author":"GamerZ","date":"2007-04-08 03:30:51"},"1.11":{"tag":"1.11","author":"GamerZ","date":"2007-06-13 17:35:32"},"1.20":{"tag":"1.20","author":"GamerZ","date":"2007-09-30 08:20:00"},"1.30":{"tag":"1.30","author":"GamerZ","date":"2008-06-10 07:34:59"},"1.31":{"tag":"1.31","author":"GamerZ","date":"2008-07-20 09:44:11"},"1.40":{"tag":"1.40","author":"GamerZ","date":"2009-02-07 13:57:02"},"1.50":{"tag":"1.50","author":"GamerZ","date":"2011-02-17 09:02:08"},"1.65":{"tag":"1.65","author":"GamerZ","date":"2013-07-01 01:39:51"},"1.77":{"tag":"1.77","author":"GamerZ","date":"2014-02-21 00:54:02"},"1.78":{"tag":"1.78","author":"GamerZ","date":"2014-04-17 01:21:36"},"1.79":{"tag":"1.79","author":"GamerZ","date":"2014-09-05 13:30:57"},"1.80":{"tag":"1.80","author":"GamerZ","date":"2014-12-18 03:24:32"},"1.81":{"tag":"1.81","author":"GamerZ","date":"2015-04-21 14:24:49"},"1.82":{"tag":"1.82","author":"GamerZ","date":"2015-08-08 13:11:39"},"1.83":{"tag":"1.83","author":"GamerZ","date":"2015-11-26 02:25:48"},"1.83.1":{"tag":"1.83.1","author":"GamerZ","date":"2015-11-26 06:53:18"},"1.83.2":{"tag":"1.83.2","author":"GamerZ","date":"2016-04-19 04:51:49"},"1.84":{"tag":"1.84","author":"GamerZ","date":"2016-12-08 03:54:10"},"1.84.1":{"tag":"1.84.1","author":"GamerZ","date":"2017-05-09 12:26:28"},"1.85":{"tag":"1.85","author":"GamerZ","date":"2017-11-20 08:52:53"},"1.86":{"tag":"1.86","author":"GamerZ","date":"2018-12-19 05:10:03"},"1.86.1":{"tag":"1.86.1","author":"GamerZ","date":"2018-12-21 10:08:21"},"1.86.2":{"tag":"1.86.2","author":"GamerZ","date":"2018-12-26 10:13:19"},"1.87":{"tag":"1.87","author":"GamerZ","date":"2019-10-23 03:27:02"},"1.88":{"tag":"1.88","author":"GamerZ","date":"2020-05-20 01:45:30"},"1.89":{"tag":"1.89","author":"GamerZ","date":"2020-08-12 11:45:03"},"1.89.1":{"tag":"1.89.1","author":"GamerZ","date":"2022-02-05 06:22:19"},"1.90":{"tag":"1.90","author":"GamerZ","date":"2022-08-31 08:19:20"},"1.91":{"tag":"1.91","author":"GamerZ","date":"2023-07-03 12:49:40"},"1.91.1":{"tag":"1.91.1","author":"GamerZ","date":"2023-08-09 03:05:28"},"1.91.2":{"tag":"1.91.2","author":"GamerZ","date":"2024-07-16 13:07:04"}},"upgrade_notice":{"":"<p>N\/A<\/p>"},"ratings":{"1":19,"2":3,"3":9,"4":15,"5":133},"assets_icons":{"icon.svg":{"filename":"icon.svg","revision":978014,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":1206761,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":1206761,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.00","1.00beta","1.01","1.02","1.02a","1.03","1.03(wp1.52)","1.04","1.05","1.10","1.11","1.20","1.30","1.31","1.40","1.50","1.65","1.77","1.78","1.79","1.80","1.81","1.82","1.83","1.83.1","1.83.2","1.84","1.84.1","1.85","1.86","1.86.1","1.86.2","1.87","1.88","1.89","1.89.1","1.90","1.91","1.91.1","1.91.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":1206761,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":1206761,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":1206761,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":1206761,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":1206761,"resolution":"5","location":"assets","locale":""},"screenshot-6.png":{"filename":"screenshot-6.png","revision":1206761,"resolution":"6","location":"assets","locale":""}},"screenshots":{"1":"Admin - Ratings Log Bottom","2":"Admin - Ratings Log Top","3":"Admin - Ratings Options","4":"Admin - Ratings Templates","5":"Ratings","6":"Ratings Hover"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[11922,11921,2295,8203,9827],"plugin_category":[53,56,59],"plugin_contributors":[77620],"plugin_business_model":[],"class_list":["post-387","plugin","type-plugin","status-publish","hentry","plugin_tags-postrating","plugin_tags-postratings","plugin_tags-rating","plugin_tags-ratings","plugin_tags-vote","plugin_category-ratings-and-reviews","plugin_category-social-and-sharing","plugin_category-utilities-and-tools","plugin_contributors-gamerz","plugin_committers-gamerz"],"banners":{"banner":"https:\/\/ps.w.org\/wp-postratings\/assets\/banner-772x250.jpg?rev=1206761","banner_2x":"https:\/\/ps.w.org\/wp-postratings\/assets\/banner-1544x500.jpg?rev=1206761","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/wp-postratings\/assets\/icon.svg?rev=978014","icon":"https:\/\/ps.w.org\/wp-postratings\/assets\/icon.svg?rev=978014","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-postratings\/assets\/screenshot-1.png?rev=1206761","caption":"Admin - Ratings Log Bottom"},{"src":"https:\/\/ps.w.org\/wp-postratings\/assets\/screenshot-2.png?rev=1206761","caption":"Admin - Ratings Log Top"},{"src":"https:\/\/ps.w.org\/wp-postratings\/assets\/screenshot-3.png?rev=1206761","caption":"Admin - Ratings Options"},{"src":"https:\/\/ps.w.org\/wp-postratings\/assets\/screenshot-4.png?rev=1206761","caption":"Admin - Ratings Templates"},{"src":"https:\/\/ps.w.org\/wp-postratings\/assets\/screenshot-5.png?rev=1206761","caption":"Ratings"},{"src":"https:\/\/ps.w.org\/wp-postratings\/assets\/screenshot-6.png?rev=1206761","caption":"Ratings Hover"}],"raw_content":"<!--section=description-->\n<h3>Usage<\/h3>\n\n<ol>\n<li>Open <code>wp-content\/themes\/&lt;YOUR THEME NAME&gt;\/index.php<\/code><\/li>\n<li>You may place it in archive.php, single.php, post.php or page.php also.<\/li>\n<li>Find: <code>&lt;?php while (have_posts()) : the_post(); ?&gt;<\/code><\/li>\n<li>Add Anywhere Below It (The Place You Want The Ratings To Show): <code>&lt;?php if(function_exists('the_ratings')) { the_ratings(); } ?&gt;<\/code><\/li>\n<\/ol>\n\n<ul>\n<li>If you DO NOT want the ratings to appear in every post\/page, DO NOT use the code above. Just type in <code>[ratings]<\/code> into the selected post\/page content and it will embed ratings into that post\/page only.<\/li>\n<li>If you want to embed other post ratings use <code>[ratings id=\"1\"]<\/code>, where 1 is the ID of the post\/page ratings that you want to display.<\/li>\n<li>If you want to embed other post ratings results, use <code>[ratings id=\"1\" results=\"true\"]<\/code>, where 1 is the ID of the post\/page ratings results that you want to display.<\/li>\n<\/ul>\n\n<h3>Development<\/h3>\n\n<p><a href=\"https:\/\/github.com\/lesterchan\/wp-postratings\" title=\"https:\/\/github.com\/lesterchan\/wp-postratings\">https:\/\/github.com\/lesterchan\/wp-postratings<\/a><\/p>\n\n<h3>Credits<\/h3>\n\n<ul>\n<li>Plugin icon by <a href=\"http:\/\/www.freepik.com\">Freepik<\/a> from <a href=\"http:\/\/www.flaticon.com\">Flaticon<\/a><\/li>\n<li>Icons courtesy of <a href=\"http:\/\/www.famfamfam.com\/\" title=\"FamFamFam\">FamFamFam<\/a> and <a href=\"http:\/\/www.everaldo.com\" title=\"Everaldo\">Everaldo<\/a><\/li>\n<\/ul>\n\n<h3>Donations<\/h3>\n\n<p>I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20to%20change%20schema%20type%3F'><h3>How To Change Schema Type?<\/h3><\/dt>\n<dd><pre><code>&lt;?php  \nadd_filter( 'wp_postratings_schema_itemtype', 'wp_postratings_schema_itemtype' );  \nfunction wp_postratings_schema_itemtype( $itemtype ) {  \n    return 'itemscope itemtype=\"http:\/\/schema.org\/Recipe\"';  \n}  \n?&gt;\n<\/code><\/pre>\n\n<p>The default schema type is 'Article', if you want to change it to 'Recipe', you need to make use of the <code>wp_postratings_schema_itemtype<\/code> filter as shown in the sample code above.<\/p><\/dd>\n<dt id='how%20to%20add%20your%20site%20logo%20for%20google%20rich%20snippets'><h3>How To Add Your Site Logo For Google Rich Snippets<\/h3><\/dt>\n<dd><pre><code>&lt;?php  \nadd_filter( 'wp_postratings_site_logo', 'wp_postratings_site_logo' );  \nfunction wp_postratings_site_logo( $url ) {  \n    return 'http:\/\/placehold.it\/350\/150.png';  \n}  \n?&gt;\n<\/code><\/pre>\n\n<p>By default, the plugin will use your site header image URL as your site logo. If you want to change it, you need to make use of the <code>wp_postratings_site_logo<\/code> filter as shown in the sample code above.<\/p><\/dd>\n<dt id='how%20to%20remove%20ratings%20image%20alt%20and%20title%20text%3F'><h3>How To Remove Ratings Image alt and title Text?<\/h3><\/dt>\n<dd><pre><code>&lt;?php  \nadd_filter( 'wp_postratings_ratings_image_alt', 'wp_postratings_ratings_image_alt' );  \nfunction wp_postratings_ratings_image_alt( $alt_title_text ) {  \n    return '';  \n}  \n?&gt;\n<\/code><\/pre><\/dd>\n<dt id='how%20to%20display%20comment%20author%20ratings%3F'><h3>How To Display Comment Author Ratings?<\/h3><\/dt>\n<dd><pre><code>add_filter( 'wp_postratings_display_comment_author_ratings', '__return_true' );\n<\/code><\/pre>\n\n<p>By default, the comment author ratings are not displayed. If you want to display the ratings, you need to make use of the <code>wp_postratings_display_comment_author_ratings<\/code> filter as shown in the sample code above.<\/p><\/dd>\n<dt id='how%20to%20use%20png%20images%20instead%20of%20gif%20images%3F'><h3>How To use PNG images instead of GIF images?<\/h3><\/dt>\n<dd><pre><code>function custom_rating_image_extension() {\n    return 'png';\n}\nadd_filter( 'wp_postratings_image_extension', 'custom_rating_image_extension' );\n<\/code><\/pre>\n\n<p>The default image extension if 'gif', if you want to change it to 'png', you need to make use of the <code>wp_postratings_image_extension<\/code> filter as shown in the sample code above.<\/p><\/dd>\n<dt id='how%20to%20change%20the%20cookie%20expiration%20time%3F'><h3>How To change the cookie expiration time?<\/h3><\/dt>\n<dd><pre><code>function custom_rating_cookie_expiration() {\n    return strtotime( 'tomorrow' ) ;\n}\nadd_filter( 'wp_postratings_cookie_expiration', 'custom_rating_cookie_expiration', 10, 0 );\n<\/code><\/pre>\n\n<p>The default cookie expiration if 'time() + 30000000', if you want to change the lenght of the experation, you need to make use of the <code>wp_postratings_cookie_expiration<\/code> filter as shown in the sample code above.<\/p><\/dd>\n<dt id='how%20does%20wp-postratings%20load%20css%3F'><h3>How Does WP-PostRatings Load CSS?<\/h3><\/dt>\n<dd><ul>\n<li>WP-PostRatings will load <code>postratings-css.css<\/code> from your theme's CSS directory if it exists.<\/li>\n<li>If it doesn't exists, it will just load the default 'postratings-css.css' that comes with WP-PostRatings.<\/li>\n<li>This will allow you to upgrade WP-PostRatings without worrying about overwriting your ratings styles that you have created.<\/li>\n<\/ul><\/dd>\n<dt id='how%20to%20use%20ratings%20stats%20with%20widgets%3F'><h3>How To Use Ratings Stats With Widgets?<\/h3><\/dt>\n<dd><ol>\n<li>Go to <code>WP-Admin -&gt; Appearance -&gt; Widgets<\/code><\/li>\n<li>The widget name is Ratings.<\/li>\n<\/ol><\/dd>\n<dt id='to%20display%20lowest%20rated%20post'><h3>To Display Lowest Rated Post<\/h3><\/dt>\n<dd><pre><code>&lt;?php if (function_exists('get_lowest_rated')): ?&gt;\n    &lt;ul&gt;\n        &lt;?php get_lowest_rated(); ?&gt;\n    &lt;\/ul&gt;\n&lt;?php endif; ?&gt;\n<\/code><\/pre>\n\n<ul>\n<li>Default: get_lowest_rated('both', 0, 10)<\/li>\n<li>The value 'both' will display both the lowest rated posts and pages.<\/li>\n<li>If you want to display the lowest rated posts only, replace 'both' with 'post'.<\/li>\n<li>If you want to display the lowest rated pages only, replace 'both' with 'page'.<\/li>\n<li>The value 0 refers to the minimum votes required before the post get shown.<\/li>\n<li>The value 10 will display only the top 10 lowest rated posts\/pages.<\/li>\n<\/ul><\/dd>\n<dt id='to%20display%20lowest%20rated%20post%20by%20tag'><h3>To Display Lowest Rated Post By Tag<\/h3><\/dt>\n<dd><pre><code>&lt;?php if (function_exists('get_lowest_rated_tag')): ?&gt;\n    &lt;ul&gt;\n        &lt;?php get_lowest_rated_tag(TAG_ID); ?&gt;\n    &lt;\/ul&gt;\n&lt;?php endif; ?&gt;\n<\/code><\/pre>\n\n<ul>\n<li>Default: get_lowest_rated_tag(TAG_ID, 'both', 0, 10)<\/li>\n<li>Replace TAG_ID will your tag ID. If you want it to span several categories, replace TAG_ID with array(1, 2) where 1 and 2 are your categories ID.<\/li>\n<li>The value 'both' will display both the lowest rated posts and pages.<\/li>\n<li>If you want to display the lowest rated posts only, replace 'both' with 'post'.<\/li>\n<li>If you want to display the lowest rated pages only, replace 'both' with 'page'.<\/li>\n<li>The value 0 refers to the minimum votes required before the post get shown.<\/li>\n<li>The value 10 will display only the top 10 lowest rated posts\/pages.<\/li>\n<\/ul><\/dd>\n<dt id='to%20display%20lowest%20rated%20post%20in%20a%20category'><h3>To Display Lowest Rated Post In A Category<\/h3><\/dt>\n<dd><pre><code>&lt;?php if (function_exists('get_lowest_rated_category')): ?&gt;\n    &lt;ul&gt;\n        &lt;?php get_lowest_rated_category(CATEGORY_ID); ?&gt;\n    &lt;\/ul&gt;\n&lt;?php endif; ?&gt;\n<\/code><\/pre>\n\n<ul>\n<li>Default: get_lowest_rated_category(CATEGORY_ID, 'both', 0, 10)<\/li>\n<li>Replace CATEGORY_ID will your category ID. If you want it to span several categories, replace CATEGORY_ID with array(1, 2) where 1 and 2 are your categories ID.<\/li>\n<li>The value 'both' will display both the lowest rated posts and pages.<\/li>\n<li>If you want to display the lowest rated posts only, replace 'both' with 'post'.<\/li>\n<li>If you want to display the lowest rated pages only, replace 'both' with 'page'.<\/li>\n<li>The value 0 refers to the minimum votes required before the post get shown.<\/li>\n<li>The value 10 will display only the top 10 lowest rated posts\/pages.<\/li>\n<\/ul><\/dd>\n<dt id='to%20display%20highest%20rated%20post'><h3>To Display Highest Rated Post<\/h3><\/dt>\n<dd><pre><code>&lt;?php if (function_exists('get_highest_rated')): ?&gt;\n    &lt;ul&gt;\n        &lt;?php get_highest_rated(); ?&gt;\n    &lt;\/ul&gt;\n&lt;?php endif; ?&gt;\n<\/code><\/pre>\n\n<ul>\n<li>Default: get_highest_rated('both', 0, 10)<\/li>\n<li>The value 'both' will display both the highest rated posts and pages.<\/li>\n<li>If you want to display the highest rated posts only, replace 'both' with 'post'.<\/li>\n<li>If you want to display the highest rated pages only, replace 'both' with 'page'.<\/li>\n<li>The value 0 refers to the minimum votes required before the post get shown.<\/li>\n<li>The value 10 will display only the top 10 highest rated posts\/pages.<\/li>\n<\/ul><\/dd>\n<dt id='to%20display%20highest%20rated%20post%20by%20tag'><h3>To Display Highest Rated Post By Tag<\/h3><\/dt>\n<dd><pre><code>&lt;?php if (function_exists('get_highest_rated_tag')): ?&gt;\n    &lt;ul&gt;\n        &lt;?php get_highest_rated_tag(TAG_ID); ?&gt;\n    &lt;\/ul&gt;\n&lt;?php endif; ?&gt;\n<\/code><\/pre>\n\n<ul>\n<li>Default: get_highest_rated_tag(TAG_ID, 'both', 0, 10)<\/li>\n<li>Replace TAG_ID will your tag ID. If you want it to span several categories, replace TAG_ID with array(1, 2) where 1 and 2 are your categories ID.<\/li>\n<li>The value 'both' will display both the highest rated posts and pages.<\/li>\n<li>If you want to display the highest rated posts only, replace 'both' with 'post'.<\/li>\n<li>If you want to display the highest rated pages only, replace 'both' with 'page'.<\/li>\n<li>The value 0 refers to the minimum votes required before the post get shown.<\/li>\n<li>The value 10 will display only the top 10 highest rated posts\/pages.<\/li>\n<\/ul><\/dd>\n<dt id='to%20display%20highest%20rated%20post%20in%20a%20category'><h3>To Display Highest Rated Post In A Category<\/h3><\/dt>\n<dd><pre><code>&lt;?php if (function_exists('get_highest_rated_category')): ?&gt;\n    &lt;ul&gt;\n        &lt;?php get_highest_rated_category(CATEGORY_ID); ?&gt;\n    &lt;\/ul&gt;\n&lt;?php endif; ?&gt;\n<\/code><\/pre>\n\n<ul>\n<li>Default: get_highest_rated_category(CATEGORY_ID, 'both', 0, 10)<\/li>\n<li>Replace CATEGORY_ID will your category ID. If you want it to span several categories, replace CATEGORY_ID with array(1, 2) where 1 and 2 are your categories ID.<\/li>\n<li>The value 'both' will display both the highest rated posts and pages.<\/li>\n<li>If you want to display the highest rated posts only, replace 'both' with 'post'.<\/li>\n<li>If you want to display the highest rated pages only, replace 'both' with 'page'.<\/li>\n<li>The value 0 refers to the minimum votes required before the post get shown.<\/li>\n<li>The value 10 will display only the top 10 highest rated posts\/pages.<\/li>\n<\/ul><\/dd>\n<dt id='to%20display%20highest%20rated%20post%20within%20a%20given%20period'><h3>To Display Highest Rated Post Within A Given Period<\/h3><\/dt>\n<dd><pre><code>&lt;?php if (function_exists('get_highest_rated_range')): ?&gt;\n    &lt;ul&gt;\n        &lt;?php get_highest_rated_range('1 day'); ?&gt;\n    &lt;\/ul&gt;\n&lt;?php endif; ?&gt;\n<\/code><\/pre>\n\n<ul>\n<li>Default: get_highest_rated_range('1 day', 'both', 10)<\/li>\n<li>The value '1 day' will be the range that you want. You can use '2 days', '1 month', etc.<\/li>\n<li>The value 'both' will display both the most rated posts and pages.<\/li>\n<li>If you want to display the most rated posts only, replace 'both' with 'post'.<\/li>\n<li>If you want to display the most rated pages only, replace 'both' with 'page'.<\/li>\n<li>The value 10 will display only the top 10 most rated posts\/pages.<\/li>\n<\/ul><\/dd>\n<dt id='to%20display%20most%20rated%20post'><h3>To Display Most Rated Post<\/h3><\/dt>\n<dd><pre><code>&lt;?php if (function_exists('get_most_rated')): ?&gt;\n    &lt;ul&gt;\n        &lt;?php get_most_rated(); ?&gt;\n    &lt;\/ul&gt;\n&lt;?php endif; ?&gt;\n<\/code><\/pre>\n\n<ul>\n<li>Default: get_most_rated('both', 0, 10)<\/li>\n<li>The value 'both' will display both the most rated posts and pages.<\/li>\n<li>If you want to display the most rated posts only, replace 'both' with 'post'.<\/li>\n<li>If you want to display the most rated pages only, replace 'both' with 'page'.<\/li>\n<li>The value 0 refers to the minimum votes required before the post get shown.<\/li>\n<li>The value 10 will display only the top 10 most rated posts\/pages.<\/li>\n<\/ul><\/dd>\n<dt id='to%20display%20most%20rated%20post%20in%20a%20category'><h3>To Display Most Rated Post In A Category<\/h3><\/dt>\n<dd><pre><code>&lt;?php if (function_exists('get_most_rated_category')): ?&gt;\n    &lt;ul&gt;\n        &lt;?php get_most_rated_category(CATEGORY_ID); ?&gt;\n    &lt;\/ul&gt;\n&lt;?php endif; ?&gt;\n<\/code><\/pre>\n\n<ul>\n<li>Default: get_most_rated_category(CATEGORY_ID, 'both', 0, 10)<\/li>\n<li>Replace CATEGORY_ID will your category ID. If you want it to span several categories, replace CATEGORY_ID with array(1, 2) where 1 and 2 are your categories ID.<\/li>\n<li>The value 'both' will display both the most rated posts and pages.<\/li>\n<li>If you want to display the most rated posts only, replace 'both' with 'post'.<\/li>\n<li>If you want to display the most rated pages only, replace 'both' with 'page'.<\/li>\n<li>The value 0 refers to the minimum votes required before the post get shown.<\/li>\n<li>The value 10 will display only the top 10 most rated posts\/pages.<\/li>\n<\/ul><\/dd>\n<dt id='to%20display%20most%20rated%20post%20within%20a%20given%20period'><h3>To Display Most Rated Post Within A Given Period<\/h3><\/dt>\n<dd><pre><code>&lt;?php if (function_exists('get_most_rated_range')): ?&gt;\n    &lt;ul&gt;\n        &lt;?php get_most_rated_range('1 day'); ?&gt;\n    &lt;\/ul&gt;\n&lt;?php endif; ?&gt;\n<\/code><\/pre>\n\n<ul>\n<li>Default: get_most_rated_range('1 day', 'both', 10)<\/li>\n<li>The value '1 day' will be the range that you want. You can use '2 days', '1 month', etc.<\/li>\n<li>The value 'both' will display both the most rated posts and pages.<\/li>\n<li>If you want to display the most rated posts only, replace 'both' with 'post'.<\/li>\n<li>If you want to display the most rated pages only, replace 'both' with 'page'.<\/li>\n<li>The value 10 will display only the top 10 most rated posts\/pages.<\/li>\n<\/ul><\/dd>\n<dt id='to%20display%20highest%20score%20post'><h3>To Display Highest Score Post<\/h3><\/dt>\n<dd><pre><code>&lt;?php if (function_exists('get_highest_score')): ?&gt;\n    &lt;ul&gt;\n        &lt;?php get_highest_score(); ?&gt;\n    &lt;\/ul&gt;\n&lt;?php endif; ?&gt;\n<\/code><\/pre>\n\n<ul>\n<li>Default: get_highest_score('both', 0, 10)<\/li>\n<li>The value 'both' will display both the most rated posts and pages.<\/li>\n<li>If you want to display the most rated posts only, replace 'both' with 'post'.<\/li>\n<li>If you want to display the most rated pages only, replace 'both' with 'page'.<\/li>\n<li>The value 0 refers to the minimum votes required before the post get shown.<\/li>\n<li>The value 10 will display only the top 10 most rated posts\/pages.<\/li>\n<\/ul><\/dd>\n<dt id='to%20display%20highest%20score%20post%20in%20a%20category'><h3>To Display Highest Score Post In A Category<\/h3><\/dt>\n<dd><pre><code>&lt;?php if (function_exists('get_highest_score_category')): ?&gt;\n    &lt;ul&gt;\n        &lt;?php get_highest_score_category(CATEGORY_ID); ?&gt;\n    &lt;\/ul&gt;\n&lt;?php endif; ?&gt;\n<\/code><\/pre>\n\n<ul>\n<li>Default: get_highest_score_category(CATEGORY_ID, 'both', 0, 10)<\/li>\n<li>Replace CATEGORY_ID will your category ID. If you want it to span several categories, replace CATEGORY_ID with array(1, 2) where 1 and 2 are your categories ID.<\/li>\n<li>The value 'both' will display both the most rated posts and pages.<\/li>\n<li>If you want to display the most rated posts only, replace 'both' with 'post'.<\/li>\n<li>If you want to display the most rated pages only, replace 'both' with 'page'.<\/li>\n<li>The value 0 refers to the minimum votes required before the post get shown.<\/li>\n<li>The value 10 will display only the top 10 most rated posts\/pages.<\/li>\n<\/ul><\/dd>\n<dt id='to%20display%20highest%20score%20post%20within%20a%20given%20period'><h3>To Display Highest Score Post Within A Given Period<\/h3><\/dt>\n<dd><pre><code>&lt;?php if (function_exists('get_highest_score_range')): ?&gt;\n    &lt;ul&gt;\n        &lt;?php get_highest_score_range('1 day'); ?&gt;\n    &lt;\/ul&gt;\n&lt;?php endif; ?&gt;\n<\/code><\/pre>\n\n<ul>\n<li>Default: get_highest_score_range('1 day', 'both', 10)<\/li>\n<li>The value '1 day' will be the range that you want. You can use '2 days', '1 month', etc.<\/li>\n<li>The value 'both' will display both the most rated posts and pages.<\/li>\n<li>If you want to display the most rated posts only, replace 'both' with 'post'.<\/li>\n<li>If you want to display the most rated pages only, replace 'both' with 'page'.<\/li>\n<li>The value 10 will display only the top 10 most rated posts\/pages.<\/li>\n<\/ul><\/dd>\n<dt id='to%20sort%20highest%2Flowest%20rated%20posts'><h3>To Sort Highest\/Lowest Rated Posts<\/h3><\/dt>\n<dd><ul>\n<li>You can use: <code>&lt;?php query_posts( array( 'meta_key' =&gt; 'ratings_average', 'orderby' =&gt; 'meta_value_num', 'order' =&gt; 'DESC' ) ); ?&gt;<\/code><\/li>\n<li>Or pass in the variables to the URL: <code>http:\/\/yoursite.com\/?r_sortby=highest_rated&amp;amp;r_orderby=desc<\/code><\/li>\n<li>You can replace desc with asc if you want the lowest rated posts.<\/li>\n<\/ul><\/dd>\n<dt id='to%20sort%20most%2Fleast%20rated%20posts'><h3>To Sort Most\/Least Rated Posts<\/h3><\/dt>\n<dd><ul>\n<li>You can use: <code>&lt;?php query_posts( array( 'meta_key' =&gt; 'ratings_users', 'orderby' =&gt; 'meta_value_num', 'order' =&gt; 'DESC' ) ); ?&gt;<\/code><\/li>\n<li>Or pass in the variables to the URL: <code>http:\/\/yoursite.com\/?r_sortby=most_rated&amp;amp;r_orderby=desc<\/code><\/li>\n<li>You can replace desc with asc if you want the least rated posts.<\/li>\n<\/ul><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h3>Version 1.91.2<\/h3>\n\n<ul>\n<li>FIXED: XSS in Google Rich Text Snippets<\/li>\n<\/ul>\n\n<h3>Version 1.91.1<\/h3>\n\n<ul>\n<li>FIXED: Read from default REMOTE_ADDR unless specified in options<\/li>\n<\/ul>\n\n<h3>Version 1.91<\/h3>\n\n<ul>\n<li>NEW: Supports specifying which header to read the user's IP from<\/li>\n<\/ul>\n\n<h3>Version 1.90.1<\/h3>\n\n<ul>\n<li>FIXED: Support mutex lock for multi-site.<\/li>\n<\/ul>\n\n<h3>Version 1.90<\/h3>\n\n<ul>\n<li>FIXED: Use mutex lock to prevent race condition<\/li>\n<\/ul>\n\n<h3>Version 1.89.1<\/h3>\n\n<ul>\n<li>FIXED: Change all http:\/\/schema.org to https:\/\/schema.org<\/li>\n<\/ul>\n\n<h3>Version 1.89<\/h3>\n\n<ul>\n<li>NEW: Added <code>post_id<\/code> to second argument of <code>wp_postratings_expand_ratings_template<\/code>.<\/li>\n<li>NEW Removed passed by reference for <code>get_post()<\/code> <\/li>\n<\/ul>\n\n<h3>Version 1.88<\/h3>\n\n<ul>\n<li>NEW: Added filter <code>wp_postratings_disable_richsnippet<\/code> to disable richsnippet on the fly.<\/li>\n<li>NEW: Added a setting in <code>WP-Admin -&gt; Ratings -&gt; Rating Options<\/code> to disable the ratings component of the Rich Snippet. Props @8ctopus<\/li>\n<\/ul>\n\n<h3>Version 1.87<\/h3>\n\n<ul>\n<li>FIXED: Rename filter <code>expand_ratings_template<\/code> to <code>wp_postratings_expand_ratings_template<\/code> for consistency.<\/li>\n<li>FIXED: Remove wp_print_scripts<\/li>\n<li>FIXED: Added additional to Google Structured Data despite it is no longer working. Will consider removing it next time<\/li>\n<li>NEW: Added <code>wp_postratings_ipaddress<\/code> and <code>wp_postratings_hostname<\/code> to allow user to overwrite it.<\/li>\n<li>NEW: Add loading alt text filer<\/li>\n<li>NEW: Add wp_postratings_always_log filter to allow user to always log no matter what<\/li>\n<\/ul>\n\n<h3>Version 1.86.2<\/h3>\n\n<ul>\n<li>FIXED: Wrong type check for inser_half which affects half rating image.<\/li>\n<\/ul>\n\n<h3>Version 1.86.1<\/h3>\n\n<ul>\n<li>FIXED: Sanitize file name for images folder in WP-Admin<\/li>\n<\/ul>\n\n<h3>Version 1.86<\/h3>\n\n<ul>\n<li>NEW: Hashed IP and Anonymize Hostname to make it GDPR compliance<\/li>\n<li>NEW: If Do Not Log is set in Rating Options, do not log to DB<\/li>\n<\/ul>\n\n<h3>Version 1.85<\/h3>\n\n<ul>\n<li>NEW: wp_postratings_post_thumbnail filter<\/li>\n<li>FIXED: Take into consideration logging method when dealing with ratings in comments<\/li>\n<li>FIXED: Compressed Images<\/li>\n<\/ul>\n\n<h3>Version 1.84.1<\/h3>\n\n<ul>\n<li>NEW: New wp_postratings_google_structured_data filter to filter Google Structured Data.<\/li>\n<li>FIXED: unnamed-file.numbers due to sanitize_file_name().<\/li>\n<li>FIXED: Generate the full path to image to prevent Googlebot from 404.<\/li>\n<\/ul>\n\n<h3>Version 1.84<\/h3>\n\n<ul>\n<li>NEW: Added '%POST_THUMBNAIL%' Template variable.<\/li>\n<li>NEW: Added 'wp_postratings_cookie_expiration' filter. Props @ramiy.<\/li>\n<li>NEW: Added 'wp_postratings_ratings_image_alt' filter<\/li>\n<li>NEW: Added more meta itemprops to pass Structured Data Testing Tool test<\/li>\n<li>NEW: Remove po\/mo files from the plugin. Props @ramiy.<\/li>\n<li>NEW: Use translate.wordpress.org to translate the plugin. Props @ramiy.<\/li>\n<li>NEW: Add phpDocs and update file headers. Props @ramiy.<\/li>\n<li>NEW: Adds the ability to restrict voting rights to members of the blog. Props @stephenharris.<\/li>\n<li>FIXED: Use the new admin headings hierarchy with H1, H2, H3 tags. Props @ramiy.<\/li>\n<li>FIXED: Move *.js files to \/js\/ sub-folder. Props @ramiy.<\/li>\n<li>FIXED: Move *.css files to \/css\/ sub-folder. Props @ramiy.<\/li>\n<li>FIXED: Move the scripts to a separate file in \/includes\/ sub-folder. Props @ramiy.<\/li>\n<li>FIXED: Move the widget to a separate file in \/includes\/ sub-folder. Props @ramiy.<\/li>\n<li>FIXED: Move the shortcode to a separate file in \/includes\/ sub-folder. Props @ramiy.<\/li>\n<li>FIXED: Move activation hooks to a separate file in \/includes\/ sub-folder. Props @ramiy.<\/li>\n<li>FIXED: Move admin functions and hooks to a separate file in \/includes\/ sub-folder. Props @ramiy.<\/li>\n<li>FIXED: Move the i18n load to a separate file in \/includes\/ sub-folder. Props @ramiy.<\/li>\n<li>FIXED: Replace die() with wp_die() and add i18n to the strings. Props @ramiy.<\/li>\n<li>FIXED: Update translation strings to avoid using 'post' as the post type. Props @ramiy.<\/li>\n<li>FIXED: Minor translation string fix. Props @ramiy.<\/li>\n<li>FIXED: Update rating widget. Props @ramiy.<\/li>\n<li>FIXED: Security hardening. Props @stephenharris.<\/li>\n<\/ul>\n\n<h3>Version 1.83.2<\/h3>\n\n<ul>\n<li>FIXED: Unauthenticated blind SQL injection in ratings_most_orderby(). Props @Ben Bidner from Automattic.<\/li>\n<\/ul>\n\n<h3>Version 1.83.1<\/h3>\n\n<ul>\n<li>FIXED: Remove No Results template from the_ratings_results()<\/li>\n<\/ul>\n\n<h3>Version 1.83<\/h3>\n\n<ul>\n<li>NEW: Added 'wp_postratings_display_comment_author_ratings' filter. Props @ramiy.<\/li>\n<li>FIXED: Removing Loading ... because SERP will index the text if the ratings is at the top of the article<\/li>\n<li>FIXED: Move 'wp_postratings_image_extension' filter to init()<\/li>\n<li>FIXED: Show headline, datePublished and image despite there is no ratings<\/li>\n<li>FIXED: Show post without ratings as well when sorting is done in URL. Props @talljosh.<\/li>\n<\/ul>\n\n<h3>Version 1.82<\/h3>\n\n<ul>\n<li>NEW: Added 'wp_postratings_image_extension' filter. Props @ramiy.<\/li>\n<li>FIXED: Added headline, datePublished, image to Article Schema type<\/li>\n<li>FIXED: Deprecated PHP4 constructor in WordPress 4.3<\/li>\n<li>FIXED: Remove schema code when Rich Snippets is off<\/li>\n<\/ul>\n\n<h3>Version 1.81<\/h3>\n\n<ul>\n<li>NEW: Added worstRating of 1. Props @rafaellop<\/li>\n<li>NEW: Checked for defined() for RATINGS_IMG_EXT to allow overwrite<\/li>\n<li>FIXED: Integration with WP-Stats<\/li>\n<\/ul>\n\n<h3>Version 1.80<\/h3>\n\n<ul>\n<li>NEW: Suppor Custom Post Types in Widgets<\/li>\n<li>NEW: Added 'wp_postratings_process_ratings_user', 'wp_postratings_process_ratings_userid' &amp; 'wp_postratings_check_rated' filters<\/li>\n<li>NEW: Supports WordPress Multisite Network Activate<\/li>\n<li>NEW: Uses WordPress native uninstall.php<\/li>\n<\/ul>\n\n<h3>Version 1.79<\/h3>\n\n<ul>\n<li>NEW: Use POST for ratings instead<\/li>\n<li>NEW: Add 'wp_postratings_schema_itemtype' filter so that you can change the Schema Type. See the FAQ for sample.<\/li>\n<li>FIXED: Use 'is_rtl()' instead of $text_direction<\/li>\n<\/ul>\n\n<h3>Version 1.78<\/h3>\n\n<ul>\n<li>NEW: Uses Dash Icons<\/li>\n<li>NEW: Option to turn off Google Rich Snippets<\/li>\n<li>FIXED: Use SITECOOKIEPATH instead of COOKIEPATH. Props jbrule.<\/li>\n<li>FIXED: If global $id is 0, use get_the_ID(). Props instruite.<\/li>\n<li>FIXED: use esc_attr() and esc_js() to escape characters<\/li>\n<\/ul>\n\n<h3>Version 1.77<\/h3>\n\n<ul>\n<li>NEW: Add in %POST_ID% template variables<\/li>\n<li>FIXED: Ensure Google Rich Snippet only displays in main loop and not in the widget<\/li>\n<li>FIXED: Removed reviewCount from Google Rich Snippet<\/li>\n<li>FIXED: Make the ratings widget more optimized<\/li>\n<li>FIXED: Some widget templates are using postratings_template_mostrated instead of postratings_template_highestrated<\/li>\n<\/ul>\n\n<h3>Version 1.76<\/h3>\n\n<ul>\n<li>FIXED: No longer needing add_post_meta() if update_post_meta() fails<\/li>\n<li>FIXED: Update 'Individual Rating Text\/Value' Display no working due to missing nonce<\/li>\n<li>FIXED: Added stripslashes() to remove slashes in the templates<\/li>\n<li>FIXED: Check whether it is an array to prevent array_key_exists() from throwing a warning.<\/li>\n<\/ul>\n\n<h3>Version 1.75<\/h3>\n\n<ul>\n<li>Change htmlspecialchars to esc_attr(). Props Ryan Satterfield.<\/li>\n<li>Change esc_attr() to wp_kses() For itemprop. Props oneTarek.<\/li>\n<\/ul>\n\n<h3>Version 1.74<\/h3>\n\n<ul>\n<li>check_rated_username() should be using $user_ID. Props Artem Gordinsky.<\/li>\n<\/ul>\n\n<h3>Version 1.73<\/h3>\n\n<ul>\n<li>Add Stars Flat (PNG) Icons. Props hebaf.<\/li>\n<li>Change Schema From http:\/\/schema.org\/Product To http:\/\/schema.org\/Article<\/li>\n<\/ul>","raw_excerpt":"Adds an AJAX rating system for your WordPress site&#039;s content.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=387"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/gamerz"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=387"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=387"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=387"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=387"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=387"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}