1. Home
  2. Docs
  3. Shortcodes
  4. YASR Free
  5. yasr_overall_rating
Remember: You don't need to keep in mind all the shortcodes. You can use the shortcode creator if you're using the Classic Editor, or just add a block if you're using Gutenberg.

yasr_overall_rating

Description

Shows the Overall Rating for a post or page.


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

will show the Overall Rating with large stars set (default) for the current post or page
will show the Overall Rating with medium stars set for the post ID 2548

How To insert the rating

Classic Editor
With the classic editor, a box in the top-right of the screen will show up. You can save the rating here.
Gutenberg
With Gutenberg, you can save the rating in two different ways:

  • Click on the “+” icon to add a block, search for YASR and select YASR: Overall Rating. A new panel will appear to the right: you can add your rating here.
  • Click on the star in the top right; this will show up the YASR settings for that post or page; you can save rating here