Viewing 1 replies (of 1 total)
  • Plugin Author Leo Fajardo

    (@leorw)

    Hi @jagankumar16,

    We don’t have a shortcode for displaying the ratings of all posts, but we have a shortcode for displaying the top-rated posts: [ratingwidget_toprated order=”DESC” order_by=”avgrate”]. By default, it will show the number of votes and not the average rating. You need to enable the power user settings in RatingWidget > Settings > Blog Posts page and enter the following lines to change the label of the post rating.

    options.label.text.star.normal = "{{rating.avg_rate}}";
    options.label.text.star.rated = "{{rating.avg_rate}}";

    Let me know if it helps.

Viewing 1 replies (of 1 total)
  • The topic ‘How to display average rating for posts using shortcode?’ is closed to new replies.