Shortcode
Star rating badge
The lightest ReviewX shortcode: it reads cached numbers from WordPress, makes no API call and fits inline next to a title or price. Choose exactly which parts to show.
Shortcode
[rvx-star-count]A small inline rating for titles, product grids and menus.
Live example
Default badge
Stars, average, count and text for the Linen Button-Down Shirt.
[rvx-star-count product_id="225"]Every display option
| Attribute | Shows | Live |
|---|---|---|
info="default" | Stars, rating, count and text | |
info="stars" | Stars only | |
info="stars_rating" | Stars and rating | |
info="stars_count" | Stars and count | |
info="rating_count_text" | Rating, count and text |
4.5 (8) Reviews |
info="count_text" | Count and text |
(8) Reviews |
Reference
Attributes
Every attribute is optional unless noted. The same options are in the ReviewX block, the widget and the Shortcode Designer.
| Attribute | Values | What it does |
|---|---|---|
product_id / post_id | Any ID | One item. Left out, the current product. |
post_type | product, post … | Store-wide numbers for a post type. |
info | default, stars, stars_rating, stars_count, stars_count_text, rating, rating_count, rating_count_text, count, count_text | Which parts to show. |
title / theme | Text / light, dark | Heading and forced mode. |
More shortcodes
Nine ways to show reviews
ReviewX for WordPress
Everything on this page ships in ReviewX
Free for one store, with Pro and Agency plans when you need video reviews, automatic reminders, highlights and more. Set up in minutes.