<?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: Query Child Of $Page</title>
	<atom:link href="http://blog.ftwr.co.uk/wordpress/query-child-of-page/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ftwr.co.uk</link>
	<description>Random commentary...</description>
	<lastBuildDate>Wed, 17 Feb 2010 21:07:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0-alpha</generator>
	<item>
		<title>By: Derek Herman</title>
		<link>http://blog.ftwr.co.uk/wordpress/query-child-of-page/comment-page-9/#comment-216954</link>
		<dc:creator>Derek Herman</dc:creator>
		<pubDate>Sun, 01 Nov 2009 11:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ftwr.co.uk/wordpress/query-child-of-page/#comment-216954</guid>
		<description>Hey Westi, the more tag seems to be disabled when using this method even after you set the global $more to 0. Got any suggestions???</description>
		<content:encoded><![CDATA[<p>Hey Westi, the more tag seems to be disabled when using this method even after you set the global $more to 0. Got any suggestions???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: westi</title>
		<link>http://blog.ftwr.co.uk/wordpress/query-child-of-page/comment-page-9/#comment-213476</link>
		<dc:creator>westi</dc:creator>
		<pubDate>Sat, 19 Sep 2009 08:46:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ftwr.co.uk/wordpress/query-child-of-page/#comment-213476</guid>
		<description>Have you tried using the example code that is now available in the plugin download - https://plugins.svn.wordpress.org/pjw-query-child-of/tags/1.10/page-templates/page-with-grandchildren.phps

This lists all the grandchildren of the current post and could be enhanced to display info about the children as well.

It could also be enhanced to show all descendants.</description>
		<content:encoded><![CDATA[<p>Have you tried using the example code that is now available in the plugin download &#8211; <a href="https://plugins.svn.wordpress.org/pjw-query-child-of/tags/1.10/page-templates/page-with-grandchildren.phps" rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/plugins.svn.wordpress.org/pjw-query-child-of/tags/1.10/page-templates/page-with-grandchildren.phps?referer=');">https://plugins.svn.wordpress.org/pjw-query-child-of/tags/1.10/page-templates/page-with-grandchildren.phps</a></p>
<p>This lists all the grandchildren of the current post and could be enhanced to display info about the children as well.</p>
<p>It could also be enhanced to show all descendants.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://blog.ftwr.co.uk/wordpress/query-child-of-page/comment-page-9/#comment-213026</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Sat, 12 Sep 2009 05:00:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ftwr.co.uk/wordpress/query-child-of-page/#comment-213026</guid>
		<description>You talk about showing grandchildren but it doesn&#039;t seem to really do that. I want to have a  showing ALL items and sub items. So children of children don&#039;t show, how do i get them to show?</description>
		<content:encoded><![CDATA[<p>You talk about showing grandchildren but it doesn&#8217;t seem to really do that. I want to have a  showing ALL items and sub items. So children of children don&#8217;t show, how do i get them to show?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnii</title>
		<link>http://blog.ftwr.co.uk/wordpress/query-child-of-page/comment-page-9/#comment-207168</link>
		<dc:creator>Arnii</dc:creator>
		<pubDate>Thu, 16 Jul 2009 10:48:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ftwr.co.uk/wordpress/query-child-of-page/#comment-207168</guid>
		<description>Hi Peter!

This is a great plugin! Really... I find it very udeful. Though I&#039;m struggling to get the output shuffled.

I mean, maybe output 4 children but ordered randomly. Let&#039;s say a page with 30 children. I would love to be able to get 4 randomly chosen children.

I&#039;ve tried the orderby=RAND, but that doesn&#039;t seem to have any effect.</description>
		<content:encoded><![CDATA[<p>Hi Peter!</p>
<p>This is a great plugin! Really&#8230; I find it very udeful. Though I&#8217;m struggling to get the output shuffled.</p>
<p>I mean, maybe output 4 children but ordered randomly. Let&#8217;s say a page with 30 children. I would love to be able to get 4 randomly chosen children.</p>
<p>I&#8217;ve tried the orderby=RAND, but that doesn&#8217;t seem to have any effect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jackson</title>
		<link>http://blog.ftwr.co.uk/wordpress/query-child-of-page/comment-page-9/#comment-201396</link>
		<dc:creator>Jackson</dc:creator>
		<pubDate>Wed, 03 Jun 2009 20:31:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ftwr.co.uk/wordpress/query-child-of-page/#comment-201396</guid>
		<description>Peter - this is really awesome. A golden find. Genius. Priceless. 

Thanks much for your efforts!</description>
		<content:encoded><![CDATA[<p>Peter &#8211; this is really awesome. A golden find. Genius. Priceless. </p>
<p>Thanks much for your efforts!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: westi</title>
		<link>http://blog.ftwr.co.uk/wordpress/query-child-of-page/comment-page-9/#comment-200087</link>
		<dc:creator>westi</dc:creator>
		<pubDate>Wed, 20 May 2009 06:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ftwr.co.uk/wordpress/query-child-of-page/#comment-200087</guid>
		<description>@Vishal: You can use &lt;code&gt;post_type=page&lt;/code&gt; instead of the &lt;code&gt;static=true&lt;/code&gt; if you want either will work.  &lt;em&gt;static&lt;/em&gt; was how pages were referred to when I originally wrote the plugin.</description>
		<content:encoded><![CDATA[<p>@Vishal: You can use <code>post_type=page</code> instead of the <code>static=true</code> if you want either will work.  <em>static</em> was how pages were referred to when I originally wrote the plugin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: westi</title>
		<link>http://blog.ftwr.co.uk/wordpress/query-child-of-page/comment-page-9/#comment-200085</link>
		<dc:creator>westi</dc:creator>
		<pubDate>Wed, 20 May 2009 06:06:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ftwr.co.uk/wordpress/query-child-of-page/#comment-200085</guid>
		<description>@Stephen: Yes you could use post_parent instead.  Looking back it looks like that was added back in WordPress 2.6.</description>
		<content:encoded><![CDATA[<p>@Stephen: Yes you could use post_parent instead.  Looking back it looks like that was added back in WordPress 2.6.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishal Rao</title>
		<link>http://blog.ftwr.co.uk/wordpress/query-child-of-page/comment-page-9/#comment-199987</link>
		<dc:creator>Vishal Rao</dc:creator>
		<pubDate>Tue, 19 May 2009 06:48:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ftwr.co.uk/wordpress/query-child-of-page/#comment-199987</guid>
		<description>Excellent plugin! I have used this on my home page to retrieve &quot;x&quot; recent Pages and it works great, which I couldn&#039;t from other methods. Here&#039;s my code on the home page:

query_posts(&#039;static=true&amp;post_status=publish&amp;orderby=date&amp;order=DESC&amp;child_limit=3&#039;)

Is this the right way?

Also, can you please tell me if static=true argument is specific to your plugin, because the wordpress document on query_posts states page_type=page for Pages.</description>
		<content:encoded><![CDATA[<p>Excellent plugin! I have used this on my home page to retrieve &#8220;x&#8221; recent Pages and it works great, which I couldn&#8217;t from other methods. Here&#8217;s my code on the home page:</p>
<p>query_posts(&#8217;static=true&amp;post_status=publish&amp;orderby=date&amp;order=DESC&amp;child_limit=3&#8242;)</p>
<p>Is this the right way?</p>
<p>Also, can you please tell me if static=true argument is specific to your plugin, because the wordpress document on query_posts states page_type=page for Pages.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen R</title>
		<link>http://blog.ftwr.co.uk/wordpress/query-child-of-page/comment-page-9/#comment-199949</link>
		<dc:creator>Stephen R</dc:creator>
		<pubDate>Mon, 18 May 2009 18:21:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ftwr.co.uk/wordpress/query-child-of-page/#comment-199949</guid>
		<description>Hey Westi --

Is there anything this plugin can do that we can&#039;t do with &quot;post_parent&quot;?  e.g.  How is...

&lt;code&gt;query_posts(&#039;child_of=&#039;.$post-&gt;ID);&lt;/code&gt;

different from...

&lt;code&gt;query_posts(&#039;post_parent=&#039;.$post-&gt;ID);&lt;/code&gt;

Also see...
http://core.trac.wordpress.org/ticket/5742</description>
		<content:encoded><![CDATA[<p>Hey Westi &#8211;</p>
<p>Is there anything this plugin can do that we can&#8217;t do with &#8220;post_parent&#8221;?  e.g.  How is&#8230;</p>
<p><code>query_posts('child_of='.$post-&gt;ID);</code></p>
<p>different from&#8230;</p>
<p><code>query_posts('post_parent='.$post-&gt;ID);</code></p>
<p>Also see&#8230;<br />
<a href="http://core.trac.wordpress.org/ticket/5742" rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/core.trac.wordpress.org/ticket/5742?referer=');">http://core.trac.wordpress.org/ticket/5742</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://blog.ftwr.co.uk/wordpress/query-child-of-page/comment-page-9/#comment-198765</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Wed, 06 May 2009 22:09:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ftwr.co.uk/wordpress/query-child-of-page/#comment-198765</guid>
		<description>Peter,

One word: &quot;Brilliant&quot;. Thank you for this. Surely this should should ship out of the box? When you mix this with custom fields you can really achieve some great results!

Thanks again.

Joe</description>
		<content:encoded><![CDATA[<p>Peter,</p>
<p>One word: &#8220;Brilliant&#8221;. Thank you for this. Surely this should should ship out of the box? When you mix this with custom fields you can really achieve some great results!</p>
<p>Thanks again.</p>
<p>Joe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://blog.ftwr.co.uk/wordpress/query-child-of-page/comment-page-9/#comment-198714</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Wed, 06 May 2009 10:02:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ftwr.co.uk/wordpress/query-child-of-page/#comment-198714</guid>
		<description>@findigart,

I think you&#039;re after the same thing as me, wanting to output child pages together with their grandchild pages. Still not sure how to do this.

I&#039;ve had another try with the code Westi published above, bending it this way and that. The closest I can get is that I can output a list similar to:

CHILD 1
Child 1
Child 2
Child 3

CHILD 2
Child 1
Child 2
Child 3

CHILD 3
Child 1
Child 2
Child 3

It&#039;s as if the child_of in the inner_query is not being used. Whatever I put in that child_of doesn&#039;t seem to make a difference.</description>
		<content:encoded><![CDATA[<p>@findigart,</p>
<p>I think you&#8217;re after the same thing as me, wanting to output child pages together with their grandchild pages. Still not sure how to do this.</p>
<p>I&#8217;ve had another try with the code Westi published above, bending it this way and that. The closest I can get is that I can output a list similar to:</p>
<p>CHILD 1<br />
Child 1<br />
Child 2<br />
Child 3</p>
<p>CHILD 2<br />
Child 1<br />
Child 2<br />
Child 3</p>
<p>CHILD 3<br />
Child 1<br />
Child 2<br />
Child 3</p>
<p>It&#8217;s as if the child_of in the inner_query is not being used. Whatever I put in that child_of doesn&#8217;t seem to make a difference.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: findigart</title>
		<link>http://blog.ftwr.co.uk/wordpress/query-child-of-page/comment-page-9/#comment-198192</link>
		<dc:creator>findigart</dc:creator>
		<pubDate>Fri, 01 May 2009 02:07:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ftwr.co.uk/wordpress/query-child-of-page/#comment-198192</guid>
		<description>Hello people,

I need this thing but i cannot understand how to use it. i installed the plugin but i just don&#039;t know what to do with it...

say i want main page &quot;Articles&quot; to display all its sub-pages (articles categories) and for each sub-page to display the relevant list of articles - like this:

Articles

   Category 1
      article 1
      article 2
      article 3

   Category 2
      article 1
      article 2
      article 3

where am i supposed to place this code then? and is it capable of doing what i need?

also would it be possible to place an icon next to each category?

thanks :-)</description>
		<content:encoded><![CDATA[<p>Hello people,</p>
<p>I need this thing but i cannot understand how to use it. i installed the plugin but i just don&#8217;t know what to do with it&#8230;</p>
<p>say i want main page &#8220;Articles&#8221; to display all its sub-pages (articles categories) and for each sub-page to display the relevant list of articles &#8211; like this:</p>
<p>Articles</p>
<p>   Category 1<br />
      article 1<br />
      article 2<br />
      article 3</p>
<p>   Category 2<br />
      article 1<br />
      article 2<br />
      article 3</p>
<p>where am i supposed to place this code then? and is it capable of doing what i need?</p>
<p>also would it be possible to place an icon next to each category?</p>
<p>thanks <img src='http://blog.ftwr.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Haim</title>
		<link>http://blog.ftwr.co.uk/wordpress/query-child-of-page/comment-page-9/#comment-198117</link>
		<dc:creator>Haim</dc:creator>
		<pubDate>Thu, 30 Apr 2009 08:05:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ftwr.co.uk/wordpress/query-child-of-page/#comment-198117</guid>
		<description>thanks guys for the quick response,
i manage to do the paging, my solution looks allot like what Derek suggested</description>
		<content:encoded><![CDATA[<p>thanks guys for the quick response,<br />
i manage to do the paging, my solution looks allot like what Derek suggested</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek Herman</title>
		<link>http://blog.ftwr.co.uk/wordpress/query-child-of-page/comment-page-8/#comment-198052</link>
		<dc:creator>Derek Herman</dc:creator>
		<pubDate>Wed, 29 Apr 2009 21:49:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ftwr.co.uk/wordpress/query-child-of-page/#comment-198052</guid>
		<description>Here is how I paginate:



// Change the limit to fit your needs
$limit = 9;
$parent_id = get_page_id(&#039;portfolio&#039;);
$paged = (get_query_var(&#039;paged&#039;)) ? get_query_var(&#039;paged&#039;) : 1;
  if ($paged &gt; 1) {
    $child_offset = ($paged - 1) * $limit;
  } else {
    $child_offset = 0;
  }
$numposts = $wpdb-&gt;get_var(&quot;
  SELECT COUNT(*) 
  FROM wp_posts
  WHERE post_parent = {$parent_id}
  AND post_status = &#039;publish&#039;&quot;);



// To query the pages										
query_posts(&quot;post_status=publish&amp;static=true&amp;posts_per_page={$limit}&amp;child_of={$parent_id}&amp;child_limit={$limit}&amp;child_offset={$child_offset}&amp;paged={$paged}&quot;); 



// Count the subpages and show the pagenavi
if($numposts &gt; $limit) {
  wp_pagenavi(); 
}
</description>
		<content:encoded><![CDATA[<p>Here is how I paginate:</p>
<p>// Change the limit to fit your needs<br />
$limit = 9;<br />
$parent_id = get_page_id(&#8216;portfolio&#8217;);<br />
$paged = (get_query_var(&#8216;paged&#8217;)) ? get_query_var(&#8216;paged&#8217;) : 1;<br />
  if ($paged &gt; 1) {<br />
    $child_offset = ($paged &#8211; 1) * $limit;<br />
  } else {<br />
    $child_offset = 0;<br />
  }<br />
$numposts = $wpdb-&gt;get_var(&#8221;<br />
  SELECT COUNT(*)<br />
  FROM wp_posts<br />
  WHERE post_parent = {$parent_id}<br />
  AND post_status = &#8216;publish&#8217;&#8221;);</p>
<p>// To query the pages<br />
query_posts(&#8220;post_status=publish&amp;static=true&amp;posts_per_page={$limit}&amp;child_of={$parent_id}&amp;child_limit={$limit}&amp;child_offset={$child_offset}&amp;paged={$paged}&#8221;); </p>
<p>// Count the subpages and show the pagenavi<br />
if($numposts &gt; $limit) {<br />
  wp_pagenavi();<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: westi</title>
		<link>http://blog.ftwr.co.uk/wordpress/query-child-of-page/comment-page-8/#comment-198050</link>
		<dc:creator>westi</dc:creator>
		<pubDate>Wed, 29 Apr 2009 21:30:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ftwr.co.uk/wordpress/query-child-of-page/#comment-198050</guid>
		<description>@haim unfortunately your code didn&#039;t make it through here can you try sharing it again?</description>
		<content:encoded><![CDATA[<p>@haim unfortunately your code didn&#8217;t make it through here can you try sharing it again?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
