1. Home
  2. Docs
  3. Shortcodes
  4. YASR
  5. yasr_ov_ranking
Remember: You don't need to keep in mind all the shortcodes. You can use the shortcode creator if you're using the Classic Editor, or just add a block if you're using Gutenberg.

yasr_ov_ranking

Pro version of this shortcode is available!! 😍

Description

Shows the Ranking Review 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
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_ov_ranking]
will show a 10 rows chart
[yasr_ov_ranking 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