<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to List most recent comments and recent post on your wordpress themes</title>
	<atom:link href="http://www.narga.net/how-to-list-most-recent-comments-and-recent-post-on-your-wordpress-themes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.narga.net/how-to-list-most-recent-comments-and-recent-post-on-your-wordpress-themes/</link>
	<description>The internet reviews</description>
	<lastBuildDate>Tue, 27 Jul 2010 13:30:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: hans müller</title>
		<link>http://www.narga.net/how-to-list-most-recent-comments-and-recent-post-on-your-wordpress-themes/comment-page-1/#comment-4016</link>
		<dc:creator>hans müller</dc:creator>
		<pubDate>Fri, 23 Jul 2010 07:38:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.narga.net/?p=1319#comment-4016</guid>
		<description>very good</description>
		<content:encoded><![CDATA[<p>very good</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Otomasyon</title>
		<link>http://www.narga.net/how-to-list-most-recent-comments-and-recent-post-on-your-wordpress-themes/comment-page-1/#comment-3296</link>
		<dc:creator>Otomasyon</dc:creator>
		<pubDate>Thu, 20 May 2010 10:27:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.narga.net/?p=1319#comment-3296</guid>
		<description>Hey interesting article and nice site you have</description>
		<content:encoded><![CDATA[<p>Hey interesting article and nice site you have</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sac ekim</title>
		<link>http://www.narga.net/how-to-list-most-recent-comments-and-recent-post-on-your-wordpress-themes/comment-page-1/#comment-3295</link>
		<dc:creator>Sac ekim</dc:creator>
		<pubDate>Wed, 19 May 2010 13:23:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.narga.net/?p=1319#comment-3295</guid>
		<description>good article very interesent</description>
		<content:encoded><![CDATA[<p>good article very interesent</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.narga.net/how-to-list-most-recent-comments-and-recent-post-on-your-wordpress-themes/comment-page-1/#comment-3290</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 11 May 2010 04:00:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.narga.net/?p=1319#comment-3290</guid>
		<description>Great piece of code.  Thanks.

How could I modify this to call a specific post and show the comments from that post only?</description>
		<content:encoded><![CDATA[<p>Great piece of code.  Thanks.</p>
<p>How could I modify this to call a specific post and show the comments from that post only?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Narga</title>
		<link>http://www.narga.net/how-to-list-most-recent-comments-and-recent-post-on-your-wordpress-themes/comment-page-1/#comment-3283</link>
		<dc:creator>Narga</dc:creator>
		<pubDate>Thu, 22 Apr 2010 15:53:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.narga.net/?p=1319#comment-3283</guid>
		<description>The output content in HTML format, you can style the ul list as you want by CSS</description>
		<content:encoded><![CDATA[<p>The output content in HTML format, you can style the ul list as you want by CSS</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sac ektirme</title>
		<link>http://www.narga.net/how-to-list-most-recent-comments-and-recent-post-on-your-wordpress-themes/comment-page-1/#comment-3281</link>
		<dc:creator>Sac ektirme</dc:creator>
		<pubDate>Thu, 22 Apr 2010 14:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.narga.net/?p=1319#comment-3281</guid>
		<description>However, as you can see, the comments are NOT in the desired output. I want JUST ONE COMMENT PER LINE. Please guide me on the subject. Just for info, I am a journalist and not a techie.</description>
		<content:encoded><![CDATA[<p>However, as you can see, the comments are NOT in the desired output. I want JUST ONE COMMENT PER LINE. Please guide me on the subject. Just for info, I am a journalist and not a techie.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Narga</title>
		<link>http://www.narga.net/how-to-list-most-recent-comments-and-recent-post-on-your-wordpress-themes/comment-page-1/#comment-3277</link>
		<dc:creator>Narga</dc:creator>
		<pubDate>Wed, 14 Apr 2010 17:04:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.narga.net/?p=1319#comment-3277</guid>
		<description>You can edit the valua 30 in this string to whatever you want :)
[code lang=&quot;sql&quot;]SUBSTRING(comment_content,1,30)[/code]</description>
		<content:encoded><![CDATA[<p>You can edit the valua 30 in this string to whatever you want <img src='http://www.narga.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre class="brush: sql;">SUBSTRING(comment_content,1,30)</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake</title>
		<link>http://www.narga.net/how-to-list-most-recent-comments-and-recent-post-on-your-wordpress-themes/comment-page-1/#comment-3276</link>
		<dc:creator>Jake</dc:creator>
		<pubDate>Tue, 13 Apr 2010 21:09:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.narga.net/?p=1319#comment-3276</guid>
		<description>How do you display more content of the comments?</description>
		<content:encoded><![CDATA[<p>How do you display more content of the comments?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clouseau</title>
		<link>http://www.narga.net/how-to-list-most-recent-comments-and-recent-post-on-your-wordpress-themes/comment-page-1/#comment-3270</link>
		<dc:creator>Clouseau</dc:creator>
		<pubDate>Fri, 02 Apr 2010 12:02:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.narga.net/?p=1319#comment-3270</guid>
		<description>Thank you very much, you made our day!

PS: in the code above, the  fell off, but in the email notification it was there...</description>
		<content:encoded><![CDATA[<p>Thank you very much, you made our day!</p>
<p>PS: in the code above, the  fell off, but in the email notification it was there&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Narga</title>
		<link>http://www.narga.net/how-to-list-most-recent-comments-and-recent-post-on-your-wordpress-themes/comment-page-1/#comment-3269</link>
		<dc:creator>Narga</dc:creator>
		<pubDate>Fri, 02 Apr 2010 10:05:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.narga.net/?p=1319#comment-3269</guid>
		<description>You can use the snippet below:
[php]	&lt;?php global $wpdb;
	$sql = &quot;SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type,comment_author_url, SUBSTRING(comment_content,1,30) AS com_excerpt FROM $wpdb-&gt;comments LEFT OUTER JOIN $wpdb-&gt;posts ON ($wpdb-&gt;comments.comment_post_ID = $wpdb-&gt;posts.ID) WHERE comment_approved = &#039;1&#039; AND comment_type = &#039;&#039; AND post_password = &#039;&#039; ORDER BY comment_date_gmt DESC LIMIT 10&quot;;
	$comments = $wpdb-&gt;get_results($sql);
	$output = $pre_HTML;
	$output .= &quot;\n&lt;ul&gt;&quot;;
	foreach ($comments as $comment) {
	$output .= &quot;\n&lt;li&gt;&quot;.strip_tags($comment-&gt;comment_author) .&quot; on &lt;a href=\&quot;&quot; . get_permalink($comment-&gt;ID).&quot;#comment-&quot; . $comment-&gt;comment_ID . &quot;\&quot; rel=\&quot;nofollow\&quot; title=\&quot;on &quot;.$comment-&gt;post_title . &quot;\&quot;&gt;&quot;.$comment-&gt;post_title .&quot;&lt;/a&gt; : &quot; . strip_tags($comment-&gt;com_excerpt).&quot;...&lt;/li&gt;&quot;;}
	$output .= &quot;\n&lt;/ul&gt;&quot;;
	$output .= $post_HTML;
	echo $output; ?&gt;
[/php]
Have fun!</description>
		<content:encoded><![CDATA[<p>You can use the snippet below:</p>
<pre class="brush: php;">	&lt;?php global $wpdb;
	$sql = &quot;SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type,comment_author_url, SUBSTRING(comment_content,1,30) AS com_excerpt FROM $wpdb-&gt;comments LEFT OUTER JOIN $wpdb-&gt;posts ON ($wpdb-&gt;comments.comment_post_ID = $wpdb-&gt;posts.ID) WHERE comment_approved = '1' AND comment_type = '' AND post_password = '' ORDER BY comment_date_gmt DESC LIMIT 10&quot;;
	$comments = $wpdb-&gt;get_results($sql);
	$output = $pre_HTML;
	$output .= &quot;\n&lt;ul&gt;&quot;;
	foreach ($comments as $comment) {
	$output .= &quot;\n&lt;li&gt;&quot;.strip_tags($comment-&gt;comment_author) .&quot; on &lt;a href=\&quot;&quot; . get_permalink($comment-&gt;ID).&quot;#comment-&quot; . $comment-&gt;comment_ID . &quot;\&quot; rel=\&quot;nofollow\&quot; title=\&quot;on &quot;.$comment-&gt;post_title . &quot;\&quot;&gt;&quot;.$comment-&gt;post_title .&quot;&lt;/a&gt; : &quot; . strip_tags($comment-&gt;com_excerpt).&quot;...&lt;/li&gt;&quot;;}
	$output .= &quot;\n&lt;/ul&gt;&quot;;
	$output .= $post_HTML;
	echo $output; ?&gt;
</pre>
<p>Have fun!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
