Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want To Show latest comment with rating.. Iam Using The code below.. But Its don't Shown Any Rating.

<?php $comments = get_comments('status=approve&number=3');
foreach($comments as $comment) : ?>
    <?php $my_id = $comment->comment_post_ID ; $post_id_comms = get_post($my_id); $title = $post_id_comms->post_title; ?> 
    Who: <?php echo($comment->comment_author);?><br />
    Rating: <?php wp_gdsr_comment_integrate_standard_result(get_comment_ID(), '', 16); ?>
    About: <a href="<?php get_permalink($comment->ID)?>#comment-<?php echo $comment->comment_post_ID?>" title="on <?php echo $title ?>"><?php echo $title ?></a><br />
    What they said: <?php echo($comment->comment_content);?><br />
    When they said it: <?php echo($comment->comment_date);?><br />
<?php endforeach;?>
share|improve this question

1 Answer 1

Any Idea

<php wp_gdsr_comment_integrate_standard_result(get_comment_ID(), '', 16); ?> 

This Function Only working In single.php

I want This Function In Latest Comment loop... Please Help Me....

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.