<?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>Klemmkeil.de</title>
	<atom:link href="http://www.klemmkeil.de/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.klemmkeil.de</link>
	<description>Webdesign, Programmierung, Tauchen</description>
	<lastBuildDate>Thu, 01 Apr 2010 20:55:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Breadcrumb für Wordpress ohne Plugin</title>
		<link>http://www.klemmkeil.de/breadcrumb-fur-wordpress-ohne-plugin/</link>
		<comments>http://www.klemmkeil.de/breadcrumb-fur-wordpress-ohne-plugin/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 20:42:58 +0000</pubDate>
		<dc:creator>Rainer</dc:creator>
				<category><![CDATA[Allgemein]]></category>

		<guid isPermaLink="false">http://www.klemmkeil.de/?p=142</guid>
		<description><![CDATA[Ich habe einen einfachen Breadcrumb für Wordpress gesucht und nichts gefunden, das mir gefallen hat. Entweder funktionierte der Code nicht, bediente nur eine Ebene oder er war einfach zu kompliziert.
Daher habe ich schnell einen eigenen geschrieben. Folgende Funktion in die functions.php einfügen:

1
2
3
4
5
6
function rm_breadcrumb&#40;&#41; &#123;
$bca = array_reverse&#40;get_post_ancestors&#40;$post&#41;&#41;;
foreach &#40;$bca as $bc&#41; $breadcrumb = $breadcrumb.&#34;&#60;a href='&#34;.get_permalink&#40;$bc&#41;.&#34;'&#62;&#34;.get_the_title&#40;$bc&#41;.&#34;&#60;/a&#62; &#38;raquo; &#34;;
$breadcrumb [...]]]></description>
			<content:encoded><![CDATA[<p>Ich habe einen einfachen Breadcrumb für Wordpress gesucht und nichts gefunden, das mir gefallen hat. Entweder funktionierte der Code nicht, bediente nur eine Ebene oder er war einfach zu kompliziert.</p>
<p>Daher habe ich schnell einen eigenen geschrieben. Folgende Funktion in die functions.php einfügen:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> rm_breadcrumb<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$bca</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array_reverse</span><span style="color: #009900;">&#40;</span>get_post_ancestors<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$bca</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$bc</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$breadcrumb</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$breadcrumb</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;a href='&quot;</span><span style="color: #339933;">.</span>get_permalink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$bc</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;'&gt;&quot;</span><span style="color: #339933;">.</span>get_the_title<span style="color: #009900;">&#40;</span><span style="color: #000088;">$bc</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/a&gt; &amp;raquo; &quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$breadcrumb</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$breadcrumb</span><span style="color: #339933;">.</span>get_the_title<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$breadcrumb</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Einfügen der Breadcrumbs in der page.php Deines Themes:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> rm_breadcrumb<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Das war&#8217;s auch schon, zu sehen auf den statischen Seiten dieser Homepage&#8230; <a href="http://www.klemmkeil.de/unterwasserbilder/malediven/2009/">Beispiel</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.klemmkeil.de/breadcrumb-fur-wordpress-ohne-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Jetzt blogge auch ich</title>
		<link>http://www.klemmkeil.de/jetzt-blogge-auch-ich/</link>
		<comments>http://www.klemmkeil.de/jetzt-blogge-auch-ich/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 00:06:06 +0000</pubDate>
		<dc:creator>Rainer</dc:creator>
				<category><![CDATA[Allgemein]]></category>

		<guid isPermaLink="false">http://www.klemmkeil.de/?p=94</guid>
		<description><![CDATA[nachdem meine alte Webseite Jahre lang vernachlässigt wurde, war es an der zeit etwas neues auszuprobieren. Dabei stieß ich auf das Open Source Programm Wordpress, das mich sehr schnell überzeugt hat und auf dessen Basis ich jetzt meine  Webseite betreibe.
Ab und zu wird es jetzt auch Blog Einträge von mir geben, zu Themen die sich [...]]]></description>
			<content:encoded><![CDATA[<p>nachdem meine alte Webseite Jahre lang vernachlässigt wurde, war es an der zeit etwas neues auszuprobieren. Dabei stieß ich auf das Open Source Programm Wordpress, das mich sehr schnell überzeugt hat und auf dessen Basis ich jetzt meine  Webseite betreibe.</p>
<p>Ab und zu wird es jetzt auch Blog Einträge von mir geben, zu Themen die sich noch zeigen werden. Neue <a href="http://www.divelogs.de" target="_self">divelogs</a> Funktionen, <a href="http://www.klemmkeil.de/unterwasserbilder/">Unterwasserbilder</a> oder was mir sonst noch wichtig erscheint.</p>
<p>Stay tuned&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.klemmkeil.de/jetzt-blogge-auch-ich/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
