gdrts_stars_rating_list


Warning: Undefined array key "style_"font"_name" in /home/dev4press/public_html/wp-content/plugins/gd-rating-system/rating/base.embed.php on line 256
gdrts_stars_rating_list - Dev4Press Knowledge Base

Warning: Undefined array key 2 in /home/dev4press/public_html/wp-content/plugins/gd-rating-system/rating/base.init.php on line 482
Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

Item Votes Rating
1 Prevent CVE-2018-6389 exploit on your WordPress powered website 5 5.0
2 GD bbPress Toolbox Pro 4.5 5 5.0
3 Important update on COVID-19 virus 4 5.0
4 How to disable block editor in WordPress 5.0 4 5.0
5 GD bbPress Toolbox Pro 4.6 4 5.0

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

List of attributes

  • type: entity and name of the type connected with 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: shortcode, widget and more. 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 Stars Rating / Ratings List.
  • style_type: what to use, font icons or images. Supported values: font, image.
  • style_font_name: name of the font icon to use. Supported values: star, bell, heart, asterisk, square, circle, gear, trophy, like, snowflake.
  • style_image_name: name of the image to use: Supported values: star, oxygen. Pro version has also: christmas, crystal, hearts, snowflake.
  • 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

Ratings for the past year Example

Item Votes Rating
No items found.
Rate this reference
0
0
3157

You are not allowed to rate this post.

Leave a Comment

0
0
1K
0
0
0
0
0
0