<?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: Get Child Categories of Parent Category on Single Post in WordPress</title>
	<atom:link href="http://seanbehan.com/programming/get-child-categories-of-parent-category-on-single-post-in-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://seanbehan.com/programming/get-child-categories-of-parent-category-on-single-post-in-wordpress/</link>
	<description>Web Programming, Ruby on Rails, Wordpress, PHP from Burlington, Vermont</description>
	<lastBuildDate>Mon, 30 Jan 2012 12:48:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: niksos</title>
		<link>http://seanbehan.com/programming/get-child-categories-of-parent-category-on-single-post-in-wordpress/#comment-340</link>
		<dc:creator>niksos</dc:creator>
		<pubDate>Wed, 11 May 2011 07:20:46 +0000</pubDate>
		<guid isPermaLink="false">http://seanbehan.com/?p=1056#comment-340</guid>
		<description>great the code works for me. I&#039;m trying to query multiple categories and children for each separately on single.php I&#039;d need to add link though. Any ideas?</description>
		<content:encoded><![CDATA[<p>great the code works for me. I&#8217;m trying to query multiple categories and children for each separately on single.php I&#8217;d need to add link though. Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: voo</title>
		<link>http://seanbehan.com/programming/get-child-categories-of-parent-category-on-single-post-in-wordpress/#comment-303</link>
		<dc:creator>voo</dc:creator>
		<pubDate>Wed, 09 Mar 2011 02:48:36 +0000</pubDate>
		<guid isPermaLink="false">http://seanbehan.com/?p=1056#comment-303</guid>
		<description>$categories = get_categories( $args );

$args = array(
    &#039;type&#039;                     =&gt; &#039;post&#039;,
    &#039;child_of&#039;                 =&gt; 0,
    &#039;parent&#039;                   =&gt; ,
    &#039;orderby&#039;                  =&gt; &#039;name&#039;,
    &#039;order&#039;                    =&gt; &#039;ASC&#039;,
    &#039;hide_empty&#039;               =&gt; 1,
    &#039;hierarchical&#039;             =&gt; 1,
    &#039;exclude&#039;                  =&gt; ,
    &#039;include&#039;                  =&gt; ,
    &#039;number&#039;                   =&gt; ,
    &#039;taxonomy&#039;                 =&gt; &#039;category&#039;
    &#039;pad_counts&#039;               =&gt; false

http://codex.wordpress.org/Function_Reference/get_categories</description>
		<content:encoded><![CDATA[<p>$categories = get_categories( $args );</p>
<p>$args = array(<br />
    &#8216;type&#8217;                     =&gt; &#8216;post&#8217;,<br />
    &#8216;child_of&#8217;                 =&gt; 0,<br />
    &#8216;parent&#8217;                   =&gt; ,<br />
    &#8216;orderby&#8217;                  =&gt; &#8216;name&#8217;,<br />
    &#8216;order&#8217;                    =&gt; &#8216;ASC&#8217;,<br />
    &#8216;hide_empty&#8217;               =&gt; 1,<br />
    &#8216;hierarchical&#8217;             =&gt; 1,<br />
    &#8216;exclude&#8217;                  =&gt; ,<br />
    &#8216;include&#8217;                  =&gt; ,<br />
    &#8216;number&#8217;                   =&gt; ,<br />
    &#8216;taxonomy&#8217;                 =&gt; &#8216;category&#8217;<br />
    &#8216;pad_counts&#8217;               =&gt; false</p>
<p><a href="http://codex.wordpress.org/Function_Reference/get_categories" rel="nofollow">http://codex.wordpress.org/Function_Reference/get_categories</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://seanbehan.com/programming/get-child-categories-of-parent-category-on-single-post-in-wordpress/#comment-295</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sat, 12 Feb 2011 02:02:57 +0000</pubDate>
		<guid isPermaLink="false">http://seanbehan.com/?p=1056#comment-295</guid>
		<description>Oh, and if you want the cats children in a list:
wp_list_categories(&#039;child_of=0&#039;);

http://codex.wordpress.org/Template_Tags/wp_list_categories</description>
		<content:encoded><![CDATA[<p>Oh, and if you want the cats children in a list:<br />
wp_list_categories(&#8216;child_of=0&#8242;);</p>
<p><a href="http://codex.wordpress.org/Template_Tags/wp_list_categories" rel="nofollow">http://codex.wordpress.org/Template_Tags/wp_list_categories</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://seanbehan.com/programming/get-child-categories-of-parent-category-on-single-post-in-wordpress/#comment-294</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sat, 12 Feb 2011 02:00:26 +0000</pubDate>
		<guid isPermaLink="false">http://seanbehan.com/?p=1056#comment-294</guid>
		<description>With taxonomies, terms can be used to get categories:
get_term_children( $term, $taxonomy ) ;

Ex. get_term_children(&#039;cat_ID&#039;, &#039;category&#039; ) ;
Grabs children of the category of the ID you show
http://codex.wordpress.org/Function_Reference/get_term_children</description>
		<content:encoded><![CDATA[<p>With taxonomies, terms can be used to get categories:<br />
get_term_children( $term, $taxonomy ) ;</p>
<p>Ex. get_term_children(&#8216;cat_ID&#8217;, &#8216;category&#8217; ) ;<br />
Grabs children of the category of the ID you show<br />
<a href="http://codex.wordpress.org/Function_Reference/get_term_children" rel="nofollow">http://codex.wordpress.org/Function_Reference/get_term_children</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://seanbehan.com/programming/get-child-categories-of-parent-category-on-single-post-in-wordpress/#comment-87</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 30 Jun 2010 14:54:33 +0000</pubDate>
		<guid isPermaLink="false">http://seanbehan.com/?p=1056#comment-87</guid>
		<description>...my mistake, this will not show the child categories of the parent for the single post... it will only retrieve the children of the parent category regardless of which category the post is in...</description>
		<content:encoded><![CDATA[<p>&#8230;my mistake, this will not show the child categories of the parent for the single post&#8230; it will only retrieve the children of the parent category regardless of which category the post is in&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean Behan</title>
		<link>http://seanbehan.com/programming/get-child-categories-of-parent-category-on-single-post-in-wordpress/#comment-86</link>
		<dc:creator>Sean Behan</dc:creator>
		<pubDate>Wed, 23 Jun 2010 20:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://seanbehan.com/?p=1056#comment-86</guid>
		<description>This might me a little better, since it uses the WP API.
&lt;pre&gt;
$mom = get_category_by_slug(&quot;Vermont&quot;);
$son = wp_category_list(&#039;child_of=&#039;.$mom-&gt;cat_ID);
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>This might me a little better, since it uses the WP API.</p>
<pre class="wp-code-highlight prettyprint">
$mom = get_category_by_slug(&quot;Vermont&quot;);
$son = wp_category_list('child_of='.$mom-&amp;gt;cat_ID);
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>

