This shortcode displays list of ratings sorted by rating, votes…

List of attributes

  • type: entity and name of the type connected with the dot like this: {entity}.{name} and both are required.
  • class: CSS class for the shortcode wrapper.
  • orderby: sorting of the results list. Supported values: rating, votes, item, id, latest, sum.
  • order: sorting order. Supported values: ASC, DESC.
  • limit: number of results to display. Default: 5.
  • rating_min: minimal rating to show. Default: 0.
  • votes_min: minimal number of votes: Default: 0.
  • template: name of the template to use for display. Supported values: default. List of templates can be expanded, and list of all available templates is listed on the Templates panel in Information menu. This shortcode can use templates listed under Thumbs Rating / Single Block.
  • alignment: alignment of the rating block. Supported values: left, right, center, none.
  • style_theme: CSS theme to use to style the thumbs block. Supported values: plain….
  • style_type: what to use, font icons or images. Supported values: font, image, text.
  • style_font_name: name of the font icon to use. Supported values: hands-fill, hands-empty, plus-square, smilies.
  • style_image_name: name of the image to use: Supported values: thumb.
  • style_size: size in pixels for the font icon or image.
  • style_class: additional CSS class to add to rating block wrapper.
  • terms: comma separated list of Term ID’s. Used only for posts.
  • authors: comma separated list of author ID’s. Used only for posts.
  • period: list based on the votes for the specified period. Supported values: default, range, latest.
  • period_latest: predefined period. Supported values: day, week, two-weeks, month, year, last-month.
  • period_range_from: from date, in the mySQL format (0000-00-00 00:00:00).
  • period_range_to: from date, in the mySQL format (0000-00-00 00:00:00).

Basic Example

[gdrts_thumbs_rating_list type="posts.post" limit=10
template="shortcode" style_size=20 style_type="font"

Ratings for the past year Example

[gdrts_thumbs_rating_list type="posts.post" limit=10
period="range" period_range_from="2016-01-01 00:00:00"
period_range_to="2016-12-01 10:00:00"]
Rate this reference

You are not allowed to rate this post.


Leave a Reply