<?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 2.6 Issue: get_posts() is Broken</title>
	<atom:link href="http://www.wplover.com/191/wordpress-26-issue-get_posts-is-broken/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wplover.com/191/wordpress-26-issue-get_posts-is-broken</link>
	<description>wordpress thingamajig</description>
	<lastBuildDate>Sat, 13 Mar 2010 00:29:08 +0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Holiday Guru</title>
		<link>http://www.wplover.com/191/wordpress-26-issue-get_posts-is-broken/comment-page-1#comment-119</link>
		<dc:creator>Holiday Guru</dc:creator>
		<pubDate>Mon, 01 Sep 2008 11:10:17 +0000</pubDate>
		<guid isPermaLink="false">http://wplover.com/?p=191#comment-119</guid>
		<description>There is a behaviour chaneg in get_posts() but not sure if its intended! It grabs ALL posts now and you have to manually work out if the post is one you want. I set up a sidebar to display posts in the category of teh page you are on using the following code, however it isn&#039;t quite perfect because on Index and Category pages it still reads all posts in the database and uses the latest one as teh default. But it works on articles:

   		$found = 0;
		$count = 0;
		$ID = $wp_query-&gt;posts[0]-&gt;ID;
		$category = get_the_category($ID);
	  	$cat = $category[0]-&gt;cat_ID;
      	$catposts = get_posts(&#039;numberposts=999999&amp;category=$cat&#039;);
      	foreach($catposts as $post) :
			$thisID = the_ID();
			$postID = $wp_query-&gt;$thisID;
			$postCategory = get_the_category($postID);
	  		$postCat = $postCategory[0]-&gt;cat_ID;
			if ($postCat == $cat &amp;&amp; $count
   &lt;a href=&quot;&quot;&gt;&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>There is a behaviour chaneg in get_posts() but not sure if its intended! It grabs ALL posts now and you have to manually work out if the post is one you want. I set up a sidebar to display posts in the category of teh page you are on using the following code, however it isn&#8217;t quite perfect because on Index and Category pages it still reads all posts in the database and uses the latest one as teh default. But it works on articles:</p>
<p>   		$found = 0;<br />
		$count = 0;<br />
		$ID = $wp_query-&gt;posts[0]-&gt;ID;<br />
		$category = get_the_category($ID);<br />
	  	$cat = $category[0]-&gt;cat_ID;<br />
      	$catposts = get_posts(&#8216;numberposts=999999&amp;category=$cat&#8217;);<br />
      	foreach($catposts as $post) :<br />
			$thisID = the_ID();<br />
			$postID = $wp_query-&gt;$thisID;<br />
			$postCategory = get_the_category($postID);<br />
	  		$postCat = $postCategory[0]-&gt;cat_ID;<br />
			if ($postCat == $cat &amp;&amp; $count<br />
   &lt;a href=&#8221;"&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WordPress 2.6 bugs and fixes &#124; WordPress Philippines</title>
		<link>http://www.wplover.com/191/wordpress-26-issue-get_posts-is-broken/comment-page-1#comment-121</link>
		<dc:creator>WordPress 2.6 bugs and fixes &#124; WordPress Philippines</dc:creator>
		<pubDate>Mon, 28 Jul 2008 08:49:23 +0000</pubDate>
		<guid isPermaLink="false">http://wplover.com/?p=191#comment-121</guid>
		<description>[...] you have a custom theme that uses multiple loops, chances are it uses get_posts. Unfortunately there are several problems with the function in this version, so you might be better off using [...]</description>
		<content:encoded><![CDATA[<p>[...] you have a custom theme that uses multiple loops, chances are it uses get_posts. Unfortunately there are several problems with the function in this version, so you might be better off using [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Issues met WordPress 2.6 &#124; Myweb-Blog.nl</title>
		<link>http://www.wplover.com/191/wordpress-26-issue-get_posts-is-broken/comment-page-1#comment-120</link>
		<dc:creator>Issues met WordPress 2.6 &#124; Myweb-Blog.nl</dc:creator>
		<pubDate>Sun, 27 Jul 2008 20:38:01 +0000</pubDate>
		<guid isPermaLink="false">http://wplover.com/?p=191#comment-120</guid>
		<description>[...] de tweede bug werd door Dan Philibin van WP Candy (meer info hier) en gaat om het get_posts() php commando. Een oplossing is nog niet bekend voor zover mij [...]</description>
		<content:encoded><![CDATA[<p>[...] de tweede bug werd door Dan Philibin van WP Candy (meer info hier) en gaat om het get_posts() php commando. Een oplossing is nog niet bekend voor zover mij [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The State of WordPress&#8217;s Upgrade Cycle :: WPLover</title>
		<link>http://www.wplover.com/191/wordpress-26-issue-get_posts-is-broken/comment-page-1#comment-118</link>
		<dc:creator>The State of WordPress&#8217;s Upgrade Cycle :: WPLover</dc:creator>
		<pubDate>Sun, 27 Jul 2008 00:35:19 +0000</pubDate>
		<guid isPermaLink="false">http://wplover.com/?p=191#comment-118</guid>
		<description>[...] case you&#8217;ve forgotten, the 2.6 release also brought at least two different errors: get_posts() and Permalink with &#8220;index.php&#8221; [...]</description>
		<content:encoded><![CDATA[<p>[...] case you&#8217;ve forgotten, the 2.6 release also brought at least two different errors: get_posts() and Permalink with &#8220;index.php&#8221; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Issues met WordPress 2.6 : I-Dimensie</title>
		<link>http://www.wplover.com/191/wordpress-26-issue-get_posts-is-broken/comment-page-1#comment-123</link>
		<dc:creator>Issues met WordPress 2.6 : I-Dimensie</dc:creator>
		<pubDate>Thu, 17 Jul 2008 19:09:11 +0000</pubDate>
		<guid isPermaLink="false">http://wplover.com/?p=191#comment-123</guid>
		<description>[...] de tweede bug werd door Dan Philibin van WP Candy (meer info hier) en gaat om het&#160; get_posts() php commando. Een oplossing is nog niet bekend voor zover mij [...]</description>
		<content:encoded><![CDATA[<p>[...] de tweede bug werd door Dan Philibin van WP Candy (meer info hier) en gaat om het&nbsp; get_posts() php commando. Een oplossing is nog niet bekend voor zover mij [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WordPress 2.6 is beschikbaar : I-Dimensie</title>
		<link>http://www.wplover.com/191/wordpress-26-issue-get_posts-is-broken/comment-page-1#comment-122</link>
		<dc:creator>WordPress 2.6 is beschikbaar : I-Dimensie</dc:creator>
		<pubDate>Wed, 16 Jul 2008 09:09:50 +0000</pubDate>
		<guid isPermaLink="false">http://wplover.com/?p=191#comment-122</guid>
		<description>[...] de tweede bug werd door Dan Philibin van WP Candy (meer info hier) en gaat om het&#160; get_posts() php commando. Een oplossing is nog niet bekend voor zover mij [...]</description>
		<content:encoded><![CDATA[<p>[...] de tweede bug werd door Dan Philibin van WP Candy (meer info hier) en gaat om het&nbsp; get_posts() php commando. Een oplossing is nog niet bekend voor zover mij [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
