<?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: Easy Breadcrumb Navi With WordPress</title>
	<atom:link href="http://wpengineer.com/10/easy-breadcrumb-navi-with-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpengineer.com/10/easy-breadcrumb-navi-with-wordpress/</link>
	<description>WordPress News, Hacks, Tips, Tutorials, Plugins and Themes</description>
	<lastBuildDate>Mon, 21 May 2012 15:54:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Pictrix</title>
		<link>http://wpengineer.com/10/easy-breadcrumb-navi-with-wordpress/#comment-3939</link>
		<dc:creator>Pictrix</dc:creator>
		<pubDate>Fri, 16 Apr 2010 14:25:19 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=10#comment-3939</guid>
		<description>Blizna, 
I used your code in order to get the sub-categories.  I am trying to place the results within a div tag in order to style it, but no matter what I try my closing tag ends somewhere else.  

Any ideas as to how to add an html tag to this code? Thanks</description>
		<content:encoded><![CDATA[<p>Blizna,<br />
I used your code in order to get the sub-categories.  I am trying to place the results within a div tag in order to style it, but no matter what I try my closing tag ends somewhere else.  </p>
<p>Any ideas as to how to add an html tag to this code? Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blizna</title>
		<link>http://wpengineer.com/10/easy-breadcrumb-navi-with-wordpress/#comment-3666</link>
		<dc:creator>Blizna</dc:creator>
		<pubDate>Tue, 09 Mar 2010 02:54:43 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=10#comment-3666</guid>
		<description>Hi @Tony

&lt;code&gt;if (!function_exists(&#039;fb_breadcrumb_nav&#039;)) {
	function fb_breadcrumb_nav() {
		if ( !is_home() &#124;&#124; !is_front_page() ) {
			global $post;
			_e(&#039; &lt;a href=&quot;&#039;) . _e( get_option(&#039;home&#039;) ) . _e(&#039;&quot; rel=&quot;nofollow&quot;&gt;&#039;) . bloginfo(&#039;name&#039;) . _e(&#039;&lt;/a&gt; &#187; &#039;);
			if ( is_category() ) {
				single_cat_title();
				//the_category(&#039;, &#039;);
			} elseif ( is_single() ) {
					the_category(&#039;, &#039;) . _e(&#039; &#187; &#039;) . the_title() . _e(&#039;&#039;);
			} elseif ( is_page() &amp;&amp; $post-&gt;post_parent ) {
				_e( get_the_title($post-&gt;post_parent) );
				_e(&#039; &#187; &#039;);
				_e( the_title() .&#039;&#039;);
			} elseif ( is_page() ) {
				_e( the_title() . &#039;&#039;);			
			} elseif ( is_search() ) {
				_e(&#039;Suche nach: &#039;) . the_search_query() . _e(&#039;&#039;);
			}
		}
	}
}&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi @Tony</p>
<p><code>if (!function_exists('fb_breadcrumb_nav')) {<br />
	function fb_breadcrumb_nav() {<br />
		if ( !is_home() || !is_front_page() ) {<br />
			global $post;<br />
			_e(' <a href="') . _e( get_option('home') ) . _e('" rel="nofollow">') . bloginfo('name') . _e('</a> &raquo; ');<br />
			if ( is_category() ) {<br />
				single_cat_title();<br />
				//the_category(', ');<br />
			} elseif ( is_single() ) {<br />
					the_category(', ') . _e(' &raquo; ') . the_title() . _e('');<br />
			} elseif ( is_page() &amp;&amp; $post-&gt;post_parent ) {<br />
				_e( get_the_title($post-&gt;post_parent) );<br />
				_e(' &raquo; ');<br />
				_e( the_title() .'');<br />
			} elseif ( is_page() ) {<br />
				_e( the_title() . '');<br />
			} elseif ( is_search() ) {<br />
				_e('Suche nach: ') . the_search_query() . _e('');<br />
			}<br />
		}<br />
	}<br />
}</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Levani</title>
		<link>http://wpengineer.com/10/easy-breadcrumb-navi-with-wordpress/#comment-3177</link>
		<dc:creator>Levani</dc:creator>
		<pubDate>Sun, 03 Jan 2010 09:11:50 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=10#comment-3177</guid>
		<description>It doesn&#039;t displays all the categories that the post belong to! I have a post that belong to one sub category, when I enter the best it should displays something like this:

Home page &gt; Main category &gt; Sub category &gt; post title

but it only displays:

Home page &gt; Sub category &gt; post title</description>
		<content:encoded><![CDATA[<p>It doesn't displays all the categories that the post belong to! I have a post that belong to one sub category, when I enter the best it should displays something like this:</p>
<p>Home page &gt; Main category &gt; Sub category &gt; post title</p>
<p>but it only displays:</p>
<p>Home page &gt; Sub category &gt; post title</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://wpengineer.com/10/easy-breadcrumb-navi-with-wordpress/#comment-3038</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Fri, 18 Dec 2009 19:45:39 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=10#comment-3038</guid>
		<description>@Al

A slight modification to the is_page() &amp; $post-&gt;parent condition can do that.  Instead of using $post-&gt;parent, use $post-&gt;ancestor.

replace ...

elseif (is_page() &amp;&amp; $post-&gt;post_parent ) {
	_e( get_the_title($post-&gt;post_parent) );
	_e(&#039; &#187; &#039;);
	_e( the_title() );
}

with ...

elseif (is_page() &amp;&amp; count($post-&gt;ancestors) &gt; 0 ) {

    for ($i = count($post-&gt;ancestors)-1; $i&gt;=0; $i--) {

        _e( get_the_title($post-&gt;post_ancestors[$i]) );
        _e(&#039; &#187; &#039;);

    }

    _e( the_title() ) . _e( &#039;&#039;);

}

That should work.  The principle is to use the array of ancestors you get through $post-&gt;ancestors and iterate through that.</description>
		<content:encoded><![CDATA[<p>@Al</p>
<p>A slight modification to the is_page() &amp; $post-&gt;parent condition can do that.  Instead of using $post-&gt;parent, use $post-&gt;ancestor.</p>
<p>replace ...</p>
<p>elseif (is_page() &amp;&amp; $post-&gt;post_parent ) {<br />
	_e( get_the_title($post-&gt;post_parent) );<br />
	_e(' &raquo; ');<br />
	_e( the_title() );<br />
}</p>
<p>with ...</p>
<p>elseif (is_page() &amp;&amp; count($post-&gt;ancestors) &gt; 0 ) {</p>
<p>    for ($i = count($post-&gt;ancestors)-1; $i&gt;=0; $i--) {</p>
<p>        _e( get_the_title($post-&gt;post_ancestors[$i]) );<br />
        _e(' &raquo; ');</p>
<p>    }</p>
<p>    _e( the_title() ) . _e( '');</p>
<p>}</p>
<p>That should work.  The principle is to use the array of ancestors you get through $post-&gt;ancestors and iterate through that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Al</title>
		<link>http://wpengineer.com/10/easy-breadcrumb-navi-with-wordpress/#comment-1968</link>
		<dc:creator>Al</dc:creator>
		<pubDate>Sun, 08 Nov 2009 14:09:17 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=10#comment-1968</guid>
		<description>Thanks heaps, working well although I&#039;m trying to modify it a bit to go another level deeper (on pages) and also grab the url&#039;s of the parent/grandparent pages.</description>
		<content:encoded><![CDATA[<p>Thanks heaps, working well although I'm trying to modify it a bit to go another level deeper (on pages) and also grab the url's of the parent/grandparent pages.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lillan</title>
		<link>http://wpengineer.com/10/easy-breadcrumb-navi-with-wordpress/#comment-1954</link>
		<dc:creator>Lillan</dc:creator>
		<pubDate>Thu, 05 Nov 2009 11:13:28 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=10#comment-1954</guid>
		<description>Catalin, oh yes. It works in wp 2.8.5. It&#039;s perfect. Tnx</description>
		<content:encoded><![CDATA[<p>Catalin, oh yes. It works in wp 2.8.5. It's perfect. Tnx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Catalin Zalog</title>
		<link>http://wpengineer.com/10/easy-breadcrumb-navi-with-wordpress/#comment-1285</link>
		<dc:creator>Catalin Zalog</dc:creator>
		<pubDate>Mon, 15 Jun 2009 09:27:09 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=10#comment-1285</guid>
		<description>Not working in wordpress 2.8 ...</description>
		<content:encoded><![CDATA[<p>Not working in wordpress 2.8 ...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://wpengineer.com/10/easy-breadcrumb-navi-with-wordpress/#comment-1025</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sat, 18 Apr 2009 10:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=10#comment-1025</guid>
		<description>@Active Blogger, true, there are a lot of breadcrump plugins available, some of theme with a big load of code, which is definitely not necessary.</description>
		<content:encoded><![CDATA[<p>@Active Blogger, true, there are a lot of breadcrump plugins available, some of theme with a big load of code, which is definitely not necessary.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Active Blogger</title>
		<link>http://wpengineer.com/10/easy-breadcrumb-navi-with-wordpress/#comment-1017</link>
		<dc:creator>Active Blogger</dc:creator>
		<pubDate>Thu, 16 Apr 2009 06:33:51 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=10#comment-1017</guid>
		<description>Great tips, I was looking for it for quite some time. Most of the site I found only tell about plugin...thanks.</description>
		<content:encoded><![CDATA[<p>Great tips, I was looking for it for quite some time. Most of the site I found only tell about plugin...thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BreadCramp Navigation στο Wordpress &#124; WpGreece - Basilis Kanonidis WP Greek Coding!</title>
		<link>http://wpengineer.com/10/easy-breadcrumb-navi-with-wordpress/#comment-728</link>
		<dc:creator>BreadCramp Navigation στο Wordpress &#124; WpGreece - Basilis Kanonidis WP Greek Coding!</dc:creator>
		<pubDate>Sat, 21 Feb 2009 10:44:08 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=10#comment-728</guid>
		<description>[...] ψάχνοντας, βρήκα μία πολύ ενδιαφέρουσα Function. Δύο για την ακρίβεια, αλλά η δεύτερη αν και είναι ποιό [...]</description>
		<content:encoded><![CDATA[<p>[...] ψάχνοντας, βρήκα μία πολύ ενδιαφέρουσα Function. Δύο για την ακρίβεια, αλλά η δεύτερη αν και είναι ποιό [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

