The [rvx-star-count] shortcode is the smallest, lightest way to show a rating on a page — a single-line badge with the star icon, the average score, and the review count (e.g. “★ 4.7 (238 reviews)”). It’s built for places where a full summary card would be too heavy: product grid cards, archive/shop loops, or inline next to a product title.
Basic usage
[rvx-star-count]
Parameters
| Parameter | Default | What it does |
|---|---|---|
title |
false |
Optional label text next to the badge. Leave as false to omit it entirely. |
product_id |
current post | Show the badge for a specific WooCommerce product by ID. |
post_id |
current post | Show the badge for a specific custom post type entry by ID. |
info |
default |
Controls how much text accompanies the stars — the default shows the score and review count together in one line. |
Example
Compact badge for product 128, with a label:
[rvx-star-count title="true" product_id="128"]
Where to use it
Because it’s a single inline element rather than a card, [rvx-star-count] is the shortcode most stores use inside a shop-loop template (via a page builder’s shortcode/HTML element) or in a theme’s product-title area — anywhere the full [rvx-summary] card would crowd the layout.
Related shortcodes
- [rvx-summary] — full summary card
- [rvx-stats] — star-by-star distribution