Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the gVectors community!

Merry Christmas and Happy Holidays! 🎄

Get posts average star rating

4 Posts
2 Users
0 Reactions
2,198 Views
(@mrlopeco)
New Member
Joined: 6 years ago
Posts: 2
Topic starter  

Hi there!

I feel little stupid because I couldn't find an answer to this question through the search function. Anyway!

How can I retrieve the average star rating of a post?

Thanks!



   
Quote
Topic Tags
Elvina
(@elvina)
Support
Joined: 6 years ago
Posts: 1403
 

Hi @mrlopeco,

Please navigate to Dashboard > Comments > Settings > Comment List admin page, make sure the "After Content" checkbox is checked in the "Display Ratings" section. Save, delete all caches and check again.

More info here: https://wpdiscuz.com/docs/wpdiscuz-documentation/settings/comment-list-settings/#display_ratings

Don't forget to press CTRL + F5(twice) in the frontend before checking.



   
ReplyQuote
(@mrlopeco)
New Member
Joined: 6 years ago
Posts: 2
Topic starter  

Sorry, let me ask this again.

How can I get the average star rating of a post in a wp query.

there is a custom/meta field that counts the star rating if i am not wrong.

thanks



   
ReplyQuote
Elvina
(@elvina)
Support
Joined: 6 years ago
Posts: 1403
 

@mrlopeco,

Thank you for clarifying.

Here is the postmeta key you should use:

wpdiscuz_rating_count 

Please note, the Meta Key doesn't return the post average count. The key includes the count of each rating(5/4/3/5...). You should count the average value of each post manually to get the star rating of the post.



   
ReplyQuote
Share:
Scroll to top