---
title: Shortcode to Display Star Ratings, Review Count, and Text
description: "Use the [rvx-star-count] shortcode for a compact star rating and review count badge anywhere on your site."
url: "https://reviewx.io/docs/shortcode-to-display-star-ratings-review-count-and-text/"
updated: "2026-09-22"
category: Shortcodes
tags:
  - ReviewX
  - WordPress
---

# Shortcode to Display Star Ratings, Review Count, and Text

The `[rvx-star-count]` shortcode is the most compact rating component in ReviewX. It outputs a lightweight, single-line rating badge featuring star icons, the average numerical score, and the total review count (e.g., ★ **5.0 (3 reviews)**). It is built for tight layouts, category catalog cards, sticky headers, and custom comparison tables.

![ReviewX Shortcode Star Count Component](https://reviewx.io/wp-content/uploads/2026/09/shortcode_rvx_star_count.png)
The ultra-compact inline rating badge rendered by \[rvx-star-count\], displaying star icons, average score, and review count.

## Shortcode Syntax

On single product pages:

```
[rvx-star-count]
```

To target a specific product by ID anywhere across your site:

```
[rvx-star-count post_id="123"]
```

## Ideal Placements

- **Archive & Category Loops:** Place in custom WooCommerce product archive cards to show verified ratings without loading full review widgets.
- **Sticky Add-to-Cart Headers:** Display social proof right next to price and checkout buttons as visitors scroll.
- **Sidebars & Promotional Widgets:** Embed social proof in blog post recommendations, sidebar callouts, and landing page banners.

## Gutenberg Block Support

Search for and insert the **ReviewX Star Count** block (`reviewx/star-count`) directly within the WordPress Block Editor.

## Related Articles

- [Shortcode to Display Product Review Summary](https://reviewx.io/docs/shortcode-to-display-product-review-summary/)
- [Shortcode to Display Product Review Lists](https://reviewx.io/docs/shortcode-to-display-product-review-lists/)
