The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
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 wpDiscuz community!
Merry Christmas and Happy Holidays! 🎄
Display Post rating and number of ratings in the loop
How-to and Troubleshooting
(@psi)
Active Member
Joined: 4 years ago
Hi there.
I'm new to this forum and not working with WP for long. I would like to use this awesome plugin and want to show the rating score and number of ratings in the loop. I haven't found any HowTo do this in the forum, so maybe anyone can point me in the right direction ?
I'm using Elementor and Crocoblock components with wordpress.
Thanks. psi
(@asti)
Illustrious Member
Joined: 8 years ago
(@psi)
Joined: 4 years ago
Active Member
Posts: 8
Dec 02, 2021 11:50 am
@asti thanks for the fast reply 🙂 I have seen this post, but assumed this is for the comment rating rather than for Post rating. How can I set the post id in the loop or maybe I don't have to ?
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8205
Dec 02, 2021 11:54 am
@psi,
It should be a postid variable.
(@psi)
Joined: 4 years ago
Active Member
Posts: 8
Dec 02, 2021 12:59 pm
@asti It doesn't show anything, even with a static postid.
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8205
Dec 03, 2021 8:11 am
@psi,
The wpDiscuz has two types of ratings:
- Stand-alone Post Rating
- Post Rating Based on Comment Rating Field
the shortcode works only for the second type.
In the case of the first one, you should get the values from the database.
Those are stored in the wp_wc_users_rated table.
Also in the wp_postmeta table where the keys are:
- wpdiscuz_post_rating - the post rating
- wpdiscuz_post_rating_count - the count of the rate
The wp_ is just a prefix in your case it can differ.