Ratings & Reviews Merge Tags
These merge tags show numbers from an entry’s reviews, such as its average star rating or how many reviews it has. Put them in a Custom Content field to show each entry’s own numbers in a View.
Note: Ratings & Reviews starts turned off in GravityView Pro. Getting started with Ratings & Reviews shows how to turn it on and let visitors review entries.
Adding a merge tag #
- Edit your View and open the settings of a Custom Content field. Using the Custom Content field shows how to add one.
- Click the Insert merge tag icon beside the Custom Content box.
- Click GravityView Pro, then the merge tag. Each name starts with Entry Ratings:, such as Entry Ratings: Average Stars.

- Click Close, then click Update to save the View.
Number of reviews #
{gv_entry_ratings:review_count} shows how many reviews the entry has, including reviews left without a rating. Like every merge tag on this page, it counts approved reviews only: a review waiting for moderation is added once you approve it.
A comment on a review isn’t a review, so none of these merge tags counts it. That includes a visitor’s Comment on this review and your own Reply on the Comments screen.
Star ratings #
| Merge tag | What it shows |
|---|---|
{gv_entry_ratings:average_stars} | The average number of stars, rounded to two decimals, such as 3.33. A whole number shows without decimals. Reviews without a rating are left out of the average. |
{gv_entry_ratings:empty_star} | The number of reviews left without a rating. |
{gv_entry_ratings:1_star} | The number of 1-star ratings. |
{gv_entry_ratings:2_stars} | The number of 2-star ratings. |
{gv_entry_ratings:3_stars} | The number of 3-star ratings. |
{gv_entry_ratings:4_stars} | The number of 4-star ratings. |
{gv_entry_ratings:5_stars} | The number of 5-star ratings. |
Votes #
| Merge tag | What it shows |
|---|---|
{gv_entry_ratings:vote_total} | The number of up votes minus the number of down votes. |
{gv_entry_ratings:up_votes} | The number of up votes. |
{gv_entry_ratings:down_votes} | The number of down votes. |
{gv_entry_ratings:neutral_votes} | The number of reviews that are neither an up vote nor a down vote. |
Counting votes as stars #
Every rating and vote is saved as a number of stars, whether the View’s Review type is 5-Star Rating or Vote (↑/↓). So all of these merge tags work with both types:
- An up vote is saved as 5 stars, and a down vote as 1 star.
- A rating of 4 or 5 stars counts as an up vote, 1 or 2 stars as a down vote, and 3 stars as neutral.
Example: a rating column #
This content shows a workshop’s average rating and its number of reviews:
{gv_entry_ratings:average_stars} out of 5 ({gv_entry_ratings:review_count} reviews)For a workshop with no reviews, both merge tags show 0. A [gvlogic] shortcode can show other text instead:
[gvlogic if="{gv_entry_ratings:review_count}" greater_than="0"]
{gv_entry_ratings:average_stars} out of 5 ({gv_entry_ratings:review_count} reviews)
[else]No reviews yet[/gvlogic]With GravityMath, a merge tag can go into a calculation. This shows the average rating as a percentage:
[gravitymath]{gv_entry_ratings:average_stars} * 20[/gravitymath]%
Using the [gvlogic] shortcode and Using GravityMath inside a GravityView Custom Content field have more examples.