1. Home
  2. Docs
  3. Shortcodes
  4. YASR Pro
  5. yasr_pro_visitor_votes_chart
Remember: You don't need to learn shortcodes and parameters; you can easily create your pro shortcode in settings page !

yasr_pro_visitor_votes_chart

Description

Pro version of yasr_most_or_highest_rated_posts shortcode.


Parameters

rows
(optional) rows number to display.
Accepted values: a number between 2 and 30
default: 10
size
(optional) Size of the stars.
Accepted values: “small”, “medium”, “large”.
default: medium
view
(optional) default view.
Accepted values: “most”, “highest”.
default: most
minvotesmost
(optional) the number of minimum votes required to appear in the ranking for the “most rated” view.
Accepted values: a number between 1 and 99
default: 1
minvoteshg
(optional) the number of minimum votes required to appear in the ranking for the “highest rated” view.
Accepted values: a number between 1 and 99
default: 1
category
(optional) get posts from one or more selected categories
Accepted values: category number, comma separated
default: disabled
custom_post
(optional) get posts from one custom post type
Accepted values: cpt name
default: disabled

Examples

Post / Page Order By:   Most Rated | Highest Rated
Yasr basics shortcode

[Total:4793    Average 4.1]
Yasr 1.0.5 and Yasr Pro 0.5.7 have been released

[Total:140    Average 4.1]
Yasr is coming back!

[Total:92    Average 4]
Yasr 1.8.0 is out: what’s new ?

[Total:81    Average 4.8]
Yasr Filters and Actions

[Total:79    Average 4]
How to add custom stars with Yasr Pro

[Total:75    Average 3.9]
Test page n° 1

[Total:72    Average 3.9]
YASR 0.9.7 and YASR PRO 0.4.8 out!

[Total:54    Average 4.3]
Yasr User Reviews 0.1.5 is out!

[Total:41    Average 3.9]
Yasr 1.6.2 is here

[Total:34    Average 3.8]
Post / Page Order By:   Most Rated | Highest Rated
YASR PRO 0.4.3 out today!

[Total:2    Average 5]
Yasr 0.8.2 and Yasr Pro 0.2.7

[Total:4    Average 5]
Yasr 1.3.5 is out!

[Total:5    Average 4.8]
Yasr 1.8.0 is out: what’s new ?

[Total:81    Average 4.8]
Yasr 1.3.8

[Total:4    Average 4.8]
Yasr 1.2.0 and Yasr Stylish 0.0.6

[Total:4    Average 4.8]
Yasr 1.2.7 and Yasr Stylish 0.0.7 are out!

[Total:12    Average 4.7]
Yasr 1.1.3 is out

[Total:9    Average 4.7]
New website, and new translation system!

[Total:6    Average 4.7]
YASR 0.8.3 and YASR PRO 0.2.9 have been released

[Total:3    Average 4.7]
will show a 10 rows chart, just like yasr_most_or_highest_rated_posts
You've not enough data
will show a 5 rows chart, with large stars set, default view is the highest rated posts, posts are get from categories 191, 6 and 73. In order to appear in the higest rated view, posts must have at least 8 votes; 4 are need to appear in the most rated one.

See also

How to create YASR PRO shortcodes