Shows a ranking with the most rated (or highest) posts based on user’s reviews. See Demo of the wordpress star ratings plugin.
Parameters (Pro version only)
- 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
- start_date
- (optional) Start date. Accepted values: date in format YYYY-MM-DD
- end_date
- (optional) End Date Accepted values: date in format YYYY-MM-DD
- 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_ur_ranking]
will show a 10 rows chart
[yasr_pro_ur_ranking 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 highest rated view, posts must have at least 8 votes; 4 are need to appear in the most rated one.