Ok, so I have loop which has 6 items (comments) as shown below.
- User1 Comment
- User2 Comment
- User1 Comment
- User1 Comment
- User3 Comment
- User4 Comment
If I put limit for 4 comment this is what I get
- User1 Comment
- User2 Comment
- User1 Comment
- User1 Comment
But instead of that I want to be able to eliminate same user comments and instead show others. It should look like that.
- User1 Comment
- User2 Comment
- User3 Comment
- User4 Comment
How can I achieve this ?
foreach($latestcomments as $comment){
echo $comment->content;
}