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

yasr_pro_overall_rating_chart

Description

Pro version of yasr_top_ten_highest_rated 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
text_position
(optional) where to place custom text.
Accepted values: "before", "after"
default: disabled
text
(optional) custom text to display.
Accepted values: your custom text, no longer than 30 chars
default: disabled
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_overall_rating_chart]
will show a 10 rows chart, just like yasr_top_ten_highest_rated
[yasr_pro_overall_rating_chart rows=5 size=large text_position=before text=Rating: category=113,151,224]
will show a 5 rows chart, with large stars set, custom text displayed is "Rating" and posts are get from categories 113, 151 and 224

See also

How to create YASR PRO shortcodes