<?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: Near Future Posts plugin</title>
	<atom:link href="http://you.arewel.com/2005/07/04/near-future-posts-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://you.arewel.com/2005/07/04/near-future-posts-plugin/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 03 Oct 2006 03:19:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: heather</title>
		<link>http://you.arewel.com/2005/07/04/near-future-posts-plugin/comment-page-1/#comment-242</link>
		<dc:creator>heather</dc:creator>
		<pubDate>Sat, 15 Oct 2005 18:12:41 +0000</pubDate>
		<guid isPermaLink="false">http://you.arewel.com/2005/07/04/near-future-posts-plugin/#comment-242</guid>
		<description>very sorry for all the comments.

i had a brainwave and realised (duh) that i could control the restriction in the templates. profusely sorry for cluttering your page! you can delete them if you like!

thank you.</description>
		<content:encoded><![CDATA[<p>very sorry for all the comments.</p>
<p>i had a brainwave and realised (duh) that i could control the restriction in the templates. profusely sorry for cluttering your page! you can delete them if you like!</p>
<p>thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: heather</title>
		<link>http://you.arewel.com/2005/07/04/near-future-posts-plugin/comment-page-1/#comment-241</link>
		<dc:creator>heather</dc:creator>
		<pubDate>Thu, 13 Oct 2005 18:23:30 +0000</pubDate>
		<guid isPermaLink="false">http://you.arewel.com/2005/07/04/near-future-posts-plugin/#comment-241</guid>
		<description>http://pastebin.com/392527</description>
		<content:encoded><![CDATA[<p><a href="http://pastebin.com/392527" rel="nofollow">http://pastebin.com/392527</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: heather</title>
		<link>http://you.arewel.com/2005/07/04/near-future-posts-plugin/comment-page-1/#comment-240</link>
		<dc:creator>heather</dc:creator>
		<pubDate>Thu, 13 Oct 2005 18:21:52 +0000</pubDate>
		<guid isPermaLink="false">http://you.arewel.com/2005/07/04/near-future-posts-plugin/#comment-240</guid>
		<description>oh dear. my third comment. i&#039;ll stop now. i just wanted to update that i think i have it in the right place now... but it&#039;s not restricting to category:

$content = preg_replace(&quot;/AND post_date_gmt post2cat.&quot;category_id in (1,2,3)&quot;, $content);

at least this does not bring up errors, but it doesn&#039;t make the future posts show up either. not sure what to try next. it looks like greek to me.

thanks for any help you have time to offer.</description>
		<content:encoded><![CDATA[<p>oh dear. my third comment. i&#8217;ll stop now. i just wanted to update that i think i have it in the right place now&#8230; but it&#8217;s not restricting to category:</p>
<p>$content = preg_replace(&#8220;/AND post_date_gmt post2cat.&#8221;category_id in (1,2,3)&#8221;, $content);</p>
<p>at least this does not bring up errors, but it doesn&#8217;t make the future posts show up either. not sure what to try next. it looks like greek to me.</p>
<p>thanks for any help you have time to offer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: heather</title>
		<link>http://you.arewel.com/2005/07/04/near-future-posts-plugin/comment-page-1/#comment-239</link>
		<dc:creator>heather</dc:creator>
		<pubDate>Thu, 13 Oct 2005 18:06:28 +0000</pubDate>
		<guid isPermaLink="false">http://you.arewel.com/2005/07/04/near-future-posts-plugin/#comment-239</guid>
		<description>(sorry my copying and pasting got messed up.) still i can&#039;t get it to work.</description>
		<content:encoded><![CDATA[<p>(sorry my copying and pasting got messed up.) still i can&#8217;t get it to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: heather</title>
		<link>http://you.arewel.com/2005/07/04/near-future-posts-plugin/comment-page-1/#comment-238</link>
		<dc:creator>heather</dc:creator>
		<pubDate>Thu, 13 Oct 2005 17:42:17 +0000</pubDate>
		<guid isPermaLink="false">http://you.arewel.com/2005/07/04/near-future-posts-plugin/#comment-238</guid>
		<description>i was looking for &quot;AND &quot;.$wpdb-&gt;post2cat.&quot;category_id in (1,2,3)&quot; in the nearfutureposts plugin... and didn&#039;t see it... (sorry i don&#039;t know SQL at all!)

i&#039;ve tried a bunch of different things... but finally i can&#039;t figure out where to put the code you paste above. the best i got were SQL errors (when it didn&#039;t break my site)...

here&#039;s one place i pasted it:

 $content = preg_replace(&quot;/AND post_date_gmt post2cat.&quot;category_id in (1, 2, 23)&quot;, $content);

which gives this error:

 SELECT DISTINCT * FROM wp_posts WHERE 1=1AND category_id in (1, 2, 23) GROUP BY wp_posts.ID ORDER BY post_date DESC LIMIT 0, 10

also:

 $content = preg_replace(&quot;/AND post_date_gmt post2cat.&quot;category_id in (1,2,3)&quot;, &quot;AND &quot;.$wpdb-&gt;post2cat.&quot;category_id in (1, 2, 23)&quot;, $content);

which gives this error:

 SELECT DISTINCT * FROM wp_posts LEFT JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) LEFT JOIN wp_categories ON (wp_post2cat.category_id = wp_categories.cat_ID) WHERE 1=1AND category_id in (1, 2, 23) GROUP BY wp_posts.ID ORDER BY post_date DESC LIMIT 0, 10

sorry to be annoying, and i respect your busy-ness..

but can you advise me on what this line should look like?

thank you!</description>
		<content:encoded><![CDATA[<p>i was looking for &#8220;AND &#8220;.$wpdb-&gt;post2cat.&#8221;category_id in (1,2,3)&#8221; in the nearfutureposts plugin&#8230; and didn&#8217;t see it&#8230; (sorry i don&#8217;t know SQL at all!)</p>
<p>i&#8217;ve tried a bunch of different things&#8230; but finally i can&#8217;t figure out where to put the code you paste above. the best i got were SQL errors (when it didn&#8217;t break my site)&#8230;</p>
<p>here&#8217;s one place i pasted it:</p>
<p> $content = preg_replace(&#8220;/AND post_date_gmt post2cat.&#8221;category_id in (1, 2, 23)&#8221;, $content);</p>
<p>which gives this error:</p>
<p> SELECT DISTINCT * FROM wp_posts WHERE 1=1AND category_id in (1, 2, 23) GROUP BY wp_posts.ID ORDER BY post_date DESC LIMIT 0, 10</p>
<p>also:</p>
<p> $content = preg_replace(&#8220;/AND post_date_gmt post2cat.&#8221;category_id in (1,2,3)&#8221;, &#8220;AND &#8220;.$wpdb-&gt;post2cat.&#8221;category_id in (1, 2, 23)&#8221;, $content);</p>
<p>which gives this error:</p>
<p> SELECT DISTINCT * FROM wp_posts LEFT JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) LEFT JOIN wp_categories ON (wp_post2cat.category_id = wp_categories.cat_ID) WHERE 1=1AND category_id in (1, 2, 23) GROUP BY wp_posts.ID ORDER BY post_date DESC LIMIT 0, 10</p>
<p>sorry to be annoying, and i respect your busy-ness..</p>
<p>but can you advise me on what this line should look like?</p>
<p>thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philo</title>
		<link>http://you.arewel.com/2005/07/04/near-future-posts-plugin/comment-page-1/#comment-237</link>
		<dc:creator>philo</dc:creator>
		<pubDate>Sun, 09 Oct 2005 13:56:28 +0000</pubDate>
		<guid isPermaLink="false">http://you.arewel.com/2005/07/04/near-future-posts-plugin/#comment-237</guid>
		<description>watch out when you copy the code, there&#039;s a space behind the last ?&gt; witch was giving me errors
remove the space and everything should work fine!</description>
		<content:encoded><![CDATA[<p>watch out when you copy the code, there&#8217;s a space behind the last ?&gt; witch was giving me errors<br />
remove the space and everything should work fine!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: site admin</title>
		<link>http://you.arewel.com/2005/07/04/near-future-posts-plugin/comment-page-1/#comment-236</link>
		<dc:creator>site admin</dc:creator>
		<pubDate>Sat, 08 Oct 2005 09:44:34 +0000</pubDate>
		<guid isPermaLink="false">http://you.arewel.com/2005/07/04/near-future-posts-plugin/#comment-236</guid>
		<description>Have you tried to modify the sql statement in the nearfutureposts plugin ?
In &lt;strong&gt;wp_near_future_posts()&lt;/strong&gt; something like....

&lt;code&gt;AND &quot;.$wpdb-&gt;post2cat.&quot;category_id in (1,2,3)&lt;/code&gt;

where you will replace the (1,2,3) with your category id&#039;s....

Should work. Not tested but....

Good luck</description>
		<content:encoded><![CDATA[<p>Have you tried to modify the sql statement in the nearfutureposts plugin ?<br />
In <strong>wp_near_future_posts()</strong> something like&#8230;.</p>
<p><code>AND ".$wpdb->post2cat."category_id in (1,2,3)</code></p>
<p>where you will replace the (1,2,3) with your category id&#8217;s&#8230;.</p>
<p>Should work. Not tested but&#8230;.</p>
<p>Good luck</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: heather</title>
		<link>http://you.arewel.com/2005/07/04/near-future-posts-plugin/comment-page-1/#comment-235</link>
		<dc:creator>heather</dc:creator>
		<pubDate>Fri, 07 Oct 2005 18:22:52 +0000</pubDate>
		<guid isPermaLink="false">http://you.arewel.com/2005/07/04/near-future-posts-plugin/#comment-235</guid>
		<description>very sorry to bother you again. i tried to figure out how to do this, and i&#039;m failing.

i want to be able restrict the nearfutureposts to only work in 2 categories. so, i tried wrapping the function in an if statement...

... &quot;if ( in_category(&#039;events&#039;) &#124;&#124; in_category(&#039;festivals&#039;)) { &quot;...

but this does not work.

do you have any advice?

i also thought about making a custom category template, but once activated, nearfuture does it on every category of course.

any advice you can offer would be great.</description>
		<content:encoded><![CDATA[<p>very sorry to bother you again. i tried to figure out how to do this, and i&#8217;m failing.</p>
<p>i want to be able restrict the nearfutureposts to only work in 2 categories. so, i tried wrapping the function in an if statement&#8230;</p>
<p>&#8230; &#8220;if ( in_category(&#8216;events&#8217;) || in_category(&#8216;festivals&#8217;)) { &#8220;&#8230;</p>
<p>but this does not work.</p>
<p>do you have any advice?</p>
<p>i also thought about making a custom category template, but once activated, nearfuture does it on every category of course.</p>
<p>any advice you can offer would be great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: site admin</title>
		<link>http://you.arewel.com/2005/07/04/near-future-posts-plugin/comment-page-1/#comment-234</link>
		<dc:creator>site admin</dc:creator>
		<pubDate>Tue, 27 Sep 2005 17:37:37 +0000</pubDate>
		<guid isPermaLink="false">http://you.arewel.com/2005/07/04/near-future-posts-plugin/#comment-234</guid>
		<description>Well, I suspended my developments for a while....(see &lt;a href=&quot;http://shani.idahocline.info&quot; rel=&quot;nofollow&quot;&gt;shani.idahocline.info&lt;/a&gt; for further information)...

But you can try to specify a &quot;starting date&quot; or a number of days per category....

Do you see what I mean ?

If not, just let me know....</description>
		<content:encoded><![CDATA[<p>Well, I suspended my developments for a while&#8230;.(see <a href="http://shani.idahocline.info" rel="nofollow">shani.idahocline.info</a> for further information)&#8230;</p>
<p>But you can try to specify a &#8220;starting date&#8221; or a number of days per category&#8230;.</p>
<p>Do you see what I mean ?</p>
<p>If not, just let me know&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: heather</title>
		<link>http://you.arewel.com/2005/07/04/near-future-posts-plugin/comment-page-1/#comment-233</link>
		<dc:creator>heather</dc:creator>
		<pubDate>Tue, 27 Sep 2005 17:14:40 +0000</pubDate>
		<guid isPermaLink="false">http://you.arewel.com/2005/07/04/near-future-posts-plugin/#comment-233</guid>
		<description>this is so close to what i&#039;m looking for. the handy events plug-in was a just a bit too complicated, since i don&#039;t need one of those little &#039;calendar views&#039;. are you continuing any work on this?

i just wonder if you can point me in the right direction to customize your plugin.

it looks like i need to restrict to work only in certain categories, and then, make the old posts disappear... I first started with: &quot;is there a way to make it so &#039;old&#039; posts don&#039;t appear?&quot;

now, i can&#039;t understand how the plugin works, but i have this funny feeling that making &#039;old&#039; posts not appear would change the behaviour across the whole site... so one would need to restrict it to only specified categories.

i was also wondering how can i change the direction, ASC or DSC. but then, i might just make custom category templates, and then have them appear in reverse order!</description>
		<content:encoded><![CDATA[<p>this is so close to what i&#8217;m looking for. the handy events plug-in was a just a bit too complicated, since i don&#8217;t need one of those little &#8216;calendar views&#8217;. are you continuing any work on this?</p>
<p>i just wonder if you can point me in the right direction to customize your plugin.</p>
<p>it looks like i need to restrict to work only in certain categories, and then, make the old posts disappear&#8230; I first started with: &#8220;is there a way to make it so &#8216;old&#8217; posts don&#8217;t appear?&#8221;</p>
<p>now, i can&#8217;t understand how the plugin works, but i have this funny feeling that making &#8216;old&#8217; posts not appear would change the behaviour across the whole site&#8230; so one would need to restrict it to only specified categories.</p>
<p>i was also wondering how can i change the direction, ASC or DSC. but then, i might just make custom category templates, and then have them appear in reverse order!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

