<?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: Is_Child Function</title>
	<atom:link href="http://www.nicholasroussos.com/general/wordpress-is_child-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nicholasroussos.com/general/wordpress-is_child-function/</link>
	<description>I like to see my name in hyperlinks.</description>
	<lastBuildDate>Thu, 02 Feb 2012 20:02:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Buy microsoft office 2010 product Key</title>
		<link>http://www.nicholasroussos.com/general/wordpress-is_child-function/comment-page-1/#comment-3647</link>
		<dc:creator>Buy microsoft office 2010 product Key</dc:creator>
		<pubDate>Sun, 11 Dec 2011 07:57:11 +0000</pubDate>
		<guid isPermaLink="false">http://nicholasroussos.dreamhosters.com/general/wordpress-is_child-function/#comment-3647</guid>
		<description>&lt;strong&gt;Buy microsoft office 2010 product Key...&lt;/strong&gt;

[...]Wordpress: Is_Child Function / Nicholas Roussos[...]...</description>
		<content:encoded><![CDATA[<p><strong>Buy microsoft office 2010 product Key&#8230;</strong></p>
<p>[...]Wordpress: Is_Child Function / Nicholas Roussos[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: get_depth() - get depth of a page or category - Wordpress template tag / function &#124; devdevote.com</title>
		<link>http://www.nicholasroussos.com/general/wordpress-is_child-function/comment-page-1/#comment-3272</link>
		<dc:creator>get_depth() - get depth of a page or category - Wordpress template tag / function &#124; devdevote.com</dc:creator>
		<pubDate>Mon, 18 Jan 2010 20:17:09 +0000</pubDate>
		<guid isPermaLink="false">http://nicholasroussos.dreamhosters.com/general/wordpress-is_child-function/#comment-3272</guid>
		<description>[...] Nicholas Roussos &#8211; is_child function [...]</description>
		<content:encoded><![CDATA[<p>[...] Nicholas Roussos &#8211; is_child function [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wordpress is_child() for Advanced Navigation &#124; kevinleary.net</title>
		<link>http://www.nicholasroussos.com/general/wordpress-is_child-function/comment-page-1/#comment-3130</link>
		<dc:creator>Wordpress is_child() for Advanced Navigation &#124; kevinleary.net</dc:creator>
		<pubDate>Tue, 05 May 2009 03:29:25 +0000</pubDate>
		<guid isPermaLink="false">http://nicholasroussos.dreamhosters.com/general/wordpress-is_child-function/#comment-3130</guid>
		<description>[...] the conditional in your theme(s), add the code above to functions.php. Special thanks goes out to Nicholas Roussos for creating this wonderful [...]</description>
		<content:encoded><![CDATA[<p>[...] the conditional in your theme(s), add the code above to functions.php. Special thanks goes out to Nicholas Roussos for creating this wonderful [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicholas Roussos</title>
		<link>http://www.nicholasroussos.com/general/wordpress-is_child-function/comment-page-1/#comment-2992</link>
		<dc:creator>Nicholas Roussos</dc:creator>
		<pubDate>Wed, 19 Nov 2008 21:56:13 +0000</pubDate>
		<guid isPermaLink="false">http://nicholasroussos.dreamhosters.com/general/wordpress-is_child-function/#comment-2992</guid>
		<description>Hey, chris, my function works inside the loop were a specific page has already been pulled from the database. In your case, it sounds like you want to make a function that works outside of the loop, which should be easy enough. You&#039;ll just have to query the db for bmw and grab it&#039;s parent ... You could even make it recursive, that way. One caveat, wordpress&#039;s db structure has changed a lot since I wrote this.</description>
		<content:encoded><![CDATA[<p>Hey, chris, my function works inside the loop were a specific page has already been pulled from the database. In your case, it sounds like you want to make a function that works outside of the loop, which should be easy enough. You&#8217;ll just have to query the db for bmw and grab it&#8217;s parent &#8230; You could even make it recursive, that way. One caveat, wordpress&#8217;s db structure has changed a lot since I wrote this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris M</title>
		<link>http://www.nicholasroussos.com/general/wordpress-is_child-function/comment-page-1/#comment-2986</link>
		<dc:creator>Chris M</dc:creator>
		<pubDate>Tue, 18 Nov 2008 13:24:53 +0000</pubDate>
		<guid isPermaLink="false">http://nicholasroussos.dreamhosters.com/general/wordpress-is_child-function/#comment-2986</guid>
		<description>Hi Nic, 

Fantastic little function. I coded up one very similar, my problem is that I need to check whether a specific category has a specific parent, such as..

is_child(bmw,cars);

If bmw is a child of parent, cars, it will return true.

What do you think?</description>
		<content:encoded><![CDATA[<p>Hi Nic, </p>
<p>Fantastic little function. I coded up one very similar, my problem is that I need to check whether a specific category has a specific parent, such as..</p>
<p>is_child(bmw,cars);</p>
<p>If bmw is a child of parent, cars, it will return true.</p>
<p>What do you think?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicholas Roussos</title>
		<link>http://www.nicholasroussos.com/general/wordpress-is_child-function/comment-page-1/#comment-2921</link>
		<dc:creator>Nicholas Roussos</dc:creator>
		<pubDate>Sun, 14 Sep 2008 13:30:09 +0000</pubDate>
		<guid isPermaLink="false">http://nicholasroussos.dreamhosters.com/general/wordpress-is_child-function/#comment-2921</guid>
		<description>Hi Will,

I think there&#039;s a pretty simple solution to your problem. Just use &lt;a href=&quot;http://codex.wordpress.org/Template_Tags/wp_list_categories&quot; rel=&quot;nofollow&quot;&gt;wp_list_categories&lt;/a&gt;. It will return a list of categories and children categories will be nested under their parents.</description>
		<content:encoded><![CDATA[<p>Hi Will,</p>
<p>I think there&#8217;s a pretty simple solution to your problem. Just use <a href="http://codex.wordpress.org/Template_Tags/wp_list_categories" rel="nofollow">wp_list_categories</a>. It will return a list of categories and children categories will be nested under their parents.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://www.nicholasroussos.com/general/wordpress-is_child-function/comment-page-1/#comment-2920</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Sat, 13 Sep 2008 02:58:04 +0000</pubDate>
		<guid isPermaLink="false">http://nicholasroussos.dreamhosters.com/general/wordpress-is_child-function/#comment-2920</guid>
		<description>I&#039;m sort of wringing my hands here - looking for some advice. Is there a way to check if a page has ANY children? As it stands, it seems even first-level pages with no children are considered parent-pages. Basically, I want to display secondary navigation if and only if a page is a parent to an actual child page, or is a child page. If there are no children, then there should be no special secondary navigation area. Ideas?</description>
		<content:encoded><![CDATA[<p>I&#8217;m sort of wringing my hands here &#8211; looking for some advice. Is there a way to check if a page has ANY children? As it stands, it seems even first-level pages with no children are considered parent-pages. Basically, I want to display secondary navigation if and only if a page is a parent to an actual child page, or is a child page. If there are no children, then there should be no special secondary navigation area. Ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jens Törnell</title>
		<link>http://www.nicholasroussos.com/general/wordpress-is_child-function/comment-page-1/#comment-2917</link>
		<dc:creator>Jens Törnell</dc:creator>
		<pubDate>Sun, 07 Sep 2008 19:28:09 +0000</pubDate>
		<guid isPermaLink="false">http://nicholasroussos.dreamhosters.com/general/wordpress-is_child-function/#comment-2917</guid>
		<description>Hi there!

Short and nice function!

I&#039;ve written a bit more advanced function to be able to get the grand grand grand grand child if that is needed (unlimited).

Have a look at it if you like at &lt;a href=&quot;http://www.web-templates.nu/2008/09/07/get-depth-like-is_child-is_grandchild/&quot; rel=&quot;nofollow&quot;&gt;Get Depth - like is_child() &amp; is_grandchild() at web-templates.nu&lt;/a&gt;

Regards Jens Törnell</description>
		<content:encoded><![CDATA[<p>Hi there!</p>
<p>Short and nice function!</p>
<p>I&#8217;ve written a bit more advanced function to be able to get the grand grand grand grand child if that is needed (unlimited).</p>
<p>Have a look at it if you like at <a href="http://www.web-templates.nu/2008/09/07/get-depth-like-is_child-is_grandchild/" rel="nofollow">Get Depth &#8211; like is_child() &amp; is_grandchild() at web-templates.nu</a></p>
<p>Regards Jens Törnell</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicholas Roussos</title>
		<link>http://www.nicholasroussos.com/general/wordpress-is_child-function/comment-page-1/#comment-2070</link>
		<dc:creator>Nicholas Roussos</dc:creator>
		<pubDate>Sat, 02 Jun 2007 17:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://nicholasroussos.dreamhosters.com/general/wordpress-is_child-function/#comment-2070</guid>
		<description>No problem Mike. I just realized that this function will only detect direct children and not grandchildren (if that makes sense). Basically, you can have a page that&#039;s a child of a child of a child. Anyway,I might fix that in the future, but it will only complicate it. The function would probably need to be recursive or something ...</description>
		<content:encoded><![CDATA[<p>No problem Mike. I just realized that this function will only detect direct children and not grandchildren (if that makes sense). Basically, you can have a page that&#8217;s a child of a child of a child. Anyway,I might fix that in the future, but it will only complicate it. The function would probably need to be recursive or something &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mIKE</title>
		<link>http://www.nicholasroussos.com/general/wordpress-is_child-function/comment-page-1/#comment-2069</link>
		<dc:creator>mIKE</dc:creator>
		<pubDate>Fri, 01 Jun 2007 21:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://nicholasroussos.dreamhosters.com/general/wordpress-is_child-function/#comment-2069</guid>
		<description>Thanks!&lt;br/&gt;&lt;br/&gt;I&#039;ve been looking for something like this all day :S, and this function works great!&lt;br/&gt;&lt;br/&gt;And thanks for responding so quickly.. 3 minutes.&lt;br/&gt;&lt;br/&gt;Kudos Nicholas!</description>
		<content:encoded><![CDATA[<p>Thanks!</p>
<p>I&#8217;ve been looking for something like this all day :S, and this function works great!</p>
<p>And thanks for responding so quickly.. 3 minutes.</p>
<p>Kudos Nicholas!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

