Displaying comment rating stars in carousel

If the comment rating is stored in the comment meta, then you can use:

$rating = get_comment_meta( get_comment_ID(), 'some-meta-key', true );

where you need to adjust the some-meta-key accordingly.

If the comment rating is automatically injected into the comment’s text via the comment_text filter, then you need to use the comment_text() function to display it.

Here’s an example:

if ( $comments ) {
    foreach( $comments as $comment ) {
        // ...
        comment_text( $comment );
    }
}

Note that here you don’t need to run WP_Comment_Query twice, as you do in your snippet, just to get the number of comments.

There’s also a core function for displaying star ratings: wp_star_rating()

deneme bonusu veren sitelerbahis casinomakrobetceltabetpinbahispolobetpolobet girişpinbahis girişmakrobet girişpulibet girişmobilbahis girişkolaybet giriş