<?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: Creating Breadcrumb Navigation in WordPress</title>
	<atom:link href="http://www.itsananderson.com/2008/12/creating-breadcrumb-navigation-in-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.itsananderson.com/2008/12/creating-breadcrumb-navigation-in-wordpress/</link>
	<description>WordPress, Programming, Life</description>
	<lastBuildDate>Fri, 13 Jan 2012 09:00:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Will</title>
		<link>http://www.itsananderson.com/2008/12/creating-breadcrumb-navigation-in-wordpress/#comment-819</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Mon, 11 Oct 2010 02:07:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.itsananderson.com/?p=312#comment-819</guid>
		<description>Nice! Glad it worked so well for you.</description>
		<content:encoded><![CDATA[<p>Nice! Glad it worked so well for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.itsananderson.com/2008/12/creating-breadcrumb-navigation-in-wordpress/#comment-818</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Mon, 11 Oct 2010 00:51:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.itsananderson.com/?p=312#comment-818</guid>
		<description>Thanks!  This worked like a charm right away, and was easily fit into a purchased theme that had broken breadcrumb linking.  Was able to still use the CSS from the theme, but use this function to create the breadcrumbs and links in just a few minutes.</description>
		<content:encoded><![CDATA[<p>Thanks!  This worked like a charm right away, and was easily fit into a purchased theme that had broken breadcrumb linking.  Was able to still use the CSS from the theme, but use this function to create the breadcrumbs and links in just a few minutes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrei</title>
		<link>http://www.itsananderson.com/2008/12/creating-breadcrumb-navigation-in-wordpress/#comment-750</link>
		<dc:creator>Andrei</dc:creator>
		<pubDate>Fri, 10 Sep 2010 02:11:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.itsananderson.com/?p=312#comment-750</guid>
		<description>You rocked my world!!  Works Great!  This is the version I ended up using with Shae&#039;s suggestion for not linking to current page.  I also didn&#039;t need the breadcrumbs on my homepage, or posts so I took those sections out as well as the  and line breaks:



function get_breadcrumbs(){
	global $post;

	$separator = &#039;  &gt; &#039;; // what to place between the pages

	if ( is_page() ){
		// bread crumb structure only logical on pages
		$trail = array($post); // initially $trail only contains the current page
		$parent = $post; // initially set to current post
		$show_on_front = get_option( &#039;show_on_front&#039;); // does the front page display the latest posts or a static page
		$page_on_front = get_option( &#039;page_on_front&#039; ); // if it shows a page, what page
		// while the current page isn&#039;t the home page and it has a parent
		while ( $parent-&gt;post_parent &amp;&amp; !($parent-&gt;ID == $page_on_front &amp;&amp; &#039;page&#039;) == $show_on_front ){
			$parent = get_post( $parent-&gt;post_parent ); // get the current page&#039;s parent
			array_unshift( $trail, $parent ); // add the parent object to beginning of array
		}
		if ( &#039;posts&#039; == $show_on_front ) // if the front page shows latest posts, simply display a home link
			echo &quot;&lt;a&gt;Home&lt;/a&gt;&quot;; // home page link
	
		foreach ( $trail as $page){
		
			if ($page-&gt;ID==$post-&gt;ID) {
				// print the link to the current page in the foreach
				echo &quot;$separator{$page-&gt;post_title}&quot;;
			} else {
			echo &quot;$separator&lt;a&gt;ID ) . &quot;&#039;&gt;{$page-&gt;post_title}&lt;/a&gt;&quot;;
	
			}
		}
	}
}</description>
		<content:encoded><![CDATA[<p>You rocked my world!!  Works Great!  This is the version I ended up using with Shae&#8217;s suggestion for not linking to current page.  I also didn&#8217;t need the breadcrumbs on my homepage, or posts so I took those sections out as well as the  and line breaks:</p>
<p>function get_breadcrumbs(){<br />
	global $post;</p>
<p>	$separator = &#8216;  &gt; &#8216;; // what to place between the pages</p>
<p>	if ( is_page() ){<br />
		// bread crumb structure only logical on pages<br />
		$trail = array($post); // initially $trail only contains the current page<br />
		$parent = $post; // initially set to current post<br />
		$show_on_front = get_option( &#8216;show_on_front&#8217;); // does the front page display the latest posts or a static page<br />
		$page_on_front = get_option( &#8216;page_on_front&#8217; ); // if it shows a page, what page<br />
		// while the current page isn&#8217;t the home page and it has a parent<br />
		while ( $parent-&gt;post_parent &amp;&amp; !($parent-&gt;ID == $page_on_front &amp;&amp; &#8216;page&#8217;) == $show_on_front ){<br />
			$parent = get_post( $parent-&gt;post_parent ); // get the current page&#8217;s parent<br />
			array_unshift( $trail, $parent ); // add the parent object to beginning of array<br />
		}<br />
		if ( &#8216;posts&#8217; == $show_on_front ) // if the front page shows latest posts, simply display a home link<br />
			echo &#8220;<a>Home</a>&#8220;; // home page link</p>
<p>		foreach ( $trail as $page){</p>
<p>			if ($page-&gt;ID==$post-&gt;ID) {<br />
				// print the link to the current page in the foreach<br />
				echo &#8220;$separator{$page-&gt;post_title}&#8221;;<br />
			} else {<br />
			echo &#8220;$separator<a>ID ) . &#8220;&#8216;&gt;{$page-&gt;post_title}</a>&#8220;;</p>
<p>			}<br />
		}<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reimar Twelker</title>
		<link>http://www.itsananderson.com/2008/12/creating-breadcrumb-navigation-in-wordpress/#comment-731</link>
		<dc:creator>Reimar Twelker</dc:creator>
		<pubDate>Wed, 08 Sep 2010 09:02:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.itsananderson.com/?p=312#comment-731</guid>
		<description>Thanks for sharing, this helped a great deal! I added support for categories, and while this may not be &quot;logical&quot; it makes sense to me, because categories are organized in a hierarchy just like pages, and it is convenient to browse categories using the breadcrumb.

[...]

else if (is_category()) {
		
  global $wp_query;
		
  // Get the queried category
  $queried = $wp_query-&gt;get_queried_object();
		
  // Append its hierarchy to the document (links)
  echo $separator . get_category_parents($queried-&gt;term_id, 1, $separator);
	
} else if (is_single()) {
		
  $cats = get_the_category();
		
  // Append the hierarchy of categories to the document (links)
  // Note: if posts are associated with more than one category, printing the hierarchies in this way may not be desirable

  echo $separator . get_category_parents($cats[0], 1, $separator);
		
  // Append the title of the current single element (text)
  the_title();		
}</description>
		<content:encoded><![CDATA[<p>Thanks for sharing, this helped a great deal! I added support for categories, and while this may not be &#8220;logical&#8221; it makes sense to me, because categories are organized in a hierarchy just like pages, and it is convenient to browse categories using the breadcrumb.</p>
<p>[...]</p>
<p>else if (is_category()) {</p>
<p>  global $wp_query;</p>
<p>  // Get the queried category<br />
  $queried = $wp_query-&gt;get_queried_object();</p>
<p>  // Append its hierarchy to the document (links)<br />
  echo $separator . get_category_parents($queried-&gt;term_id, 1, $separator);</p>
<p>} else if (is_single()) {</p>
<p>  $cats = get_the_category();</p>
<p>  // Append the hierarchy of categories to the document (links)<br />
  // Note: if posts are associated with more than one category, printing the hierarchies in this way may not be desirable</p>
<p>  echo $separator . get_category_parents($cats[0], 1, $separator);</p>
<p>  // Append the title of the current single element (text)<br />
  the_title();<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pd</title>
		<link>http://www.itsananderson.com/2008/12/creating-breadcrumb-navigation-in-wordpress/#comment-396</link>
		<dc:creator>pd</dc:creator>
		<pubDate>Mon, 19 Oct 2009 12:21:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.itsananderson.com/?p=312#comment-396</guid>
		<description>Excellent bit of work that, thanks for sharing. It saved an awful lot of time.

Cheers

Paul</description>
		<content:encoded><![CDATA[<p>Excellent bit of work that, thanks for sharing. It saved an awful lot of time.</p>
<p>Cheers</p>
<p>Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joakim Nystrom</title>
		<link>http://www.itsananderson.com/2008/12/creating-breadcrumb-navigation-in-wordpress/#comment-335</link>
		<dc:creator>Joakim Nystrom</dc:creator>
		<pubDate>Tue, 18 Aug 2009 21:07:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.itsananderson.com/?p=312#comment-335</guid>
		<description>Finally! This have driven me insane. Big thanx! This helps out a lot!</description>
		<content:encoded><![CDATA[<p>Finally! This have driven me insane. Big thanx! This helps out a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shae</title>
		<link>http://www.itsananderson.com/2008/12/creating-breadcrumb-navigation-in-wordpress/#comment-261</link>
		<dc:creator>shae</dc:creator>
		<pubDate>Fri, 01 May 2009 20:56:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.itsananderson.com/?p=312#comment-261</guid>
		<description>thanks! exactly what I was looking for.

I changed it slightly so that the CURRENT page, is no longer hyperlinked:

foreach ( $trail as $page){
			// print the link to the current page in the foreach
			if ($page-&gt;ID==$post-&gt;ID) {
			echo &quot;ID}&#039; &gt;$separator{$page-&gt;post_title}\n&quot;;
		    } else {
			echo &quot;ID}&#039; &gt;$separator&lt;a&gt;ID ) . &quot;&#039;&gt;{$page-&gt;post_title}&lt;/a&gt;\n&quot;;
			}
		}</description>
		<content:encoded><![CDATA[<p>thanks! exactly what I was looking for.</p>
<p>I changed it slightly so that the CURRENT page, is no longer hyperlinked:</p>
<p>foreach ( $trail as $page){<br />
			// print the link to the current page in the foreach<br />
			if ($page-&gt;ID==$post-&gt;ID) {<br />
			echo &#8220;ID}&#8217; &gt;$separator{$page-&gt;post_title}\n&#8221;;<br />
		    } else {<br />
			echo &#8220;ID}&#8217; &gt;$separator<a>ID ) . &#8220;&#8216;&gt;{$page-&gt;post_title}</a>\n&#8221;;<br />
			}<br />
		}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ways of Creating Breadcrumbs in Wordpress - Wordpress Article by Addicott Web, Chicago Web Design &#38; Web Consulting</title>
		<link>http://www.itsananderson.com/2008/12/creating-breadcrumb-navigation-in-wordpress/#comment-259</link>
		<dc:creator>Ways of Creating Breadcrumbs in Wordpress - Wordpress Article by Addicott Web, Chicago Web Design &#38; Web Consulting</dc:creator>
		<pubDate>Wed, 29 Apr 2009 16:47:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.itsananderson.com/?p=312#comment-259</guid>
		<description>[...] Wordpress Breadcrumbs [...]</description>
		<content:encoded><![CDATA[<p>[...] WordPress Breadcrumbs [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

