Hey folks:
I have creted a widget that displays the most recent comments of my posts. I am trying to figure out how I can have it display the users' avatar in addition to the comments.
Here the link: http://www.howistyle.info (It is the members feed widget).
And here is the code I am using:
<?php $recent = new WP_Query("cat=17&showposts=1");
while($recent->have_posts()) : $recent->the_post();?></p>
<p><?php $comments = get_comments('post_id=' . $post->ID . '&number=5');
if($comments) {</p>
<p>foreach($comments as $comment) :
echo($comment->comment_author .
' says: ' . $comment->comment_content . '</p>
<p>') ; endforeach;
} ?>
<?php endwhile; ?>