<?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: WordPress Loops and Del.icio.us News</title>
	<atom:link href="http://www.blogherald.com/2006/07/12/wordpress-loops-and-delicious-news/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blogherald.com/2006/07/12/wordpress-loops-and-delicious-news/</link>
	<description>The leading source of news covering social media and the blogosphere.</description>
	<lastBuildDate>Mon, 13 Feb 2012 07:27:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: raj</title>
		<link>http://www.blogherald.com/2006/07/12/wordpress-loops-and-delicious-news/comment-page-1/#comment-103905</link>
		<dc:creator>raj</dc:creator>
		<pubDate>Sat, 15 Jul 2006 05:01:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogherald.com/2006/07/12/wordpress-loops-and-delicious-news/#comment-103905</guid>
		<description>Aaron, I&#039;m pretty sure it can be done. However, you&#039;ll probably need to do an SQL &quot;join&quot; which mySQL does not support.

Here&#039;s the general algorithm:

(1) Query for all comments posted, in reverse chron order, GROUPed and ORDERed BY post id (unique) where comment posting date is between such and such a date (your choice).
(2) Now use a PHP foreach loop to go through the array (still in reverse chronological order) and print out the title of each of the most recently commented posts.

But now that I think of it, it&#039;s very possible that step (1) cannot give you the associate post ids. If that&#039;s the case (I&#039;ll have to look at the WP database structure), then try this:

(1) Grab all the comments in reverse chron order, posted within a certain date range, say one week. You&#039;ll either need to play with the date function to pull this off, or you have to filter them programmatically in the next step (as opposed to pulling them out in mySQL code).

(2) Foreach comment, pull it&#039;s associated post&#039;s id into a hash table. Use a hash so that the same id isn&#039;t stored twice if the post has more than one comment. With each post id, save the date of only the most recent comment.

(3) Sort the hash table in reverse chron order, by comment date. Print out the list of titles.

If I&#039;ve understood you correctly, that should do it. If I have the time, I&#039;ll see if I can&#039;t actually code it and post it on my &quot;Wordpress light coding&quot; site (and let you know here when it&#039;s done).</description>
		<content:encoded><![CDATA[<p>Aaron, I&#8217;m pretty sure it can be done. However, you&#8217;ll probably need to do an SQL &#8220;join&#8221; which mySQL does not support.</p>
<p>Here&#8217;s the general algorithm:</p>
<p>(1) Query for all comments posted, in reverse chron order, GROUPed and ORDERed BY post id (unique) where comment posting date is between such and such a date (your choice).<br />
(2) Now use a PHP foreach loop to go through the array (still in reverse chronological order) and print out the title of each of the most recently commented posts.</p>
<p>But now that I think of it, it&#8217;s very possible that step (1) cannot give you the associate post ids. If that&#8217;s the case (I&#8217;ll have to look at the WP database structure), then try this:</p>
<p>(1) Grab all the comments in reverse chron order, posted within a certain date range, say one week. You&#8217;ll either need to play with the date function to pull this off, or you have to filter them programmatically in the next step (as opposed to pulling them out in mySQL code).</p>
<p>(2) Foreach comment, pull it&#8217;s associated post&#8217;s id into a hash table. Use a hash so that the same id isn&#8217;t stored twice if the post has more than one comment. With each post id, save the date of only the most recent comment.</p>
<p>(3) Sort the hash table in reverse chron order, by comment date. Print out the list of titles.</p>
<p>If I&#8217;ve understood you correctly, that should do it. If I have the time, I&#8217;ll see if I can&#8217;t actually code it and post it on my &#8220;WordPress light coding&#8221; site (and let you know here when it&#8217;s done).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris P.</title>
		<link>http://www.blogherald.com/2006/07/12/wordpress-loops-and-delicious-news/comment-page-1/#comment-103546</link>
		<dc:creator>Chris P.</dc:creator>
		<pubDate>Thu, 13 Jul 2006 15:16:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogherald.com/2006/07/12/wordpress-loops-and-delicious-news/#comment-103546</guid>
		<description>What are you trying to accomplish? Publish it, and let&#039;s see what kind of OS solution we can come up with. Besides, I&#039;m in the mood for a challenge this morning...</description>
		<content:encoded><![CDATA[<p>What are you trying to accomplish? Publish it, and let&#8217;s see what kind of OS solution we can come up with. Besides, I&#8217;m in the mood for a challenge this morning&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Brazell</title>
		<link>http://www.blogherald.com/2006/07/12/wordpress-loops-and-delicious-news/comment-page-1/#comment-103534</link>
		<dc:creator>Aaron Brazell</dc:creator>
		<pubDate>Thu, 13 Jul 2006 13:53:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogherald.com/2006/07/12/wordpress-loops-and-delicious-news/#comment-103534</guid>
		<description>Yeah but those are all sidebar items. They don&#039;t affect The Loop.</description>
		<content:encoded><![CDATA[<p>Yeah but those are all sidebar items. They don&#8217;t affect The Loop.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michael d. pollock</title>
		<link>http://www.blogherald.com/2006/07/12/wordpress-loops-and-delicious-news/comment-page-1/#comment-103469</link>
		<dc:creator>michael d. pollock</dc:creator>
		<pubDate>Thu, 13 Jul 2006 03:17:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogherald.com/2006/07/12/wordpress-loops-and-delicious-news/#comment-103469</guid>
		<description>have you seen this yet: http://www.coffee2code.com/archives/2004/08/27/plugin-customizable-post-listings/

might be what yer lookin fer</description>
		<content:encoded><![CDATA[<p>have you seen this yet: <a href="http://www.coffee2code.com/archives/2004/08/27/plugin-customizable-post-listings/" rel="nofollow">http://www.coffee2code.com/archives/2004/08/27/plugin-customizable-post-listings/</a></p>
<p>might be what yer lookin fer</p>
]]></content:encoded>
	</item>
</channel>
</rss>

