<?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: Displaying Parent Categories Only &amp; Putting Categories Into A Foreach Loop</title>
	<atom:link href="http://www.brightcherry.co.uk/scribbles/2009/06/30/wordpress-displaying-parent-categories-only-putting-categories-into-a-foreach-loop/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brightcherry.co.uk/scribbles/2009/06/30/wordpress-displaying-parent-categories-only-putting-categories-into-a-foreach-loop/</link>
	<description></description>
	<lastBuildDate>Wed, 25 Aug 2010 19:01:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Jason</title>
		<link>http://www.brightcherry.co.uk/scribbles/2009/06/30/wordpress-displaying-parent-categories-only-putting-categories-into-a-foreach-loop/comment-page-1/#comment-977</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Sun, 16 May 2010 03:23:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.brightcherry.co.uk/scribbles/?p=145#comment-977</guid>
		<description>Thanks. I can&#039;t remember what I did because it was a while ago but I did end up solving it. Thank you for your solution awls99. I&#039;ll be sure to try this out in the future.</description>
		<content:encoded><![CDATA[<p>Thanks. I can&#8217;t remember what I did because it was a while ago but I did end up solving it. Thank you for your solution awls99. I&#8217;ll be sure to try this out in the future.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: awls99</title>
		<link>http://www.brightcherry.co.uk/scribbles/2009/06/30/wordpress-displaying-parent-categories-only-putting-categories-into-a-foreach-loop/comment-page-1/#comment-970</link>
		<dc:creator>awls99</dc:creator>
		<pubDate>Wed, 12 May 2010 12:45:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.brightcherry.co.uk/scribbles/?p=145#comment-970</guid>
		<description>I&#039;m not sure if this was around at the time of this writting, but this will get you there faster:

$categories=get_categories(array(&#039;parent&#039;=&gt;0,&#039;exclude&#039;=&gt;&#039;1&#039;));

the array on the function are the arguments that can be passed, I used exclude cat 1 bacouse it&#039;s generaly the &quot;No category&quot; category, the parent =&gt; 0 makes it that it only get category withou parents, thus making the if clause you use unencessary. hope it was clear and useful</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure if this was around at the time of this writting, but this will get you there faster:</p>
<p>$categories=get_categories(array(&#8216;parent&#8217;=&gt;0,&#8217;exclude&#8217;=&gt;&#8217;1&#8242;));</p>
<p>the array on the function are the arguments that can be passed, I used exclude cat 1 bacouse it&#8217;s generaly the &#8220;No category&#8221; category, the parent =&gt; 0 makes it that it only get category withou parents, thus making the if clause you use unencessary. hope it was clear and useful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kamel</title>
		<link>http://www.brightcherry.co.uk/scribbles/2009/06/30/wordpress-displaying-parent-categories-only-putting-categories-into-a-foreach-loop/comment-page-1/#comment-690</link>
		<dc:creator>Kamel</dc:creator>
		<pubDate>Thu, 20 Aug 2009 16:10:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.brightcherry.co.uk/scribbles/?p=145#comment-690</guid>
		<description>Like Jason, I will be pleased to know how to make the parent level of my categories menu unclickable.

Regards</description>
		<content:encoded><![CDATA[<p>Like Jason, I will be pleased to know how to make the parent level of my categories menu unclickable.</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.brightcherry.co.uk/scribbles/2009/06/30/wordpress-displaying-parent-categories-only-putting-categories-into-a-foreach-loop/comment-page-1/#comment-646</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Sat, 25 Jul 2009 10:42:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.brightcherry.co.uk/scribbles/?p=145#comment-646</guid>
		<description>Nice post. I am wondering if you possibly know how to just disable the category parent links but still display the name while the subcategories remain intact and in normal behavior?</description>
		<content:encoded><![CDATA[<p>Nice post. I am wondering if you possibly know how to just disable the category parent links but still display the name while the subcategories remain intact and in normal behavior?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manoj Kumar Bhujabal</title>
		<link>http://www.brightcherry.co.uk/scribbles/2009/06/30/wordpress-displaying-parent-categories-only-putting-categories-into-a-foreach-loop/comment-page-1/#comment-624</link>
		<dc:creator>Manoj Kumar Bhujabal</dc:creator>
		<pubDate>Thu, 09 Jul 2009 09:16:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.brightcherry.co.uk/scribbles/?p=145#comment-624</guid>
		<description>Greate script, Thanks.........</description>
		<content:encoded><![CDATA[<p>Greate script, Thanks&#8230;&#8230;&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
