Similar to the [mrp_rating_results_list] shortcode but shows the ratings for a specific user_id and also shows the entry date.
E.g. [mrp_user_rating_results user_id="1" before_date="(" after_date=")" title="My Ratings"]
Attribute | Description | Values |
---|---|---|
user_id | Set a specific user id. Otherwise, this shortcode looks for a URL query string parameter “user-id” and if no user_id or “user-id” URL query string parameter is provided, the current logged in user is used. | Number |
username | Provide a specific username. If not set, the current logged in username is used. | Text |
rating_form_id | The rating form id. This is optional. If not set, all rating forms will be used. If set to blank (i.e. rating_form_id=””), then all rating forms 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_title | Do you want to display the title? Default set to true. | true or false |
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 |
result_type | The result type to use. Default is set to star_rating. | star_rating, percentage or score |
show_date | Do you want to show the entry date. Default set to true. | true or false |
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 |
class | Add CSS classes to the parent div element (add spaces between each class). | Text |
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 shortcode attributes and is simply an alias for shortcode attribute taxonomy=”category” and setting the term_id. | Number |
limit | Set a limit on how many ratings to show. Default is 10. | Number. |
show_rank | Do you want to show a rank? Default is set to true. | true or false |
taxonomy | Show the rating results for a specific taxonomy. This is also used to default the taxonomy used to filter. Default is “category”. | 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 |
show_featured_img | Do you want to show the post featured image? Default is true. | true or false |
image_size | Set the image size. Default is thumbnail. You can change the thumbnail size in your Media settings. You can also register custom image sizes. See Add Image Size on WordPress.org codex. | thumb, thumbnail, medium, large, post-thumbnail or custom image sizes |
sort_by | Sort the rating results. You can show the highest rated, lowest rated, recent ratings, most entries and also sort by post title ascending or descending alphabetical order. highest_rated is default. | highest_rated, lowest_rated, most_recent, post_title_asc, post_title_desc or most_entries |
rating_item_ids | Specify the rating items you want to filter the results. If not set, the rating items assigned to rating form of each rating entry are used. | comma separated list of rating item ids e.g. 1, 2, 3 |
show_count | Do you want to show the count of entries. Default set to true. | true or false |
user_roles | Filter rating results by specific WordPress user roles (comma separated) | e.g. administrator, editor, subscriber |
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. |
rating_entry_ids | Use a selected list or rating entries. | comma separated list of Rating Entry Id’s e.g. 1,2,3 |
offset | Page number offset. E.g. if limit is 10 and offset=1, then rows 11-20 will be returned. | Number. Default is 0. |