Get Average Rating

If you’d like to include the average rating value in your theme templates — in the comments.php template, for example — you may use the following code as an example: