Limited Support
Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.
Hi,
how can I show just the stars representing the average rating for a post in either the single post or archive page
Thanks
Hi @jjk,
Please read this doc: https://wpdiscuz.com/docs/wpdiscuz-documentation/settings/comment-list-settings/#display_ratings
after looking into this a bit, I think here might be a small bug in the code..
in the Form.php, within public function getRatingMetaHtml on or around line 950 (not sure exact as I messed around with it) the code calls the function itself again
$html = $form->getPostRatingMetaHtml($atts);
$html = $form->getPostRatingHtml($atts);
However, there is no way to only show the stars, which would be desireable for example in an archive view or as a small indicator behind a posts title. For that, I have copied the getPostRatingHtml() function to a new one getPostRatingStarsHtml() and deleted all html that isn't necessary to show only the 5 stars inline with adjacent text.