• Hello

    In order to show user ratings with their comments
    I have used wp_gdsr_comment_integrate_multi_result on the Comments page for posts and works perfectly.
    But When I try to do it for recent comments I see nothing at all:
    The code for Recent Comments List is copied below.. sorry for it being messy!

    Thanks !

    $number=25; // number of recent comments desired
    $comments = $wpdb->get_results(“SELECT * FROM $wpdb->comments WHERE comment_approved = ‘1’ ORDER BY comment_date_gmt DESC LIMIT $number”);?>
    <ul id=”recentcomments”>
    <h2>Recent Comments</h2>
    <?php
    if ( $comments ) : foreach ( (array) $comments as $comment) : $comment_content = strip_tags($comment->comment_content);
    $comment_content = stripslashes($comment_content);
    echo ‘<li <?php comment_class(); ?>’ . sprintf(__(‘%1$s on %2$s’), get_comment_author_link(), ‘comment_ID) . ‘”>’ . get_the_title($comment->comment_post_ID) . ‘‘). ”;
    echo $comment_content;

    wp_gdsr_comment_integrate_multi_result($comment_id = $comment->comment_ID,$multi_set_id = 2, $template_id = 1,$stars_set = “oxygen”, $stars_size = 12, $stars_set_ie6 = “oxygen”);
    endforeach;
    endif;?>

    http://wordpress.org/extend/plugins/gd-star-rating/

The topic ‘Show multi Raating in Recent Comments’ is closed to new replies.