<?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 Top Parent Category (WordPress)</title>
	<atom:link href="http://www.sandboxdev.com/blog/518/get-top-parent-category-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sandboxdev.com/blog/518/get-top-parent-category-wordpress/</link>
	<description>Building Solutions for Your Business Needs.</description>
	<lastBuildDate>Mon, 15 Mar 2010 01:23:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ngqabutho</title>
		<link>http://www.sandboxdev.com/blog/518/get-top-parent-category-wordpress/comment-page-1/#comment-15754</link>
		<dc:creator>Ngqabutho</dc:creator>
		<pubDate>Thu, 31 Dec 2009 12:09:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.sandboxdev.com/?p=518#comment-15754</guid>
		<description>post;
	$category = get_the_category();
	$parent = get_cat_name($category[0]-&gt;category_parent);
	if ($parent == &quot;Interviews&quot; ) {
		include(TEMPLATEPATH . &#039;/single_interview.php&#039;);
	} else {
		include(TEMPLATEPATH . &#039;/single_blog.php&#039;);
	}
			
?&gt;</description>
		<content:encoded><![CDATA[<p>post;<br />
	$category = get_the_category();<br />
	$parent = get_cat_name($category[0]-&gt;category_parent);<br />
	if ($parent == &#8220;Interviews&#8221; ) {<br />
		include(TEMPLATEPATH . &#8216;/single_interview.php&#8217;);<br />
	} else {<br />
		include(TEMPLATEPATH . &#8216;/single_blog.php&#8217;);<br />
	}</p>
<p>?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ngqabutho</title>
		<link>http://www.sandboxdev.com/blog/518/get-top-parent-category-wordpress/comment-page-1/#comment-15753</link>
		<dc:creator>Ngqabutho</dc:creator>
		<pubDate>Thu, 31 Dec 2009 12:08:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.sandboxdev.com/?p=518#comment-15753</guid>
		<description>@ those interested

post;
	$category = get_the_category();
	$parent = get_cat_name($category[0]-&gt;category_parent);
	if ($parent == &quot;Interviews&quot; ) {
		include(TEMPLATEPATH . &#039;/single_interview.php&#039;);
	} else {
		include(TEMPLATEPATH . &#039;/single_blog.php&#039;);
	}
			
?&gt;

this sees if the parent is &quot;Interviews&quot; and opens &quot;single_interview.php&quot;


this is the whole code for the &quot;single.php&quot;... coz the redirect is the normal single post template which it &quot;single_blog.php&quot;</description>
		<content:encoded><![CDATA[<p>@ those interested</p>
<p>post;<br />
	$category = get_the_category();<br />
	$parent = get_cat_name($category[0]-&gt;category_parent);<br />
	if ($parent == &#8220;Interviews&#8221; ) {<br />
		include(TEMPLATEPATH . &#8216;/single_interview.php&#8217;);<br />
	} else {<br />
		include(TEMPLATEPATH . &#8216;/single_blog.php&#8217;);<br />
	}</p>
<p>?&gt;</p>
<p>this sees if the parent is &#8220;Interviews&#8221; and opens &#8220;single_interview.php&#8221;</p>
<p>this is the whole code for the &#8220;single.php&#8221;&#8230; coz the redirect is the normal single post template which it &#8220;single_blog.php&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antonio</title>
		<link>http://www.sandboxdev.com/blog/518/get-top-parent-category-wordpress/comment-page-1/#comment-15287</link>
		<dc:creator>Antonio</dc:creator>
		<pubDate>Fri, 04 Dec 2009 22:56:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.sandboxdev.com/?p=518#comment-15287</guid>
		<description>This is EXACTLY what i was searching for! Thanks for sharing this snippets.</description>
		<content:encoded><![CDATA[<p>This is EXACTLY what i was searching for! Thanks for sharing this snippets.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike D</title>
		<link>http://www.sandboxdev.com/blog/518/get-top-parent-category-wordpress/comment-page-1/#comment-15238</link>
		<dc:creator>Mike D</dc:creator>
		<pubDate>Mon, 30 Nov 2009 21:59:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.sandboxdev.com/?p=518#comment-15238</guid>
		<description>Much thanks for this.

Change $topParentName = $parentCatListArray[0];
To Change $topParentName = $parentCatListArray[1];

and  to get the second category down if your in a subcategory.</description>
		<content:encoded><![CDATA[<p>Much thanks for this.</p>
<p>Change $topParentName = $parentCatListArray[0];<br />
To Change $topParentName = $parentCatListArray[1];</p>
<p>and  to get the second category down if your in a subcategory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Car insurance claims &#62;&#62; http://onlinecarinsuranceclaims.com/</title>
		<link>http://www.sandboxdev.com/blog/518/get-top-parent-category-wordpress/comment-page-1/#comment-15129</link>
		<dc:creator>Car insurance claims &#62;&#62; http://onlinecarinsuranceclaims.com/</dc:creator>
		<pubDate>Mon, 23 Nov 2009 20:59:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.sandboxdev.com/?p=518#comment-15129</guid>
		<description>[... - www.sandboxdev.com is other nice place of tips. Online Car insurance claims  [... -</description>
		<content:encoded><![CDATA[<p>[... - <a href="http://www.sandboxdev.com" rel="nofollow">http://www.sandboxdev.com</a> is other nice place of tips. Online Car insurance claims  [&#8230; -</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddard Stark</title>
		<link>http://www.sandboxdev.com/blog/518/get-top-parent-category-wordpress/comment-page-1/#comment-14979</link>
		<dc:creator>Eddard Stark</dc:creator>
		<pubDate>Thu, 12 Nov 2009 12:48:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.sandboxdev.com/?p=518#comment-14979</guid>
		<description>Great! I have a question dough. Ik kan know get the top parent name and the top parent slug. How do i get de top parent ID?</description>
		<content:encoded><![CDATA[<p>Great! I have a question dough. Ik kan know get the top parent name and the top parent slug. How do i get de top parent ID?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reino</title>
		<link>http://www.sandboxdev.com/blog/518/get-top-parent-category-wordpress/comment-page-1/#comment-14935</link>
		<dc:creator>Reino</dc:creator>
		<pubDate>Mon, 09 Nov 2009 12:21:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.sandboxdev.com/?p=518#comment-14935</guid>
		<description>This works for me! Thanks!</description>
		<content:encoded><![CDATA[<p>This works for me! Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark</title>
		<link>http://www.sandboxdev.com/blog/518/get-top-parent-category-wordpress/comment-page-1/#comment-14734</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Sun, 25 Oct 2009 12:25:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.sandboxdev.com/?p=518#comment-14734</guid>
		<description>Thanks for this.Im going to give it a try.</description>
		<content:encoded><![CDATA[<p>Thanks for this.Im going to give it a try.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alen</title>
		<link>http://www.sandboxdev.com/blog/518/get-top-parent-category-wordpress/comment-page-1/#comment-14620</link>
		<dc:creator>Alen</dc:creator>
		<pubDate>Thu, 15 Oct 2009 20:53:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.sandboxdev.com/?p=518#comment-14620</guid>
		<description>Big thanks ! Your code resolved my need to display banners by category groups (aka parents).
Thank you again !</description>
		<content:encoded><![CDATA[<p>Big thanks ! Your code resolved my need to display banners by category groups (aka parents).<br />
Thank you again !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: discostrings</title>
		<link>http://www.sandboxdev.com/blog/518/get-top-parent-category-wordpress/comment-page-1/#comment-14372</link>
		<dc:creator>discostrings</dc:creator>
		<pubDate>Thu, 24 Sep 2009 03:01:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.sandboxdev.com/?p=518#comment-14372</guid>
		<description>Thanks! You just saved me some time and frustration in hacking this out myself.</description>
		<content:encoded><![CDATA[<p>Thanks! You just saved me some time and frustration in hacking this out myself.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
