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
- [yasr_pro_visitor_votes_chart]
- will show a 10 rows chart, just like yasr_most_or_highest_rated_posts
- [yasr_pro_visitor_votes_chart rows=5 size=large view=highest minvotesmost=4 minvoteshg=8 category=191,6,73]
- 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