<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WpFunc &#187; recent commen</title>
	<atom:link href="http://www.wpfunc.com/tag/recent-commen/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wpfunc.com</link>
	<description>Awesome, Quick, Simple WordPress Functions!</description>
	<lastBuildDate>Fri, 09 Jul 2010 09:05:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Most Recent Comments! Without Any Plugin</title>
		<link>http://www.wpfunc.com/wordpress/most-recent-comments-without-any-plugin.html</link>
		<comments>http://www.wpfunc.com/wordpress/most-recent-comments-without-any-plugin.html#comments</comments>
		<pubDate>Thu, 21 Jan 2010 18:59:10 +0000</pubDate>
		<dc:creator>KaiseRCrazY</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[area]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[Functions]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[recent commen]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[Widget]]></category>
		<category><![CDATA[without plugin]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=376</guid>
		<description><![CDATA[We use plugin/widget for show most recent comments. But we can do that with a simple code. This code gives you simple recent comments feature without plugin. also with gravatar support. Paste this code into your theme where you want. All done!
Here is the code;
&#60;?php
$query = &#34;SELECT * from $wpdb-&#62;comments WHERE comment_approved= '1'
ORDER BY comment_date [...]<hr /><div style="text-align:center;">
<a href="http://aweber.com/?339698" title="Email Marketing">
<img src="http://www.aweber.com/banners/email_marketing/468x60_an.gif" alt="Email Marketing $19/Month!" style="border:none;" /></a>
</div><hr />


Related posts:<ol><li><a href='http://www.wpfunc.com/wordpress/how-to-add-numbers-into-comments.html' rel='bookmark' title='Permanent Link: How to Add Numbers Into Comments'>How to Add Numbers Into Comments</a></li>
<li><a href='http://www.wpfunc.com/wordpress/popular-posts-without-any-plugin.html' rel='bookmark' title='Permanent Link: Popular Posts, Without any Plugin!'>Popular Posts, Without any Plugin!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/highlight-the-author-comments.html' rel='bookmark' title='Permanent Link: Highlight the Author Comments!'>Highlight the Author Comments!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">We use plugin/widget for show most recent comments. But we can do that with a simple code. This code gives you simple recent comments feature without plugin. also with gravatar support. Paste this code into your theme where you want. All done!<span id="more-376"></span></p>
<h3>Here is the code;</h3>
<pre class="brush: php;">&lt;?php
$query = &quot;SELECT * from $wpdb-&gt;comments WHERE comment_approved= '1'
ORDER BY comment_date DESC LIMIT 0 ,5&quot;;
$comments = $wpdb-&gt;get_results($query);

if ($comments) {
    echo '&lt;ul&gt;';
    foreach ($comments as $comment) {
        $url = '&lt;a href=&quot;'. get_permalink($comment-&gt;comment_post_ID).'#comment-'.$comment-&gt;comment_ID .'&quot; title=&quot;'.$comment-&gt;comment_author .' | '.get_the_title($comment-&gt;comment_post_ID).'&quot;&gt;';
        echo '&lt;li&gt;';
        echo '&lt;div class=&quot;img&quot;&gt;';
        echo $url;
        echo get_avatar( $comment-&gt;comment_author_email, $img_w);
        echo '&lt;/a&gt;&lt;/div&gt;';

        echo '&lt;div class=&quot;txt&quot;&gt;Par: ';
        echo $url;
        echo $comment-&gt;comment_author;
        echo '&lt;/a&gt;&lt;/div&gt;';
        echo '&lt;/li&gt;';
    }
    echo '&lt;/ul&gt;';
}
?&gt;
</pre>
<p>This code shows 5 recent comment. If you change &#8220;<span style="color: #ff0000;"><strong>5</strong></span>&#8221; in line two, you can display more comment or less&#8230;</p>
<a rel='nofollow' target='_blank'  href='http://delicious.com/post?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fmost-recent-comments-without-any-plugin.html&amp;title=Most%20Recent%20Comments%21%20Without%20Any%20Plugin&amp;notes=We%20use%20plugin%2Fwidget%20for%20show%20most%20recent%20comments.%20But%20we%20can%20do%20that%20with%20a%20simple%20code.%20This%20code%20gives%20you%20simple%20recent%20comments%20feature%20without%20plugin.%20also%20with%20gravatar%20support.%20Paste%20this%20code%20into%20your%20theme%20where%20you%20want.%20All%20done%21%0D%0A%0D%0AHer'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/delicious.png' class='sociable-img sociable-hovers ' title='del.icio.us' alt='del.icio.us' /></a><a rel='nofollow' target='_blank'  href='http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fmost-recent-comments-without-any-plugin.html&amp;title=Most%20Recent%20Comments%21%20Without%20Any%20Plugin&amp;bodytext=We%20use%20plugin%2Fwidget%20for%20show%20most%20recent%20comments.%20But%20we%20can%20do%20that%20with%20a%20simple%20code.%20This%20code%20gives%20you%20simple%20recent%20comments%20feature%20without%20plugin.%20also%20with%20gravatar%20support.%20Paste%20this%20code%20into%20your%20theme%20where%20you%20want.%20All%20done%21%0D%0A%0D%0AHer'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/digg.png' class='sociable-img sociable-hovers ' title='Digg' alt='Digg' /></a><a rel='nofollow' target='_blank'  href='http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fmost-recent-comments-without-any-plugin.html&amp;t=Most%20Recent%20Comments%21%20Without%20Any%20Plugin'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/facebook.png' class='sociable-img sociable-hovers ' title='Facebook' alt='Facebook' /></a><a rel='nofollow' target='_blank'  href='http://www.friendfeed.com/share?title=Most%20Recent%20Comments%21%20Without%20Any%20Plugin&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fmost-recent-comments-without-any-plugin.html'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/friendfeed.png' class='sociable-img sociable-hovers ' title='FriendFeed' alt='FriendFeed' /></a><a rel='nofollow' target='_blank'  href='http://reddit.com/submit?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fmost-recent-comments-without-any-plugin.html&amp;title=Most%20Recent%20Comments%21%20Without%20Any%20Plugin'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/reddit.png' class='sociable-img sociable-hovers ' title='Reddit' alt='Reddit' /></a><a rel='nofollow' target='_blank'  href='http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fmost-recent-comments-without-any-plugin.html&amp;title=Most%20Recent%20Comments%21%20Without%20Any%20Plugin'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png' class='sociable-img sociable-hovers ' title='StumbleUpon' alt='StumbleUpon' /></a><a rel='nofollow' target='_blank'  href='http://technorati.com/faves?add=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fmost-recent-comments-without-any-plugin.html'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/technorati.png' class='sociable-img sociable-hovers ' title='Technorati' alt='Technorati' /></a><a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fmost-recent-comments-without-any-plugin.html&amp;partner=sociable'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/pdf.png' class='sociable-img sociable-hovers ' title='PDF' alt='PDF' /></a><a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fmost-recent-comments-without-any-plugin.html&amp;partner=sociable'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/printfriendly.png' class='sociable-img sociable-hovers ' title='Print' alt='Print' /></a><br/><br/>

<p>Related posts:<ol><li><a href='http://www.wpfunc.com/wordpress/how-to-add-numbers-into-comments.html' rel='bookmark' title='Permanent Link: How to Add Numbers Into Comments'>How to Add Numbers Into Comments</a></li>
<li><a href='http://www.wpfunc.com/wordpress/popular-posts-without-any-plugin.html' rel='bookmark' title='Permanent Link: Popular Posts, Without any Plugin!'>Popular Posts, Without any Plugin!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/highlight-the-author-comments.html' rel='bookmark' title='Permanent Link: Highlight the Author Comments!'>Highlight the Author Comments!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/most-recent-comments-without-any-plugin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
