1. Home
  2. Docs
  3. Shortcodes
  4. YASR Pro
  5. yasr_pro_average_comments_ratings

yasr_pro_average_comments_ratings

Description

Shows an average rating from the reviews in your posts or pages.


Parameters

size
(optional) Size of the stars.
Accepted values: “small”, “medium”, “large”.
default: large
postid
(optional) The post ID
default: the post ID of the current post or page

Examples

[yasr_pro_average_comments_ratings]
will show the average rating with large stars set (default) for the current post or page
[yasr_pro_average_comments_ratings size="medium" postid="2548"]
will show the average rating with medium stars set for the post ID 2548

Settings

In the settings page, it is possible to customize the text to show after the stars