How to show star ratings using shortcodes:
Show 5 Stars using `[ show_stars stars_to_show = “5”]`: |
Show 4.5 Stars using `[ show_stars stars_to_show = “4.5”]`: |
Show 4 Stars using `[ show_stars stars_to_show = “4”]`: |
Show 3.5 Stars using `[ show_stars stars_to_show = “3.5”]`: |
Show 3 Stars using `[ show_stars stars_to_show = “3”]`: |
Show 2.5 Stars using `[ show_stars stars_to_show = “2.5”]`: |
Show 2 Stars using `[ show_stars stars_to_show = “2”]`: |
Show 1.5 Stars using `[ show_stars stars_to_show = “1.5”]`: |
Show 1 Stars using `[ show_stars stars_to_show = “1”]`: |
Show 0.5 Stars using `[ show_stars stars_to_show = “0.5”]`: |
Show 0 Stars using `[ show_stars stars_to_show = “0”]`: |
One thing to note is that the shortcode is set to display the stars in an ‘inline' display format.
So when adding the stars next to any text, it'll best to have the text displayed in an inline format as well (using <span></span>).
Something like:
<span>Some rating category here:</span>