I want to show the last 5 comments for each post on my index page loop of posts. What Im using now is only showing the same comments for every post. How should I set this up and how can I add an avatar to each comment.
What have this obviously isn't working..
<?php $args = array( 'status' => 'approved', 'number' => '5', ); $comments = get_comments($args); foreach($comments as $comment) : echo( $comment->get_avatar . $comment->comment_author . '<br />' . $comment->comment_content); endforeach; ?>