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! π
How to display rating only but disallow comments
How-to and Troubleshooting
(@bembelhead)
New Member
Joined: 8 months ago
Howdy,
just discovered WPDiscuz and installed and am delighted so far! I've got a somewhat strange question and doubt this will be possible. I'll have some 50+ categories and want to allow comments only in a few of them. Found this snippet here to deal with this
add_filter("is_load_wpdiscuz", function ($load, $post) {
if (has_category([102,105], $post)) {
$load = false;
}
return $load;
}, 10, 2);
Perfect .. BUT ... this way I also loose the rating feature which is not desired. Is there a way to only display the rating but not the comments?
Thx for any hints on that.
(@asti)
Illustrious Member
Joined: 8 years ago
Hi,
I'm sorry, but there are not any hooks we can provide you.
Suggestion: You can hide the comment form using CSS or JS code.Β