<?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; area</title>
	<atom:link href="http://wpfunc.com/tag/area/feed" rel="self" type="application/rss+xml" />
	<link>http://wpfunc.com</link>
	<description>Awesome, Quick, Simple WordPress Functions!</description>
	<lastBuildDate>Thu, 01 Dec 2011 01:17:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</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://wpfunc.com/wordpress/most-recent-comments-without-any-plugin.html</link>
		<comments>http://wpfunc.com/wordpress/most-recent-comments-without-any-plugin.html#comments</comments>
		<pubDate>Thu, 21 Jan 2010 18:59:10 +0000</pubDate>
		<dc:creator></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;
This code shows 5 recent comment. If you change &#8220;5&#8221; in [...]]]></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; title: ; notranslate">&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>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/most-recent-comments-without-any-plugin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

