I am hoping to find someone who can implement the following:
I have assigned categories by genre. I would like to provide an average rating for each genre.
For example, Asian restaurant #1 has 5 stars and Asian restaurant #2 has 4 stars. I would like to display “Average Rating for all Asian Restaurants – 4.5 stars.”
From my understanding, this is how it is possible:
1) Refer best of widget code especially this function geodir_bestof_places_by_term. It can get the posts by term (i.e category)
2) Once you get the posts get the average rating of each listing. you can get overall individual rating using this function geodir_get_post_rating($post->ID);
3) Now all you have to do is add those individual ratings and divide by the number of listings.