Calculate the average rating & display total number of posts

I’m using a plugin for testimonials called Strong Testimonials on a site.

Each of the testimonials added will have a rating of 1-5 stars.

They appear under a custom post type ‘Testimonials’

I want to build a widget that will count how many testimonial posts there are, and also display an average star rating based on all of the testimonials?

I’m not really sure where to start but would love if someone could offer any insight.

Read more here:: Calculate the average rating & display total number of posts

Leave a Reply

Your email address will not be published. Required fields are marked *