<?xml version="1.0"?><!-- 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>Weblogtoolscollection News Topic: [New Plugin]: Category Ancestor</title>
<link>http://weblogtoolscollection.com/news/</link>
<description>Weblogtoolscollection News Topic: [New Plugin]: Category Ancestor</description>
<language>en</language>
<pubDate>Tue, 14 Feb 2012 08:56:07 +0000</pubDate>

<item>
<title>lumlune on "[New Plugin]: Category Ancestor"</title>
<link>http://weblogtoolscollection.com/news/topic/new-plugin-category-ancestor#post-6336</link>
<pubDate>Thu, 21 Jan 2010 07:02:01 +0000</pubDate>
<dc:creator>lumlune</dc:creator>
<guid isPermaLink="false">6336@http://weblogtoolscollection.com/news/</guid>
<description>&#60;p&#62;Category Ancestor is a plugin that adds a function you can use anywhere in your theme : get_category_ancestor($thecat) retrieves the highest level parent of any category. &#60;/p&#62;
&#60;p&#62;It can be used for styling posts or category pages for &#60;strong&#62;groups of categories&#60;/strong&#62;. &#60;/p&#62;
&#60;p&#62;Up to now, you had two ways to check if a category was a part of a group of categories : &#60;/p&#62;
&#60;ul&#62;
&#60;li&#62;Create an array, and test with category__in&#60;/li&#62;
&#60;li&#62;Test if category A was ancestor of category B&#60;/li&#62;
&#60;/ul&#62;
&#60;p&#62;With Category Ancestor, you have directly the Ancestor, and you can have it as a slug, which is much more readable than an id number.&#60;br /&#62;
You can use it for tests, or to add a specific class. &#60;/p&#62;
&#60;p&#62;Used in combination with custom fields, Category Ancestor can help you manage pseudo contents types.&#60;br /&#62;
I use it for example on a travel repertory, where we have several categories for hotels, and want to style all of them in a specific way. &#60;/p&#62;
&#60;p&#62;The plugin can be downloaded on its &#60;a href=&#34;http://www.lumieredelune.com/encrelune/category-ancestor-plugin,2010,01&#34;&#62;blog post&#60;/a&#62;
&#60;/p&#62;</description>
</item>

</channel>
</rss>
