<?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: WordPress Conditional Tags In Action (Breadcrumbs)</title>
	<atom:link href="http://banhawi.com/2009/06/wordpress-conditional-tags-in-action-breadcrumbs/feed/" rel="self" type="application/rss+xml" />
	<link>http://banhawi.com/2009/06/wordpress-conditional-tags-in-action-breadcrumbs/</link>
	<description>Web Design and Development News and Tutorials</description>
	<lastBuildDate>Tue, 26 Jul 2011 23:22:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Matthew Burnett</title>
		<link>http://banhawi.com/2009/06/wordpress-conditional-tags-in-action-breadcrumbs/comment-page-1/#comment-197</link>
		<dc:creator>Matthew Burnett</dc:creator>
		<pubDate>Tue, 26 Jul 2011 23:22:38 +0000</pubDate>
		<guid isPermaLink="false">http://banhawi.com/?p=82#comment-197</guid>
		<description>I was looked to have linked parent pages, I made some additions:

[code]
elseif ( is_page() ) {

					if ($post-&gt;post_parent) {

						$children = $post-&gt;post_title;

						$parent = get_page($post-&gt;post_parent);
						$parent_link = get_page_link($post-&gt;post_parent);
						
						if ($parent-&gt;post_parent) {
							$extra_parent = get_page($parent-&gt;post_parent);
							$extra_parent_link = get_page_link($parent-&gt;post_parent);
							echo &quot;&lt;a href=&#039;$extra_parent_link&#039; rel=&quot;nofollow&quot;&gt;&quot;.$extra_parent-&gt;post_title.&quot;&lt;/a&gt; &quot;.&#039;&#187; &#039;;
						}
						
						echo &quot;&lt;a href=&#039;$parent_link&#039; rel=&quot;nofollow&quot;&gt;&quot;.$parent-&gt;post_title.&quot;&lt;/a&gt; &quot;.&#039;&#187; &#039;.&quot;&quot;.$children.&quot;&quot;;
					}
					elseif ( $post-&gt;post_parent == 0 ) {

					echo &quot;&quot; . the_title(). &quot;&quot;;

					}
[/code]</description>
		<content:encoded><![CDATA[<p>I was looked to have linked parent pages, I made some additions:</p>
<pre class="brush: plain; title: ; notranslate">
elseif ( is_page() ) {

					if ($post-&amp;gt;post_parent) {

						$children = $post-&amp;gt;post_title;

						$parent = get_page($post-&amp;gt;post_parent);
						$parent_link = get_page_link($post-&amp;gt;post_parent);

						if ($parent-&amp;gt;post_parent) {
							$extra_parent = get_page($parent-&amp;gt;post_parent);
							$extra_parent_link = get_page_link($parent-&amp;gt;post_parent);
							echo &quot;&lt;a href='$extra_parent_link' rel=&quot;nofollow&quot;&gt;&quot;.$extra_parent-&amp;gt;post_title.&quot;&lt;/a&gt; &quot;.'&amp;raquo; ';
						}

						echo &quot;&lt;a href='$parent_link' rel=&quot;nofollow&quot;&gt;&quot;.$parent-&amp;gt;post_title.&quot;&lt;/a&gt; &quot;.'&amp;raquo; '.&quot;&quot;.$children.&quot;&quot;;
					}
					elseif ( $post-&amp;gt;post_parent == 0 ) {

					echo &quot;&quot; . the_title(). &quot;&quot;;

					}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Organ</title>
		<link>http://banhawi.com/2009/06/wordpress-conditional-tags-in-action-breadcrumbs/comment-page-1/#comment-190</link>
		<dc:creator>David Organ</dc:creator>
		<pubDate>Sun, 31 Oct 2010 20:50:03 +0000</pubDate>
		<guid isPermaLink="false">http://banhawi.com/?p=82#comment-190</guid>
		<description>the get_setting() function has been depreciated and replaced by  get_option($optionname)</description>
		<content:encoded><![CDATA[<p>the get_setting() function has been depreciated and replaced by  get_option($optionname)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian</title>
		<link>http://banhawi.com/2009/06/wordpress-conditional-tags-in-action-breadcrumbs/comment-page-1/#comment-189</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Fri, 15 Oct 2010 09:52:39 +0000</pubDate>
		<guid isPermaLink="false">http://banhawi.com/?p=82#comment-189</guid>
		<description>Neato!

WP&#039;s get_*this*, get_*that* was giving me a hard time...

One thing I noticed - the check for Home should be

if( !is_home() ) {
...
}

instead of
if( is_home() ) {}
else {
...
}</description>
		<content:encoded><![CDATA[<p>Neato!</p>
<p>WP&#8217;s get_*this*, get_*that* was giving me a hard time&#8230;</p>
<p>One thing I noticed &#8211; the check for Home should be</p>
<p>if( !is_home() ) {<br />
&#8230;<br />
}</p>
<p>instead of<br />
if( is_home() ) {}<br />
else {<br />
&#8230;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Constantinos</title>
		<link>http://banhawi.com/2009/06/wordpress-conditional-tags-in-action-breadcrumbs/comment-page-1/#comment-187</link>
		<dc:creator>Constantinos</dc:creator>
		<pubDate>Sun, 26 Sep 2010 12:10:31 +0000</pubDate>
		<guid isPermaLink="false">http://banhawi.com/?p=82#comment-187</guid>
		<description>Cheers for this great code! Just wanted to ask you where to put in the php the wording &quot;You are here:&quot; and the breadcrumbs...

Thanks again.
Constantinos.</description>
		<content:encoded><![CDATA[<p>Cheers for this great code! Just wanted to ask you where to put in the php the wording &#8220;You are here:&#8221; and the breadcrumbs&#8230;</p>
<p>Thanks again.<br />
Constantinos.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://banhawi.com/2009/06/wordpress-conditional-tags-in-action-breadcrumbs/comment-page-1/#comment-180</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Fri, 12 Mar 2010 19:36:33 +0000</pubDate>
		<guid isPermaLink="false">http://banhawi.com/?p=82#comment-180</guid>
		<description>changing line 47 to this make the parent page an active link which it should be:

echo &quot;&lt;a&gt;post_parent).&quot; \&quot;&gt;&quot;.$parent-&gt;post_title.&quot;&lt;/a&gt; &gt;&quot;.&quot;&quot;.$children.&quot;&quot;;</description>
		<content:encoded><![CDATA[<p>changing line 47 to this make the parent page an active link which it should be:</p>
<p>echo &#8220;<a>post_parent).&#8221; \&#8221;&gt;&#8221;.$parent-&gt;post_title.&#8221;</a> &gt;&#8221;.&#8221;".$children.&#8221;";</p>
]]></content:encoded>
	</item>
</channel>
</rss>

