The ReviewX Star Count Shortcode gives you the flexibility to display star ratings, average rating values, review counts, and supporting text anywhere on your website. This shortcode is especially useful for highlighting product or post ratings in pages, posts, or widgets.
Shortcode:
Parameters:
The shortcode accepts different predefined parameter sets. Each parameter controls which combination of elements (stars, rating, count, text) will be displayed.
Parameter Key & Shortcode | Displays | Screenshots |
---|---|---|
stars – [rvx-star-count info="stars" ] |
Star icons only. | ![]() |
rating – [rvx-star-count info="rating"] |
Average rating value only. |
![]() |
count – [rvx-star-count info="count"] |
Total number of reviews. |
![]() |
text – [rvx-star-count info="text"] |
Accompanying review text. |
![]() |
default – [rvx-star-count] |
Stars, rating, count, and text. |
![]() |
stars_rating – [rvx-star-count info="stars_rating"] |
Stars and average rating. |
![]() |
count_text – [rvx-star-count info="count_text"] |
Review count with text. |
![]() |
rating_count – [rvx-star-count info="rating_count"] |
Average rating with review count. |
![]() |
rating_count_text – [rvx-star-count info="rating_count_text"] |
Rating, count, and text. |
![]() |
stars_count – [rvx-star-count info="stars_count"] |
Stars with review count. |
![]() |
stars_count_text – [rvx-star-count info="stars_count_text"] |
Stars, count, and text. |
![]() |
Notes:
-
The
type
attribute defines the output style. -
If no
type
is specified, the shortcode defaults todefault
(showing all elements). -
The shortcode works in posts, pages, or widgets.
-
Screenshots should be saved in a dedicated folder (e.g.,
docs/screenshots/
) and linked for better documentation organization.
Having difficulties? Feel free to reach out to our Dedicated Support Team.