Title: Simple Star Rating Block
Author: MartinCV
Published: <strong>August 11, 2024</strong>
Last modified: July 30, 2026

---

Search plugins

![](https://ps.w.org/simple-star-rating-block/assets/banner-772x250.png?rev=3133729)

![](https://ps.w.org/simple-star-rating-block/assets/icon-256-256.png?rev=3133729)

# Simple Star Rating Block

 By [MartinCV](https://profiles.wordpress.org/martin7ba/)

[Download](https://downloads.wordpress.org/plugin/simple-star-rating-block.0.3.zip)

 * [Details](https://sa.wordpress.org/plugins/simple-star-rating-block/#description)
 * [Reviews](https://sa.wordpress.org/plugins/simple-star-rating-block/#reviews)
 *  [Installation](https://sa.wordpress.org/plugins/simple-star-rating-block/#installation)
 * [Development](https://sa.wordpress.org/plugins/simple-star-rating-block/#developers)

 [Support](https://wordpress.org/support/plugin/simple-star-rating-block/)

## Description

**Show a star rating anywhere, in seconds.** 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.

Ratings can be typed in manually or **pulled dynamically from a custom field** —
including ACF fields — 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.

Development Version can be found on: https://github.com/martinjankov/simple-star-
rating-block

### Features:

 * **Manual or dynamic:** Type a rating, or bind the block to a custom field on 
   the post — works with custom post types, including those using a custom REST 
   base.
 * **ACF Integration:** Pull the rating from an ACF field — just enable “Show in
   REST” on the ACF Field Group (see screenshot 4).
 * **Partial stars:** Decimal ratings like 4.3 render as precisely filled stars.
 * **Accessible:** Screen readers announce a clear “Rated 4.5 out of 5” label instead
   of empty markup.
 * **Your style:** Adjust star color and size per block; the stars scale with your
   typography.
 * **Featherweight:** A few hundred bytes of CSS, no external assets, no JavaScript
   on the front end.

### Arbitrary section

### Additional Information:

For more advanced usage, you can hook into the block’s 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.

### Support:

If you encounter any issues or have questions, please contact us directly at [martin@martincv.com](https://sa.wordpress.org/plugins/simple-star-rating-block/martin@martincv.com?output_format=md).

## Screenshots

[⌊Star Rating Block in Action: Demonstrates the star rating block as displayed on
a post or page.⌉⌊Star Rating Block in Action: Demonstrates the star rating block
as displayed on a post or page.⌉[

**Star Rating Block in Action:** Demonstrates the star rating block as displayed
on a post or page.

[⌊Block Settings Panel: Shows the settings available for customizing the star rating
block.⌉⌊Block Settings Panel: Shows the settings available for customizing the star
rating block.⌉[

**Block Settings Panel:** Shows the settings available for customizing the star 
rating block.

[⌊Star Rating Block in Action In Post Context: Demonstrates the star rating block
as displayed on a post or page.⌉⌊Star Rating Block in Action In Post Context: Demonstrates
the star rating block as displayed on a post or page.⌉[

**Star Rating Block in Action In Post Context:** Demonstrates the star rating block
as displayed on a post or page.

[⌊Enable Option for ACF Group to pull rating from ACF Field : Enable "Show in REST"
so that the ACF Group can show in the Fields list on the Simple Star Rating Block⌉⌊
Enable Option for ACF Group to pull rating from ACF Field : Enable "Show in REST"
so that the ACF Group can show in the Fields list on the Simple Star Rating Block⌉[

**Enable Option for ACF Group to pull rating from ACF Field :** Enable “Show in 
REST” so that the ACF Group can show in the Fields list on the Simple Star Rating
Block

## Blocks

This plugin provides 1 block.

 *   Simple Star Rating Block Star Rating Block allows you to display star ratings
   with manually entered value or pulled from a custom field.

## Installation

To install the Simple Star Rating Block plugin, follow these steps:

 1. **Upload:** Upload the plugin files to the `/wp-content/plugins/simple-star-rating-
    block` directory.
 2. **Activate:** Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. **Configuration:** Configure the settings to suit your needs via the Gutenberg 
    block settings.

## FAQ

### How do I add a star rating to a post, page or custom post type?

Simply add the “Star Rating Block” from the Gutenberg block inserter, then set your
desired rating or link it to a custom field.

### Can I customize the appearance of the star ratings?

Yes, you can customize the size, color, and style of the stars through the block
settings in the Gutenberg editor.

### I don’t see ACF fields in the Custom Field Key List?

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.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Simple Star Rating Block” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ MartinCV ](https://profiles.wordpress.org/martin7ba/)

“Simple Star Rating Block” has been translated into 1 locale. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/simple-star-rating-block/contributors)
for their contributions.

[Translate “Simple Star Rating Block” into your language.](https://translate.wordpress.org/projects/wp-plugins/simple-star-rating-block)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/simple-star-rating-block/),
check out the [SVN repository](https://plugins.svn.wordpress.org/simple-star-rating-block/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/simple-star-rating-block/)
by [RSS](https://plugins.trac.wordpress.org/log/simple-star-rating-block/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.3

 * Accessibility: the block now renders with `role="img"` and a “Rated X out of 
   5” label; individual stars are hidden from screen readers
 * Fixed invalid HTML on the frontend (block-level elements inside an inline wrapper)
 * Ratings are now clamped to the 0–5 range, including values pulled from custom
   fields
 * Correct post is now used when the block renders inside a Query Loop
 * Custom fields now load correctly in the editor for custom post types with a custom
   REST base
 * Performance: removed ~13KB of unused CSS from the frontend stylesheet
 * Hardened inline style output
 * Compatibility: tested up to WordPress 7.1
    _Release Date – 30 July 2026_

#### 0.2

 * Bug fix where default custom fields were not showing in the list
    _Release Date–
   03 January 2025_

#### 0.1.1

 * Enabled to successfully pull custom fields from Custom Post Types
    _Release Date–
   11 August 2024_

#### 0.1.0

 * Initial release
    _Release Date – 07 July 2024_

## Meta

 *  Version **0.3**
 *  Last updated **2 months ago**
 *  Active installations **60+**
 *  WordPress version ** 6.1 or higher **
 *  Tested up to **7.1.2**
 *  PHP version ** 8.0 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/simple-star-rating-block/) and [Japanese](https://ja.wordpress.org/plugins/simple-star-rating-block/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/simple-star-rating-block)
 * Tags
 * [block](https://sa.wordpress.org/plugins/tags/block/)[custom fields](https://sa.wordpress.org/plugins/tags/custom-fields/)
   [gutenberg](https://sa.wordpress.org/plugins/tags/gutenberg/)[reviews](https://sa.wordpress.org/plugins/tags/reviews/)
   [star rating](https://sa.wordpress.org/plugins/tags/star-rating/)
 *  [Advanced View](https://sa.wordpress.org/plugins/simple-star-rating-block/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/simple-star-rating-block/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/simple-star-rating-block/reviews/)

## Contributors

 *   [ MartinCV ](https://profiles.wordpress.org/martin7ba/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/simple-star-rating-block/)