<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SofaRider &#187; breadcrumbs</title>
	<atom:link href="http://rider.sofarider.com/tag/breadcrumbs/feed/" rel="self" type="application/rss+xml" />
	<link>http://rider.sofarider.com</link>
	<description>WordPress Themes, Widgets, Development &#124; WEB &#38; Graphic Design</description>
	<lastBuildDate>Wed, 14 Oct 2009 08:40:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Easy Breadcrumbs</title>
		<link>http://rider.sofarider.com/blog/wordpress-tips/easy-breadcrumbs/</link>
		<comments>http://rider.sofarider.com/blog/wordpress-tips/easy-breadcrumbs/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 07:10:42 +0000</pubDate>
		<dc:creator>Feeleep</dc:creator>
				<category><![CDATA[Wordpress Tips]]></category>
		<category><![CDATA[breadcrumbs]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[navigation]]></category>

		<guid isPermaLink="false">http://rider.sofarider.com/?p=86</guid>
		<description><![CDATA[Some themes or sites are well branched and navigation may go deeper than 2 levels only. In such cases building nested list of categories/subcategories (or pages/subpages) may look silly but in the same time 100% functional. Honestly, I&#8217;m not a fan of displaying mini site-map either in sidebar or drop-down so building sequential navigation in [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://rider.sofarider.com/wp-content/uploads/2009/06/how-to-make-whole-wheat-brown-bread-200x200.jpg" alt="how-to-make-whole-wheat-brown-bread" title="how-to-make-whole-wheat-brown-bread" width="200" height="200" class="alignnone size-thumbnail wp-image-93" />Some themes or sites are well branched and navigation may go deeper than 2 levels only. In such cases building nested list of categories/subcategories (or pages/subpages) may look silly but in the same time 100% functional. Honestly, I&#8217;m not a fan of displaying mini site-map either in sidebar or drop-down so building sequential navigation in conjuction with breadcrumbs would be much more elegant solution. </p>
<blockquote><p>I guess building sequential navigation will be the subject of another tutorial, right now we&#8217;ll stay focused on breadcrumbs only.</p></blockquote>
<p>What are breadcrumbs? These are nothing but a road map of your site. They will help visitor to navigate easily and not allow to make him lost. Just take a look above the title of this article and everything will be clear enough.</p>
<pre>
<code>
&lt;?php
	//where are we now?
	$categ_sp = get_the_category();
	//are there any parent categories?
	$my_parents = get_category_parents( $categ_sp[ 0 ]-&gt;cat_ID, TRUE, ',' );
	$arr_parents = explode( ',', $my_parents );
	//remove the last empty one if any
	array_pop( $arr_parents );
	if( count( $arr_parents ) &gt; 1 ) {
		echo '&lt;div id=&quot;breadcrumbz&quot;&gt;';
		echo '&lt;ul&gt;';
		echo '&lt;li&gt;&lt;a href=&quot;' . get_option( 'home' ) . '&quot;&gt;Home&lt;/a&gt; &amp;nbsp; &amp;gt;&lt;/li&gt;';
		$x = 0;
		while( $x &lt; count( $arr_parents ) ) {
			echo '&lt;li&gt;' . $arr_parents[ $x ] . ' &amp;nbsp; &amp;gt;&lt;/li&gt;';
			$x ++;
		}
		//for a case we are currently reading single article display title, not as a link
             if( is_single() ) echo '&lt;li&gt;' . get_the_title() . '&lt;/li&gt;';
		echo '&lt;/ul&gt;';
		echo '&lt;/div&gt;';
	}
?&gt;
</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://rider.sofarider.com/blog/wordpress-tips/easy-breadcrumbs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
