<?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"
	>
<channel>
	<title>Comments on: Wordpress: Fixing Wordpress 2.5 Child Link System</title>
	<atom:link href="http://returntrue.natural-tys.com/2008/03/31/wordpress-fixing-wordpress-25-child-link-system/feed/" rel="self" type="application/rss+xml" />
	<link>http://returntrue.natural-tys.com/2008/03/31/wordpress-fixing-wordpress-25-child-link-system/</link>
	<description>Arrrgh! Code?!#@</description>
	<pubDate>Fri, 04 Jul 2008 05:51:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Veneficus Unus</title>
		<link>http://returntrue.natural-tys.com/2008/03/31/wordpress-fixing-wordpress-25-child-link-system/#comment-646</link>
		<dc:creator>Veneficus Unus</dc:creator>
		<pubDate>Sat, 31 May 2008 16:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://returntrue.natural-tys.com/?p=48#comment-646</guid>
		<description>Thanks. :)</description>
		<content:encoded><![CDATA[<p>Thanks. <img src='http://returntrue.natural-tys.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary Olson</title>
		<link>http://returntrue.natural-tys.com/2008/03/31/wordpress-fixing-wordpress-25-child-link-system/#comment-644</link>
		<dc:creator>Gary Olson</dc:creator>
		<pubDate>Sat, 31 May 2008 15:35:19 +0000</pubDate>
		<guid isPermaLink="false">http://returntrue.natural-tys.com/?p=48#comment-644</guid>
		<description>Great Job Here...I enjoyed it..! Gary</description>
		<content:encoded><![CDATA[<p>Great Job Here&#8230;I enjoyed it..! Gary</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Veneficus Unus</title>
		<link>http://returntrue.natural-tys.com/2008/03/31/wordpress-fixing-wordpress-25-child-link-system/#comment-438</link>
		<dc:creator>Veneficus Unus</dc:creator>
		<pubDate>Tue, 13 May 2008 10:06:31 +0000</pubDate>
		<guid isPermaLink="false">http://returntrue.natural-tys.com/?p=48#comment-438</guid>
		<description>No problem Tim. ;)</description>
		<content:encoded><![CDATA[<p>No problem Tim. <img src='http://returntrue.natural-tys.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://returntrue.natural-tys.com/2008/03/31/wordpress-fixing-wordpress-25-child-link-system/#comment-431</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Mon, 12 May 2008 15:49:18 +0000</pubDate>
		<guid isPermaLink="false">http://returntrue.natural-tys.com/?p=48#comment-431</guid>
		<description>Thanks heaps for this!  Worked a treat :)</description>
		<content:encoded><![CDATA[<p>Thanks heaps for this!  Worked a treat <img src='http://returntrue.natural-tys.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Veneficus Unus</title>
		<link>http://returntrue.natural-tys.com/2008/03/31/wordpress-fixing-wordpress-25-child-link-system/#comment-181</link>
		<dc:creator>Veneficus Unus</dc:creator>
		<pubDate>Thu, 10 Apr 2008 16:13:28 +0000</pubDate>
		<guid isPermaLink="false">http://returntrue.natural-tys.com/?p=48#comment-181</guid>
		<description>No worries. :)</description>
		<content:encoded><![CDATA[<p>No worries. <img src='http://returntrue.natural-tys.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan</title>
		<link>http://returntrue.natural-tys.com/2008/03/31/wordpress-fixing-wordpress-25-child-link-system/#comment-179</link>
		<dc:creator>Johan</dc:creator>
		<pubDate>Thu, 10 Apr 2008 15:30:02 +0000</pubDate>
		<guid isPermaLink="false">http://returntrue.natural-tys.com/?p=48#comment-179</guid>
		<description>It works! It works!  Thanks so much for your time and patience.  =)</description>
		<content:encoded><![CDATA[<p>It works! It works!  Thanks so much for your time and patience.  =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Veneficus Unus</title>
		<link>http://returntrue.natural-tys.com/2008/03/31/wordpress-fixing-wordpress-25-child-link-system/#comment-176</link>
		<dc:creator>Veneficus Unus</dc:creator>
		<pubDate>Thu, 10 Apr 2008 09:13:54 +0000</pubDate>
		<guid isPermaLink="false">http://returntrue.natural-tys.com/?p=48#comment-176</guid>
		<description>@Johan: Ok so I think I know what you need to do. Thanks for using a txt file. I'll have to look into why WP kept executing the code, the &#60;pre&#62; tags should have stopped it.

Anyway find the code in your txt file that looks like this:
&lt;pre lang="php" line="1"&gt;
$aSubPages = get_page_children($id, '');
&lt;/pre&gt;
and replace it with this:
&lt;pre lang="php" line="1"&gt;
$pages = $wpdb-&gt;get_results( $wpdb-&gt;prepare( "SELECT * FROM $wpdb-&gt;posts WHERE post_type = 'page'" ) );
$aSubPages = get_page_children($id, $pages);
&lt;/pre&gt;

Hopefully that should work. If not give me another shout and I'll see if I can find another problem. ;)</description>
		<content:encoded><![CDATA[<p>@Johan: Ok so I think I know what you need to do. Thanks for using a txt file. I&#8217;ll have to look into why WP kept executing the code, the &lt;pre&gt; tags should have stopped it.</p>
<p>Anyway find the code in your txt file that looks like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php"><span style="color: #ff0000">$aSubPages</span> <span style="color: #66cc66;">=</span> get_page_children<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000">$id</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">''</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">;</span></pre></td></tr></table></div>

<p>and replace it with this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="php"><span style="color: #ff0000">$pages</span> <span style="color: #66cc66;">=</span> <span style="color: #ff0000">$wpdb</span><span style="color: #66cc66;">-&gt;</span><span style="color: #006600;">get_results</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000">$wpdb</span><span style="color: #66cc66;">-&gt;</span><span style="color: #006600;">prepare</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">&quot;SELECT * FROM $wpdb-&gt;posts WHERE post_type = 'page'&quot;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">;</span>
<span style="color: #ff0000">$aSubPages</span> <span style="color: #66cc66;">=</span> get_page_children<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000">$id</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000">$pages</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">;</span></pre></td></tr></table></div>

<p>Hopefully that should work. If not give me another shout and I&#8217;ll see if I can find another problem. <img src='http://returntrue.natural-tys.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan</title>
		<link>http://returntrue.natural-tys.com/2008/03/31/wordpress-fixing-wordpress-25-child-link-system/#comment-174</link>
		<dc:creator>Johan</dc:creator>
		<pubDate>Thu, 10 Apr 2008 03:23:53 +0000</pubDate>
		<guid isPermaLink="false">http://returntrue.natural-tys.com/?p=48#comment-174</guid>
		<description>Seems WP wants to execute some of the code in the template even using the  tags.  Here's a &lt;a href="http://tulip.bu.ac.th/~johan.v/page.txt" rel="nofollow"&gt;link&lt;/a&gt; to a txt file with my code in it.</description>
		<content:encoded><![CDATA[<p>Seems WP wants to execute some of the code in the template even using the  tags.  Here&#8217;s a <a href="http://tulip.bu.ac.th/~johan.v/page.txt" rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/tulip.bu.ac.th/_johan.v/page.txt?referer=');">link</a> to a txt file with my code in it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan</title>
		<link>http://returntrue.natural-tys.com/2008/03/31/wordpress-fixing-wordpress-25-child-link-system/#comment-160</link>
		<dc:creator>Johan</dc:creator>
		<pubDate>Wed, 09 Apr 2008 14:52:45 +0000</pubDate>
		<guid isPermaLink="false">http://returntrue.natural-tys.com/?p=48#comment-160</guid>
		<description>I’m glad it worked for Matt… but it seems mine is still broken. Here is the full code for the page.php file. Maybe my theme is doing something weird… thanks again for the help! (Again, sorry for the multiple postings...)

&lt;em&gt;&lt;strong&gt;Veneficus Unus:&lt;/strong&gt;&lt;/em&gt; &lt;em&gt;Sorry but half the code went missing. Could you please post code in tags like this &#60;pre lang="php" line="1"&#62; and &#60;/pre&#62; thank you.&lt;/em&gt;</description>
		<content:encoded><![CDATA[<p>I’m glad it worked for Matt… but it seems mine is still broken. Here is the full code for the page.php file. Maybe my theme is doing something weird… thanks again for the help! (Again, sorry for the multiple postings&#8230;)</p>
<p><em><strong>Veneficus Unus:</strong></em> <em>Sorry but half the code went missing. Could you please post code in tags like this &lt;pre lang=&#8221;php&#8221; line=&#8221;1&#8243;&gt; and &lt;/pre&gt; thank you.</em></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Veneficus Unus</title>
		<link>http://returntrue.natural-tys.com/2008/03/31/wordpress-fixing-wordpress-25-child-link-system/#comment-152</link>
		<dc:creator>Veneficus Unus</dc:creator>
		<pubDate>Wed, 09 Apr 2008 12:29:32 +0000</pubDate>
		<guid isPermaLink="false">http://returntrue.natural-tys.com/?p=48#comment-152</guid>
		<description>Hey Ross,

It's actually very close but your code should look like this:
&lt;pre lang="php" line="1"&gt;
$pages = $wpdb-&gt;get_results( $wpdb-&gt;prepare( "SELECT * FROM $wpdb-&gt;posts WHERE post_type = 'page'" ) );
		$aSubPages = get_page_children($id, $pages);
		if (count($aSubPages) &gt; 0) :
 
?&gt;
&lt;/pre&gt;

Hope that works for you. ;)</description>
		<content:encoded><![CDATA[<p>Hey Ross,</p>
<p>It&#8217;s actually very close but your code should look like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php"><span style="color: #ff0000">$pages</span> <span style="color: #66cc66;">=</span> <span style="color: #ff0000">$wpdb</span><span style="color: #66cc66;">-&gt;</span><span style="color: #006600;">get_results</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000">$wpdb</span><span style="color: #66cc66;">-&gt;</span><span style="color: #006600;">prepare</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">&quot;SELECT * FROM $wpdb-&gt;posts WHERE post_type = 'page'&quot;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">;</span>
		<span style="color: #ff0000">$aSubPages</span> <span style="color: #66cc66;">=</span> get_page_children<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000">$id</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000">$pages</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000066;">count</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000">$aSubPages</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">:</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Hope that works for you. <img src='http://returntrue.natural-tys.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>
