You can display the most recent comments of your entire blog without any wordpress plugin.
I want to display the comments in footer area. I created following code. You can copy paste the code in your sidebar.php or footer.php file.
Using following code you are able to display recent comments with author’s gr-avatar also.
<?php
$total_comments = $wpdb->get_results("SELECT comment_date_gmt, comment_author, comment_ID, comment_post_ID, comment_author_email FROM $wpdb->comments WHERE comment_approved = '1' and comment_type != 'trackback' ORDER BY comment_date_gmt DESC LIMIT 10");
$comment_total = count($total_comments);
echo '<ul>';
for ($comments = 0; $comments < $comment_total; $comments++) {
echo "<div style='clear:both;width:355px;padding-top:3px;'><div style='float:left;width:35px;'>";
echo get_avatar($total_comments[$comments]->comment_author_email,$size='32',$default='<path_to_url>' );
echo "</div> <div style='width:320px;'>";
echo '<li>';
echo $total_comments[$comments]->comment_author . ' says ';
echo '<a href="'. get_permalink($total_comments[$comments]->comment_post_ID) . '#comment-' . $total_comments[$comments]->comment_ID . '">';
echo get_the_title($total_comments[$comments]->comment_post_ID);
echo '</a></li></div></div>';
}
echo '</ul>'
?>
My footer is looking like as follows:
Incoming search terms:
- comment widget wordpress
- order search by latest comment css wordpress
- recent comments without plugin wordpress
- recent comments wordpress
- recent comments wordpress widget
- wordpress latest comments without plugin
- wordpress sidebar get recent comments tutorial
- wp api get latest article
- wp plugin to display latest blogs with auther name







Really amazing ! I’ve just ordered a mobile app development at codingate, they quickly found real serious and more than affordable developpers who created the thing in couple of days!!mobile – telecom and voip – web – desktop applications .
wery nice blog
thank you admin
Good article. thank you
If you want read more about 2012 year and about end of the world predicted at this year, you can do this here
http://2012earth.net/planet_nibiru_2012.html
your article is very amazing ,and i want to ask you a question : in my blog ,in the author page ,i just want to show the author’ s comment list ,how should i do .
Just use following code
$total_comments = $wpdb->get_results(“SELECT comment_date_gmt, comment_author, comment_ID, comment_post_ID, comment_author_email FROM $wpdb->comments WHERE comment_approved = ’1′ and comment_author=’author name’ and comment_type != ‘trackback’ ORDER BY comment_date_gmt DESC LIMIT 10″);
I do not believe I’ve seen this depicted that way before. You actually have cleared this up for me. Thanks!
I prefer cPanel for its ease of use, I like the fact that it’s a large, reliable and reputable company. This eases my mind about the long term potential of the product. And from my personal experience with it, it’s always worked for me and never let me down.
What do I have to change to show the comment content not the title of the article on wich is the comment.
Thanks
Recently I have been seeing this recent comments on several blogs and was wondering how they were able to do that. I thought it was a plugin or module, but now I did understand the way it is done.
Register Web Domain
Intriguing post. I have been searching for some good resources for solar panels and discovered your blog. Planning to bookmark this one!
I like the article that you shared in your blog post. I will bookmark your site.
Your article is very appealing to me.
I’ve just started off a blog, the knowledge you give on this site has aided me extremely. Thank you for all your time & work.
Great read. Thanks for the info!
Thanks for posting. Good to see that not everyone is using RSS feeds to build their blogs
I REALLY liked your post and blog! It took me a minute bit to find your site…but I bookmarked it. Would you mind if I posted a link back to your post?
I would like to say “wow” what a inspiring post. This is really great. Keep doing what you’re doing!!
Hello, this is my first time i visit here. I found so many interesting in your blog especially on how to determine the topic. keep up the good work.
Of course, what a great site and informative posts, I will add backlink – bookmark this site? Regards, Reader
Thanks for posting. Good to see that not everyone is using RSS feeds to build their blogs
This post makes a lot of sense !
I was just having a conversation over this I am glad I came across this it cleared some of the questions I had.
Awesome post. I so good to see someone taking the time to share this information
Interesting read, perhaps the best article iv’e browse today. We learn everyday cheers to you!
Hello, this is my first time i visit here. I found so many interesting in your blog especially on how to determine the topic. keep up the good work.
This post makes a lot of sense !
Good! Thank you! I always wanted to write in my site something like that. Can I take part of your post to my blog?
Intriguing post. I have been searching for some good resources for solar panels and discovered your blog. Planning to bookmark this one!
Nice post! You truly have a wonderful way of writing which I find captivating! I will definitely be bookmarking you and returning to your blog. In fact, your post reminded me about a strange thing that happened to me the other day. I’ll tell you about that later…
Good! Thank you! I always wanted to write in my site something like that. Can I take part of your post to my blog?
I would like to say “wow” what a inspiring post. This is really great. Keep doing what you’re doing!!
Interesting read, perhaps the best article iv’e browse today. We learn everyday cheers to you!
I’ve been checking your blog for a while now, seems like everyday I learn something new
Thanks
HI! First of all great article!!
I have a question though…
In stead of showing the post the comments was made in I would like to show the actual comment from the person. How do I do that?