<?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>Kommentarer till get_depth()</title>
	<atom:link href="http://www.devdevote.com/cms/wordpress-hacks/get_depth/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devdevote.com/cms/wordpress-hacks/get_depth</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 21 Aug 2011 16:59:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>Av: sharku</title>
		<link>http://www.devdevote.com/cms/wordpress-hacks/get_depth/comment-page-1#comment-820</link>
		<dc:creator>sharku</dc:creator>
		<pubDate>Tue, 03 May 2011 10:32:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.devdevote.com/?p=43#comment-820</guid>
		<description>i think it.s more that ok , i just tested with your kind of depth , cat-&gt;subcat-&gt;subsubcat-&gt;posts and work super duper ok ! i allso used &quot;Collapsing Categories&quot; plugin to get a nice list of categories in a widget</description>
		<content:encoded><![CDATA[<p>i think it.s more that ok , i just tested with your kind of depth , cat-&gt;subcat-&gt;subsubcat-&gt;posts and work super duper ok ! i allso used &#8221;Collapsing Categories&#8221; plugin to get a nice list of categories in a widget</p>
]]></content:encoded>
	</item>
	<item>
		<title>Av: jack</title>
		<link>http://www.devdevote.com/cms/wordpress-hacks/get_depth/comment-page-1#comment-819</link>
		<dc:creator>jack</dc:creator>
		<pubDate>Mon, 02 May 2011 09:43:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.devdevote.com/?p=43#comment-819</guid>
		<description>How failsafe is the function for the depth of category? I mean, because it depends on the ID. I have to make a website with more than a thousand categories: cat &gt; subcats &gt; subsubcats &gt; posts.</description>
		<content:encoded><![CDATA[<p>How failsafe is the function for the depth of category? I mean, because it depends on the ID. I have to make a website with more than a thousand categories: cat &gt; subcats &gt; subsubcats &gt; posts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Av: Maurizio Corò &#187; Wordpress &#8211; Profondità delle categorie</title>
		<link>http://www.devdevote.com/cms/wordpress-hacks/get_depth/comment-page-1#comment-810</link>
		<dc:creator>Maurizio Corò &#187; Wordpress &#8211; Profondità delle categorie</dc:creator>
		<pubDate>Wed, 06 Apr 2011 20:26:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.devdevote.com/?p=43#comment-810</guid>
		<description>[...] tutto qui: http://www.devdevote.com/cms/wordpress-hacks/get_depth  Tweet    Comments [...]</description>
		<content:encoded><![CDATA[<p>[...] tutto qui: <a href="http://www.devdevote.com/cms/wordpress-hacks/get_depth" rel="nofollow">http://www.devdevote.com/cms/wordpress-hacks/get_depth</a>  Tweet    Comments [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Av: Sander</title>
		<link>http://www.devdevote.com/cms/wordpress-hacks/get_depth/comment-page-1#comment-529</link>
		<dc:creator>Sander</dc:creator>
		<pubDate>Fri, 23 Jul 2010 22:27:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.devdevote.com/?p=43#comment-529</guid>
		<description>Thanks, saved me a lot of work!!!</description>
		<content:encoded><![CDATA[<p>Thanks, saved me a lot of work!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Av: Colin Morgan</title>
		<link>http://www.devdevote.com/cms/wordpress-hacks/get_depth/comment-page-1#comment-506</link>
		<dc:creator>Colin Morgan</dc:creator>
		<pubDate>Wed, 26 May 2010 19:35:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.devdevote.com/?p=43#comment-506</guid>
		<description>Thank you so much. It&#039;s very difficult to find advanced WordPress snippets like this. I&#039;ll be subscribing.</description>
		<content:encoded><![CDATA[<p>Thank you so much. It&#8217;s very difficult to find advanced WordPress snippets like this. I&#8217;ll be subscribing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Av: admin</title>
		<link>http://www.devdevote.com/cms/wordpress-hacks/get_depth/comment-page-1#comment-490</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 04 May 2010 05:45:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.devdevote.com/?p=43#comment-490</guid>
		<description>Yes, I always need backlinks. Thanks for asking.</description>
		<content:encoded><![CDATA[<p>Yes, I always need backlinks. Thanks for asking.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Av: Prince Eschen</title>
		<link>http://www.devdevote.com/cms/wordpress-hacks/get_depth/comment-page-1#comment-489</link>
		<dc:creator>Prince Eschen</dc:creator>
		<pubDate>Tue, 04 May 2010 03:38:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.devdevote.com/?p=43#comment-489</guid>
		<description>Hey could I reference some of the content here in this post if I reference you with a link back to your site?</description>
		<content:encoded><![CDATA[<p>Hey could I reference some of the content here in this post if I reference you with a link back to your site?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Av: admin</title>
		<link>http://www.devdevote.com/cms/wordpress-hacks/get_depth/comment-page-1#comment-29</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 17 Jan 2010 14:38:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.devdevote.com/?p=43#comment-29</guid>
		<description>It worked! I added you as a contributor to this post. A shorter way of doing it is this:
&lt;pre&gt;
&lt;?php echo count($post-&gt;ancestors); ?&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>It worked! I added you as a contributor to this post. A shorter way of doing it is this:</p>
<pre>
&lt;?php echo count($post->ancestors); ?&gt;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Av: Tom</title>
		<link>http://www.devdevote.com/cms/wordpress-hacks/get_depth/comment-page-1#comment-32</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Sat, 19 Dec 2009 14:45:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.devdevote.com/?p=43#comment-32</guid>
		<description>LooooooooooL
Thanks a lot for very helpful post !</description>
		<content:encoded><![CDATA[<p>LooooooooooL<br />
Thanks a lot for very helpful post !</p>
]]></content:encoded>
	</item>
	<item>
		<title>Av: Nathan Rice</title>
		<link>http://www.devdevote.com/cms/wordpress-hacks/get_depth/comment-page-1#comment-21</link>
		<dc:creator>Nathan Rice</dc:creator>
		<pubDate>Wed, 16 Sep 2009 14:25:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.devdevote.com/?p=43#comment-21</guid>
		<description>One way to get the depth of a page is to use the get_post_ancestors() function.

&lt;?php
$ancestors = get_post_ancestors($post);
$depth = count($ancestors);
?&gt;</description>
		<content:encoded><![CDATA[<p>One way to get the depth of a page is to use the get_post_ancestors() function.</p>
<p>< ?php<br />
$ancestors = get_post_ancestors($post);<br />
$depth = count($ancestors);<br />
?></p>
]]></content:encoded>
	</item>
</channel>
</rss>

