1. Home
  2. Docs
  3. Shortcodes
  4. YASR
  5. yasr_visitor_votes

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.

Description

Shows the Visitor Votes 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
readonly

(optional) Set if the stars set should be clickable or not. Useful if you want to show an average rating from another post or page, or in a different part of the template. Accepted value: "yes".
default: false


Examples

[yasr_visitor_votes]    will show the Visitor Votes with large stars set (default) for the current post or page.


[yasr_visitor_votes size=medium postid=9268 readonly=yes]    will show the Visitor Votes with medium stars set for the postid 9268, not clickable.

BLACK FRIDAY | 35% OFF ON ALL YASR PLANS | CODE: BLACKFRIDAY2022