<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress &#8250; Support Topic: MySQL query / Need list of subcategories</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Topic: MySQL query / Need list of subcategories</description>
<language>en</language>
<pubDate>Thu, 26 Nov 2009 10:43:24 +0000</pubDate>

<item>
<title>brockangelo on "MySQL query / Need list of subcategories"</title>
<link>http://wordpress.org/support/topic/226555#post-1005435</link>
<pubDate>Wed, 04 Mar 2009 18:24:26 +0000</pubDate>
<dc:creator>brockangelo</dc:creator>
<guid isPermaLink="false">1005435@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Thanks - this is exactly what I was looking for.
&#60;/p&#62;</description>
</item>
<item>
<title>areimann on "MySQL query / Need list of subcategories"</title>
<link>http://wordpress.org/support/topic/226555#post-930065</link>
<pubDate>Thu, 18 Dec 2008 18:38:20 +0000</pubDate>
<dc:creator>areimann</dc:creator>
<guid isPermaLink="false">930065@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Thanks...that did work....but not on my local box (didn't have an children there....)  oops!&#60;/p&#62;
&#60;p&#62;thanks&#60;/p&#62;
&#60;p&#62;everything works
&#60;/p&#62;</description>
</item>
<item>
<title>filosofo on "MySQL query / Need list of subcategories"</title>
<link>http://wordpress.org/support/topic/226555#post-930060</link>
<pubDate>Thu, 18 Dec 2008 18:34:05 +0000</pubDate>
<dc:creator>filosofo</dc:creator>
<guid isPermaLink="false">930060@http://wordpress.org/support/</guid>
<description>&#60;p&#62;That should work.  Try var_dump($children); to see if anything's being returned.
&#60;/p&#62;</description>
</item>
<item>
<title>areimann on "MySQL query / Need list of subcategories"</title>
<link>http://wordpress.org/support/topic/226555#post-929968</link>
<pubDate>Thu, 18 Dec 2008 16:33:50 +0000</pubDate>
<dc:creator>areimann</dc:creator>
<guid isPermaLink="false">929968@http://wordpress.org/support/</guid>
<description>&#60;p&#62;That sounds great, thanks.  But how do I echo that list?&#60;/p&#62;
&#60;p&#62;	$children = get_categories(array('parent' =&#38;gt; 41));&#60;br /&#62;
	foreach ($children as $child) {&#60;br /&#62;
		echo  $child-&#38;gt;cat_name;&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;doesn't do anything...what am i missing?
&#60;/p&#62;</description>
</item>
<item>
<title>filosofo on "MySQL query / Need list of subcategories"</title>
<link>http://wordpress.org/support/topic/226555#post-929357</link>
<pubDate>Thu, 18 Dec 2008 03:01:01 +0000</pubDate>
<dc:creator>filosofo</dc:creator>
<guid isPermaLink="false">929357@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Why not use the WordPress API?  &#60;/p&#62;
&#60;p&#62;&#60;code&#62;$descendants = get_categories(array(&#38;#39;child_of&#38;#39; =&#38;gt; 41));&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$children = get_categories(array(&#38;#39;parent&#38;#39; =&#38;gt; 41));&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Note that $children will contain just the immediate child categories, but $descendants will include all descendant categories, including grand-children, great-grandchildren, etc.
&#60;/p&#62;</description>
</item>
<item>
<title>areimann on "MySQL query / Need list of subcategories"</title>
<link>http://wordpress.org/support/topic/226555#post-928920</link>
<pubDate>Wed, 17 Dec 2008 20:10:41 +0000</pubDate>
<dc:creator>areimann</dc:creator>
<guid isPermaLink="false">928920@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I am looking for the query to just list the subcategories (or children) of wp_terms.term_id = 41&#60;/p&#62;
&#60;p&#62;I need to format these is a very odd structure.&#60;/p&#62;
&#60;p&#62;Can anyone help?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
