Create a “My Ratings” page and insert the [mrp_user_ratings_dashboard] shortcode. The user ratings dashboard shortcode provides user management of ratings. You must be logged in to see your dashboard. The dashboard shows a summary and a table of all user ratings with the ability to quickly update or delete your ratings in the table via AJAX.
E.g. [mrp_user_ratings_dashboard title="My Ratings"]
Attribute | Description | Values |
---|---|---|
no_rating_results_text | Text to display if there are no rating results yet. If not set, default settings are used. | Text |
title | Title to be displayed i.e. Please rate this. If not set, default settings are used. | Text |
before_title | HTML or text before title. Default is empty. | HTML or text |
after_title | HTML or text after title. Default is empty. | HTML or text |
class | Add CSS classes to the parent div element (add spaces between each class). | Text |
user_can_update_delete | Set to false to disallow user’s from updating or deleting their existing ratings. | true or false |
submit_button_text | If not set, default settings are used. | Text |
update_button_text | If not set, default settings are used. | Text |
delete_button_text | If not set, default settings are used. | Text |
before_date | HTML or text before entry date. Default is empty. | HTML or text |
after_date | HTML or text after entry date. Default is empty. | HTML or text |
show_count | Do you want to show the count of entries. Default set to false | true or false |
result_type | The result type to use. Default is set to star_rating. | star_rating, percentage or score |
before_count | Text to display before count. Default is “” | text |
after_count | Text to display before count. Default is “” | text |
entry_status | Filter entries by status i.e Unapproved (or Pending) and Approved. Default is null. | approved, pending |
approved_comments_only | Filter by approved comments. Default is false. | true of flase |
show_count_comments | Display count of comments. Default is true. | true or false |
limit | Set a limit on how many ratings to show. | Number |
offset | Page number offset. E.g. if limit is 10 and offset=1, then rows 11-20 will be returned. | Number. Default is 0. |
sort_by | Sort the ratings, You can show the highest rated, lowest rated, recent ratings and also sort by post title ascending or descending alphabetical order. most_recent is default. | highest_rated, lowest_rated, most_recent, post_title_asc, post_title_desc |
comments_only | Do you want to only show ratings which contain comments? Default is null. | true or false |
from_date | Date range from or start date. | Date format yyyy-mm-dd. Default null. |
to_date | Date range to or end date. | Date format yyyy-mm-dd. Default null. |
category_id | Show the rating results for a specific category. Default is set to 0 which means all categories. This overrides the term_id and taxonomy parameter and is simply an alias for parameter taxonomy=”category” and setting the term_id. | Number |
taxonomy | Show the rating results for a specific taxonomy. Default is empty. | Taxonomy name e.g. category, post_tag etc… |
term_id | The term id to filter in the taxonomy. Default is 0 which means all (e.g. all categories). | Number |
show_filter | Do you want to display the filter? Default is false. | true or false |
filter_button_text | Text for filter button. If not set, default settings are used. | Text |
filter_label_text | Text for filter label. If not set, default settings are used. | Text |