{"id":199102,"date":"2024-08-11T13:25:29","date_gmt":"2024-08-11T13:25:29","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/simple-star-rating-block\/"},"modified":"2026-07-30T19:30:09","modified_gmt":"2026-07-30T19:30:09","slug":"simple-star-rating-block","status":"publish","type":"plugin","link":"https:\/\/fa.wordpress.org\/plugins\/simple-star-rating-block\/","author":15062275,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.3","stable_tag":"0.3","tested":"7.1","requires":"6.1","requires_php":"8.0","requires_plugins":null,"header_name":"Simple Star Rating Block","header_author":"MartinCV","header_description":"Simple Star Rating Block is a versatile and user-friendly WordPress plugin designed to integrate seamlessly with the Gutenberg editor. Whether you need to display star ratings for products, services, or content, this block makes it easy and efficient.","assets_banners_color":"ffffff","last_updated":"2026-07-30 19:30:09","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/www.martincv.com","rating":0,"author_block_rating":0,"active_installs":50,"downloads":1697,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.1.0":{"tag":"0.1.0","author":"martin7ba","date":"2024-08-11 13:25:14"},"0.1.1":{"tag":"0.1.1","author":"martin7ba","date":"2024-12-11 11:44:02"},"0.2":{"tag":"0.2","author":"martin7ba","date":"2025-01-03 11:42:21"},"0.3":{"tag":"0.3","author":"martin7ba","date":"2026-07-30 19:30:09"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3133729,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256-256.png":{"filename":"icon-256-256.png","revision":3133729,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3133729,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3133729,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":{"create-block\/simple-star-rating-block":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"create-block\/simple-star-rating-block","version":"0.3","title":"Simple Star Rating Block","category":"widgets","icon":"starHalf","description":"Star Rating Block allows you to display star ratings with manually entered value or pulled from a custom field.","example":{"attributes":{"rating":4.5}},"usesContext":["postId"],"supports":{"html":false},"attributes":{"rating":{"type":"number","default":0},"useCustomField":{"type":"boolean","default":false},"customField":{"type":"string","default":""},"starColor":{"type":"string","default":"#FFC700"},"starSize":{"type":"number","default":20}},"textdomain":"simple-star-rating-block","editorScript":"file:.\/index.js","editorStyle":"file:.\/index.css","style":"file:.\/style-index.css","render":"file:.\/render.php"}},"tagged_versions":["0.1.0","0.1.1","0.2","0.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3133729,"resolution":"1","location":"assets","locale":"","width":2222,"height":1108},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3133729,"resolution":"2","location":"assets","locale":"","width":2858,"height":1294},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3133729,"resolution":"3","location":"assets","locale":"","width":2524,"height":1294},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3133729,"resolution":"4","location":"assets","locale":"","width":2496,"height":1240}},"screenshots":{"1":"<strong>Star Rating Block in Action:<\/strong> Demonstrates the star rating block as displayed on a post or page.","2":"<strong>Block Settings Panel:<\/strong> Shows the settings available for customizing the star rating block.","3":"<strong>Star Rating Block in Action In Post Context:<\/strong> Demonstrates the star rating block as displayed on a post or page.","4":"<strong>Enable Option for ACF Group to pull rating from ACF Field :<\/strong> Enable \"Show in REST\" so that the ACF Group can show in the Fields list on the Simple Star Rating Block"}},"plugin_section":[],"plugin_tags":[1220,2010,148076,1519,2293],"plugin_category":[53],"plugin_contributors":[147632],"plugin_business_model":[],"class_list":["post-199102","plugin","type-plugin","status-publish","hentry","plugin_tags-block","plugin_tags-custom-fields","plugin_tags-gutenberg","plugin_tags-reviews","plugin_tags-star-rating","plugin_category-ratings-and-reviews","plugin_contributors-martin7ba","plugin_committers-martin7ba"],"banners":{"banner":"https:\/\/ps.w.org\/simple-star-rating-block\/assets\/banner-772x250.png?rev=3133729","banner_2x":"https:\/\/ps.w.org\/simple-star-rating-block\/assets\/banner-1544x500.png?rev=3133729","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/simple-star-rating-block\/assets\/icon-128x128.png?rev=3133729","icon_2x":"https:\/\/ps.w.org\/simple-star-rating-block\/assets\/icon-256-256.png?rev=3133729","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/simple-star-rating-block\/assets\/screenshot-1.png?rev=3133729","caption":"<strong>Star Rating Block in Action:<\/strong> Demonstrates the star rating block as displayed on a post or page."},{"src":"https:\/\/ps.w.org\/simple-star-rating-block\/assets\/screenshot-2.png?rev=3133729","caption":"<strong>Block Settings Panel:<\/strong> Shows the settings available for customizing the star rating block."},{"src":"https:\/\/ps.w.org\/simple-star-rating-block\/assets\/screenshot-3.png?rev=3133729","caption":"<strong>Star Rating Block in Action In Post Context:<\/strong> Demonstrates the star rating block as displayed on a post or page."},{"src":"https:\/\/ps.w.org\/simple-star-rating-block\/assets\/screenshot-4.png?rev=3133729","caption":"<strong>Enable Option for ACF Group to pull rating from ACF Field :<\/strong> Enable \"Show in REST\" so that the ACF Group can show in the Fields list on the Simple Star Rating Block"}],"raw_content":"<!--section=description-->\n<p><strong>Show a star rating anywhere, in seconds.<\/strong> Drop the Simple Star Rating Block into any post, page, or custom post type, set a value from 0 to 5 (half and decimal values render as partial stars), and style it to match your site. Ideal for product reviews, recipe ratings, testimonials, and comparison posts.<\/p>\n\n<p>Ratings can be typed in manually or <strong>pulled dynamically from a custom field<\/strong> \u2014 including ACF fields \u2014 so a rating stored on the post updates the block automatically. Inside a Query Loop, the block always shows the rating of the correct post.<\/p>\n\n<p>Development Version can be found on: https:\/\/github.com\/martinjankov\/simple-star-rating-block<\/p>\n\n<h3>Features:<\/h3>\n\n<ul>\n<li><strong>Manual or dynamic:<\/strong> Type a rating, or bind the block to a custom field on the post \u2014 works with custom post types, including those using a custom REST base.<\/li>\n<li><strong>ACF Integration:<\/strong> Pull the rating from an ACF field \u2014 just enable \"Show in REST\" on the ACF Field Group (see screenshot 4).<\/li>\n<li><strong>Partial stars:<\/strong> Decimal ratings like 4.3 render as precisely filled stars.<\/li>\n<li><strong>Accessible:<\/strong> Screen readers announce a clear \"Rated 4.5 out of 5\" label instead of empty markup.<\/li>\n<li><strong>Your style:<\/strong> Adjust star color and size per block; the stars scale with your typography.<\/li>\n<li><strong>Featherweight:<\/strong> A few hundred bytes of CSS, no external assets, no JavaScript on the front end.<\/li>\n<\/ul>\n\n<h3>Arbitrary section<\/h3>\n\n<h3>Additional Information:<\/h3>\n\n<p>For more advanced usage, you can hook into the block\u2019s filters and actions to extend its functionality. This is particularly useful for developers who want to integrate the star ratings with other plugins or custom code.<\/p>\n\n<h3>Support:<\/h3>\n\n<p>If you encounter any issues or have questions, please contact us directly at <a href=\"mailto:martin@martincv.com\">martin@martincv.com<\/a>.<\/p>\n\n<!--section=installation-->\n<p>To install the Simple Star Rating Block plugin, follow these steps:<\/p>\n\n<ol>\n<li><strong>Upload:<\/strong> Upload the plugin files to the <code>\/wp-content\/plugins\/simple-star-rating-block<\/code> directory.<\/li>\n<li><strong>Activate:<\/strong> Activate the plugin through the 'Plugins' screen in WordPress.<\/li>\n<li><strong>Configuration:<\/strong> Configure the settings to suit your needs via the Gutenberg block settings.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20do%20i%20add%20a%20star%20rating%20to%20a%20post%2C%20page%20or%20custom%20post%20type%3F\"><h3>How do I add a star rating to a post, page or custom post type?<\/h3><\/dt>\n<dd><p>Simply add the \"Star Rating Block\" from the Gutenberg block inserter, then set your desired rating or link it to a custom field.<\/p><\/dd>\n<dt id=\"can%20i%20customize%20the%20appearance%20of%20the%20star%20ratings%3F\"><h3>Can I customize the appearance of the star ratings?<\/h3><\/dt>\n<dd><p>Yes, you can customize the size, color, and style of the stars through the block settings in the Gutenberg editor.<\/p><\/dd>\n<dt id=\"i%20don%27t%20see%20acf%20fields%20in%20the%20custom%20field%20key%20list%3F\"><h3>I don't see ACF fields in the Custom Field Key List?<\/h3><\/dt>\n<dd><p>To see the ACF fields in the list you need to enable the ACF Group where the field is to show in the REST API. See screenshot 4 on how to do that.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.3<\/h4>\n\n<ul>\n<li>Accessibility: the block now renders with <code>role=\"img\"<\/code> and a \"Rated X out of 5\" label; individual stars are hidden from screen readers<\/li>\n<li>Fixed invalid HTML on the frontend (block-level elements inside an inline wrapper)<\/li>\n<li>Ratings are now clamped to the 0\u20135 range, including values pulled from custom fields<\/li>\n<li>Correct post is now used when the block renders inside a Query Loop<\/li>\n<li>Custom fields now load correctly in the editor for custom post types with a custom REST base<\/li>\n<li>Performance: removed ~13KB of unused CSS from the frontend stylesheet<\/li>\n<li>Hardened inline style output<\/li>\n<li>Compatibility: tested up to WordPress 7.1\n<em>Release Date - 30 July 2026<\/em><\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>Bug fix where default custom fields were not showing in the list\n<em>Release Date - 03 January 2025<\/em><\/li>\n<\/ul>\n\n<h4>0.1.1<\/h4>\n\n<ul>\n<li>Enabled to successfully pull custom fields from Custom Post Types\n<em>Release Date - 11 August 2024<\/em><\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>Initial release\n<em>Release Date - 07 July 2024<\/em><\/li>\n<\/ul>","raw_excerpt":"A lightweight, accessible Gutenberg block for star ratings \u2014 enter a value manually or pull it live from a custom field (ACF supported).","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/199102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=199102"}],"author":[{"embeddable":true,"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/martin7ba"}],"wp:attachment":[{"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=199102"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=199102"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=199102"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=199102"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=199102"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=199102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}