@vdmweb,
Sorry for the delay.
I used code snippet provided by @rozroz in my listing loop php, except I replaced the $post_id to get_the_ID(). I initially did not see the rating visually as it was hidden underneath the image. I checked this vwith Chrome Inspect – See screenshot: https://www.dropbox.com/s/dalls25xhy4q1yf/Inspect-Code.jpg?dl=0
<div class=”review-wu-grade”> indicates that the rating was actually created but my thumbnail image holder had z-index set to lay above it visually. I then reset my thumbnail image holder z-index to 0 to reveal the rating visually and used css to move it to top right corner.
// get the ID of the post as $post_id
$review = new WPPR_Review_Model(get_the_ID())
$rating = $review->get_rating();
// display the rating icon or use $rating to display a custom icon
echo wppr_layout_get_rating( $review, ‘donut’, ‘default’, array( ‘review-wu-grade’ ) );
-
This reply was modified 4 years, 11 months ago by barocke.