Displays the rating result.

E.g. [mrp_rating_result rating_form_id="1" no_rating_results_text="No ratings!" show_rich_snippets="false" before_count="(" after_count=" votes)"]

4.21/5 (55 votes)

Attribute Description Values
post_id The post id. If not set, the current post is used from the WP loop Number
rating_form_id The rating form id. If not set, default settings are used Number
no_rating_results_text Text to display if there are no rating results yet. If not set, default settings are used. Text
show_rich_snippets Do you want to produce Google rich snippets code? Default set to false. true or false
show_title Do you want to show the post title with the rating result? Default set to false. true or false
show_count Do you want to show the count of entries. Default set to true. true or false
before_count Text to display before count. Default is ( text
after_count Text to display before count. Default is ) text
result_type The result type to use. Default is set to star_rating. star_rating, percentage or score
class Add CSS classes to the parent div element (add spaces between each class). Text
user_roles Filter rating results by specific WordPress user roles (comma separated) e.g. administrator, editor, subscriber
rating_item_ids Filter the results using specified rating items. If not set, the rating items assigned to the rating form are used. comma separated list of rating item ids e.g. 1, 2, 3
comments_only Do you want to only show ratings which contain comments? Default is false. true or false
from_date Date range from or start date. Date format yyyy-mm-dd. Default empty.
to_date Date range to or end date. Date format yyyy-mm-dd. Default empty.
rating_entry_ids Use a selected list or rating entries. comma separated list of Rating Entry Id’s e.g. 1, 2, 3
generate_microdata Do you want to add schema.org microdata for AggregateRating? true or false. Default is false.