1. Home
  2. Docs
  3. Shortcodes
  4. YASR
  5. Rankings
  6. yasr_most_or_highest_rated_posts

yasr_most_or_highest_rated_posts

Pro version of this shortcode is available on the wordpress ratings plugin.

Description

Shows the Users’ ranking chart.


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
default: disabled, will shows all posts
end_date
(optional) End Date Accepted values: date in format YYYY-MM-DD
default: disabled, will shows all posts
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

[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 highest rated view, posts must have at least 8 votes; 4 are need to appear in the most rated one.