Aggregating reviews based on Place Categories

This topic contains 0 replies, has 1 voice, and was last updated by  blacspydr 7 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #366591

    blacspydr
    Buyer
    Post count: 44

    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.

Viewing 1 post (of 1 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount