Shortcodes

Five-Star Rating and Review Widget uses shortcodes internally to make things in the plugin work. For customization, this can be used manually. Here's how to use them.

[fsrrw_rating]

Shows the rating of the post as made by users. It will output blank stars if no ratings have been made yet.

Parameters:
ID = The post ID. If left unspecified, it reads the current post ID being displayed or rendered in the loop or single pages. It is possible to forcibly specify a value of another post ID.
show_avg = Show the average score of the post. Default value is set to 'true'
show_review_link = Show a link to a list of reviews. Default value is set to 'true'

If Reviews is enabled and Ratings is disabled, or the post ID does not belong to any of the checked post types and/or taxonomies, this shortcode will not output anything.

[fsrrw_rating_by_author]

Shows the rating of the post as set by the author. It will have no output if the post's author rating is set to 0.

Parameters:
ID = The post ID. If left unspecified, it reads the current post ID being displayed or rendered in the loop or single pages. It is possible to forcibly specify a value of another post ID.
show_avg = Show the average score of the post. Default value is set to 'true'
star_text_singular = The caption for a single star rating. Use the %s variable where the score number will be placed in.
star_text_plural = The caption for a star rating more than 1. Use the %s variable where the score number will be placed in.

If Author Ratings is disabled, or the post ID does not belong to any of the checked post types and/or taxonomies, this shortcode will not output anything.

[fsrrw_review_form]

Renders the review form for the post it is in right now.

If Reviews and Ratings is disabled, or the post ID does not belong to any of the checked post types and/or taxonomies, this shortcode will not output anything.

[fsrrw_review_list]

If Reviews and Ratings is disabled, or the post ID does not belong to any of the checked post types and/or taxonomies, this shortcode will not output anything.

[fsrrw_rating_list]

If Reviews and Ratings is disabled, or the post ID does not belong to any of the checked post types and/or taxonomies, this shortcode will simply output a message indicating no output is available.