<?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>Texto.de - Mein WordPress Magazin &#187; sidebar</title>
	<atom:link href="http://www.texto.de/tag/sidebar/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.texto.de</link>
	<description>Tutorials zu  WordPress als Blog, WordPress als CMS, WP SEO tauglich machen - einfach ein WP Nachschlagewerk</description>
	<lastBuildDate>Tue, 31 Jan 2012 22:41:38 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Praxis: Sidebar für eine bestimmte Kategorie</title>
		<link>http://www.texto.de/praxis-sidebar-fuer-eine-bestimmte-kategorie-1264/</link>
		<comments>http://www.texto.de/praxis-sidebar-fuer-eine-bestimmte-kategorie-1264/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 23:21:21 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[WP-CMS]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[WordPress Theme]]></category>

		<guid isPermaLink="false">http://www.texto.de/?p=1264</guid>
		<description><![CDATA[Eine Sidebar mit ganz eigenen Widgets  für eine ganz bestimmte Kategorie. Wie geht man dabei in WordPress   vor, was sollte man beachten. ]]></description>
			<content:encoded><![CDATA[<dl class="left" style="width:260px;">
<dt>&nbsp;</dt>
<dd><img  src="http://www.texto.de/wp-images/wordpress-cms-komplexe-projekte.jpg" alt="WP  Praxis eine Sidebar für eine Kategorie" width="250" height="250" /></dd>
</dl>
<p><span class="caplize">W</span>ie geht man vor, um für eine bestimmte Kategorie eine anders gestaltete/aufgebaute (auch mit Widgets bestückte) Sidebar aufzurufen? &#8211; Dies wurde ich per E-mail gefragt.  Ich zeige hier in diesem Artikel einen Weg auf. Doch wie immer gilt, es gibt ganz viele Wege nach Rom <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . Kommt drauf an was man schlussendlich wirklich alles braucht. </p>
<p>Wenn solche Arbeitsschritte erklärt werden liest sich dies meist langsamer als es dann gemacht wird. Und ich versuche immer sehr genau zu erklären, so dass Du dies wirklich 1:1 nachmachen kannst. </p>
<h3>Was man dazu braucht:</h3>
<ul>
<li>Einen Texteditor (WordPad ist keiner)
</li>
<li>die category.php oder archive.php des verwendeten Themes.
</li>
<li>den &#8220;Category Slug&#8221; der gewählten Kategorie.
</li>
<li>die sidebar.php.
</li>
<li>die functions.php um dort neue Widgets einzutragen und für ein paar neue Funktionen.
</li>
</ul>
<p><span id="more-1264"></span></p>
<h3>das neue Template category-slug.php erstellen</h3>
<p>Um die Übersicht in dem ThemeOrdner zu bewahren ist es günstig für solche Aktionen wirklich ein eigenes <strong>category-slug.php </strong>Template zu erstellen.</p>
<p>Einfach die category.php, wenn die nicht da ist im ThemeOrdner, dann die archive.php öffnen und als category-slug.php abspeichern.</p>
<p>Den &#8220;Slug&#8221; einer Kategorie findest Du entweder in der URL, oder <strong>Dashboard ==> Artikeln==>Kategorie==> Titelform</strong>.</p>
<p>WordPress erkennt solche Templates von sich aus, dies habe ich mal <a href="http://www.texto.de/update-cheat-cheet-wp-template-hierarchie-909/" title="Template Hierarchy">hier</a> beschrieben. </p>
<h3>das neue Template sidebar-categoryslug.php</h3>
<p>Ebenfalls der Übersicht wegen ist es günstig, die neue Sidebar unter dem &#8220;Slug&#8221; /Titelform dieser Kategorie abzuspeichern.</p>
<p>Also sidebar.php öffnen und als sidebar-categoryslug.php abspeichern.<br />
WordPress erkennt dieses Template (noch) nicht von selbst, aber es erleichtert ungemein den Durchblick <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h3>category-slug.php und sidebar-categoryslug.php bekanntmachen</h3>
<p>Naja mir fiel da jetzt wirklich keine andere Überschrift ein, aber die category-slug.php weiß noch nicht, dass sie die neue Sidebar sidebar-categoryslug.php  herzeigen sollte, also muss man es ihr sagen. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Ganz am Ende der category-slug.php steht sicher:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Steht dies nicht dort, dann ist dieses Theme sicher ein eigenes Framework und ich tät dann davon abraten dies zu tun, außer man kennt sich in PHP gut aus => oder man fragt die ThemeErsteller. </p>
<p>Aber findest Du dort get_sidebar dann kann man WP sagen, dass es da eine spezielle Sidebar gibt:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'categorslug'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Nun sucht WP nach einem Template das sidebar-categoryslug heißt und nimmt es. </p>
<p>Ab jetzt kann man in dieser Sidebar anzeigen was auch immer man mag, es wird nur für diese Kategorie genommen. </p>
<h3>functions.php neue Widgets erstellen</h3>
<p>Meist stehen in der functions.php bereits Widgets, dort findet man dann auch wie das HTML für dieses Theme dort angeben ist. Ich nehm hier Beispiele aus TwentyTen Eleven.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">register_sidebar<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
<span style="color: #0000ff;">'name'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'CategorySlugKATS'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'twentyeleven'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'id'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'sidebar-8'</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'description'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'The sidebar for the special Category CategorySlug'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'twentyeleven'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'before_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;aside id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;'</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'after_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;&lt;/aside&gt;&quot;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'before_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;h3 class=&quot;widget-title&quot;&gt;'</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'after_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/h3&gt;'</span><span style="color: #339933;">,</span>
<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Dies in die functions.php kopieren und dort sooft kopieren wie Du Widgets brauchst. name, id und description ändern, so dass es für Dich gut verständlich ist wofür dieses Widget da ist. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
Sollte in der functions.php bereits ein Widget mit der ID 8 sein, dann logischerweise bitte eine andere nehmen. IDs kann es immer nur eine geben <img src='http://www.texto.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Widget1 oder Widget3 ist ganz nett, aber sagt Null, Nade Nix aus und spätestens nach 3 Monaten fragt man sich was das da soll.</p>
<h3>Widgets erstellt und nun in der sidebar-categoryslug.php abrufen.</h3>
<p>In der sidebar-categoryslug.php stehen vielleicht schon Widgets. Keine Ahnung, wenn dann löschen und durch das ersetzen.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> dynamic_sidebar<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'sidebar-8'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// end sidebar widget area  ID 8 ?&gt;</span></pre></div></div>

<p>sidebar-8 => die ID (!)</p>
<p>Hast du für diese Sidebar mehrere solche Widgets &#8220;Flächen&#8221; erstellt, dann eben sooft wiederholen wie nötig und die IDs anpassen. </p>
<p>Alle Templates   hochladen. Unter <strong>Dashboard=> Design=>Widgets </strong>diese befüllen und fertig biste.</p>
<h3>Haben nun auch alle Artikel dieser Kategorie diese Sidebar</h3>
<p>Nein.</p>
<p>Diese Sidebar wird aber nur in der Kategorie genommen. Sie erscheint noch nicht bei den Artikeln in dieser Kategorie.</p>
<p>Das aber wird ein nächster Artikel unter dem Stichwort: aus der Praxis&#8230;.., weil sonst wirds wirklich zulang. </p>
<div class="sign">Hast Du Fragen dazu einfach fragen bitte.   <img src="http://www.texto.de/wp-images/smilies/icon_confused.gif" alt="Kaffeetrinkender Smilie" width="27" height="21" /></div>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. Original article:  <a href="http://www.texto.de/praxis-sidebar-fuer-eine-bestimmte-kategorie-1264/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/praxis-sidebar-fuer-eine-bestimmte-kategorie-1264/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>bestimmtes Widget nur für die Startseite &#8211; Schritt für Schritt Tutorial</title>
		<link>http://www.texto.de/bestimmtes-widget-nur-fuer-die-startseite-schritt-fuer-schritt-tutorial-622/</link>
		<comments>http://www.texto.de/bestimmtes-widget-nur-fuer-die-startseite-schritt-fuer-schritt-tutorial-622/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 16:40:00 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[WordPress Quick Tipps]]></category>

		<guid isPermaLink="false">http://www.texto.de/texto/bestimmtes-widget-nur-fuer-die-startseite-schritt-fuer-schritt-tutorial/</guid>
		<description><![CDATA[Du verwendest Widgets und magst nur auf der Startseite ein ganz bestimmtes davon haben. Ich zeige hier mehrere Lösungen in einer Schritt für Schritt Anleitung auf. ]]></description>
			<content:encoded><![CDATA[<p><span class="caplize">D</span>u verwendest Widgets und magst aber ein ganz bestimmtes nur auf der Startseite haben. Du findest hier eine Lösung mit dem Widget Logic Plugin und eine Schritt für Schritt Anleitung wie Du Deine Sidebar so umbauen kannst, dass dies auch ohne Plugin möglich ist. Ganz am Schluß gibt es noch Tipps wie dies auch für eine ganz bestimmte Kategorie oder statische Seite funktioniert.</p>
<h3> ein bestimmtes Widget nur auf der Startseite nutzen &#8211; die Pluginlösung</h3>
<p>Du brauchst dafür das <a href="http://freakytrigger.co.uk/wordpress-setup/" title="Widget Logic Plugin"><strong>Widget Logic Plugin</strong></a>. Dieses Plugin ermöglicht die Verwendung sogenannter <strong>Conditonal Tags</strong>. Das sind &#8220;wenn-dann-sonst&#8221; -also Bedingungsabfragen. Magst Du mehr über die Conditional Tags wissen, dann lies <a href="http://www.texto.de/update-cheat-cheet-wp-template-hierarchie-909/" title="Conditional Tags">diesen Artikel</a> von mir. </p>
<ol>
<li>Plugin entpacken.</li>
<li>In den Ordner wp-content/plugins hochladen und</li>
<li>Admincenter==>Plugins==>aktivieren.</li>
</ol>
<p>Jetzt kannst Du bei den Widgets diese <span id="more-622"></span>Conditional Tags einfügen. </p>
<h3>Widget nur auf der Startseite -der Code</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_home<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h3>Widget nur auf der statischen Seite mit der ID 10</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_page<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'10'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Mehr solche Beispiele findest Du auf der Pluginseite und  <a href="http://wordpress.org/extend/plugins/widget-logic/other_notes/" title="Widget Logic Plugin">hier</a>. </p>
<h3>Sidebar so herrichten, dass Du Widgets nur auf der Startseite anzeigen kannst</h3>
<p>Ich nehm dafür die Sidebar.php des default_de Themes.  Damit kann ich es zeigen und ich empfehle übe es mal mit der, da ist nicht viel kaputt, wenn es nicht gleich klappt. </p>
<p>Außerdem brauchst Du einen Texteditor. Niemals MS Word! <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Die functions.php des verwendeten Themes braucht man auch. </p>
<h3>Sidebar.php für mehrere Widget Abschnitte herrichten</h3>
<p>Öffnest Du die sidebar.php mit dem Texteditor siehst Du ganz oben folgendes:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">	&lt;div id=&quot;sidebar&quot;&gt;
		&lt;ul&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> 	<span style="color: #666666; font-style: italic;">/* Widgetized sidebar, if you have the plugin installed. */</span>
					<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'dynamic_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #339933;">!</span>dynamic_sidebar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Das (1.Punkt )</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> 	<span style="color: #666666; font-style: italic;">/* Widgetized sidebar, if you have the plugin installed. */</span>
					<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'dynamic_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #339933;">!</span>dynamic_sidebar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>ist der Beginn eines Widget Abschnitts. Da es nur einer ist in der ganzen Sidebar.php hat er auch keinen Namen. Mag man mehrere Widgetabschnitte haben, muß man diesen einen Namen geben, damit man dann im Admincenter==>Design==>Widgets die einzelnen Abschnitte auch auswählen kann.</p>
<p>Wenn PHP zu arbeiten anfängt mit &lt;?php muß man ihm auch wieder sagen, wann es genug gearbeitet hat, dies findest Du ganz am Ende der sidebar.php und sieht so aus.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&nbsp;
		&lt;/ul&gt;
&lt;/div&gt;</pre></div></div>

<p>Alles dazwischen braucht man nur, wenn man keine Widgets verwendet, also kann man es in unserem Beispiel auch weglassen. </p>
<h3>Widget Abschnitte einen Namen geben</h3>
<p>Mit folgendem Code überschreibst Du den Code der unter (1. Punkt) angegeben ist. Dies sagt WP:Da ist ein Widget Abschnitt mit dem Namen Startseite.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'dynamic_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> dynamic_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Startseite'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Nach dem 1. &lt;php endif&#8230;. fügst Du den Widget Abschnitt Blogwide ein.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'dynamic_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> dynamic_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Blogwide'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Jetzt hast Du die Abschnitte aber WP weiß noch nicht wann es was anzeigen darf. Da müssen jetzt wieder die <strong>Conditional Tags</strong> herhalten.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_home<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Das gehört  um den Widget Abschnitt Startseite.  Sieht also schlussendlich so aus.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_home<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'dynamic_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> dynamic_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Startseite'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h3>Widgets in der functions.php angeben.</h3>
<p>Öffne die functions.php des default_de Themes und ändere</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'register_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
    register_sidebar<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
        <span style="color: #0000ff;">'before_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;li id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'after_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/li&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'before_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;h2 class=&quot;widgettitle&quot;&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'after_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/h2&gt;'</span><span style="color: #339933;">,</span>
    <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>so ab:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'register_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
    register_sidebar<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
<span style="color: #0000ff;">'name'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Startseite'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'before_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;li id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'after_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/li&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'before_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;h2 class=&quot;widgettitle&quot;&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'after_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/h2&gt;'</span><span style="color: #339933;">,</span>
    <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'register_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
    register_sidebar<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
<span style="color: #0000ff;">'name'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'logwide'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'before_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;li id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'after_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/li&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'before_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;h2 class=&quot;widgettitle&quot;&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'after_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/h2&gt;'</span><span style="color: #339933;">,</span>
    <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Alles hochladen in den Themeordner. Admincenter==>Design==>Widgets dort kannst Du jetzt auf der rechten Seite unter &#8220;<strong>Momentane Widgets</strong>&#8221; die einzelnen Abschnitte auswählen und jene Widgets aktivieren, die Du magst.</p>
<h3>
Widgets pro Kategorie &#8211; geht das auch? </h3>
<p>Ja, dann machst Du eben einen 3. Widget Abschnitt in der Sidebar und vergibst einen neuen Namen und änderst auch die functions.php wie oben erklärt. </p>
<h3>Bei Fragen einfach fragen</h3>
<p> und wenn es geholfen hat, freu ich mich über einen Link oder übers Weitersagen. </p>
<div class="sign"><img src="/wp-images/smilies/icon_confused.gif" alt="Kaffeetrinkender Smilie" width="27" height="21" /> viel Freud </div>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. Original article:  <a href="http://www.texto.de/bestimmtes-widget-nur-fuer-die-startseite-schritt-fuer-schritt-tutorial-622/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/bestimmtes-widget-nur-fuer-die-startseite-schritt-fuer-schritt-tutorial-622/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Arikel in der Sidebar anzeigen und Artikel, die jünger als XY sind eine eigene CSS class zuweisen</title>
		<link>http://www.texto.de/arikel-in-der-sidebar-anzeigen-und-artikel-die-juenger-als-xy-sind-eine-eigene-css-class-zuweisen-596/</link>
		<comments>http://www.texto.de/arikel-in-der-sidebar-anzeigen-und-artikel-die-juenger-als-xy-sind-eine-eigene-css-class-zuweisen-596/#comments</comments>
		<pubDate>Fri, 16 May 2008 12:03:12 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[sidebar]]></category>

		<guid isPermaLink="false">http://www.texto.de/texto/arikel-in-der-sidebar-anzeigen-und-artikel-die-juenger-als-xy-sind-eine-eigene-css-class-zuweisen/</guid>
		<description><![CDATA[Wie kann man Artikel aus einer bestimmten Kategorie in der Sidebar anzeigen und dann noch nach zeitlichen Vorgaben eigens gestalten. Hier eine Lösung von marX aus dem Forum.]]></description>
			<content:encoded><![CDATA[<p><span class="caplize">H</span>ie und da mag man Artikel in der Sidebar anzeigen. Diese auch noch aus einer bestimmten Kategorie und dann noch die neuen Artikel extra hervorheben.</p>
<h3>Artikel aus der Category 3 in der Sidebar anzeigen</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$postslist</span> <span style="color: #339933;">=</span> get_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'category=3&amp;order=DESC&amp;orderby=post_title'</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;">$postslist</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$post</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> 
setup_postdata<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: #000000; font-weight: bold;">?&gt;</span> 
&lt;li&gt; 
&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; rel=&quot;bookmark&quot; title=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title_attribute<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>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<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>&lt;/a&gt; 
&lt;/li&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endforeach</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><span id="more-596"></span></p>
<p>Geordnet werden die Artikel nach ihrem Titel. </p>
<h3>Neuen Artikeln eine eigene CSS class zuweisen</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$now</span> <span style="color: #339933;">=</span> <span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$postslist</span> <span style="color: #339933;">=</span> get_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'category=3&amp;order=DESC&amp;orderby=post_title'</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;">$postslist</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$post</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> 
setup_postdata<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: #000088;">$u_time</span> <span style="color: #339933;">=</span> get_the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'U'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span> 
&lt;li <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$now</span> <span style="color: #339933;">-</span> <span style="color: #000088;">$u_time</span> <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">86000</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">' class=&quot;neuer-post&quot;'</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&gt; 
&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<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>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<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>&lt;/a&gt; 
&lt;/li&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endforeach</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Diese <a href="http://forum.wordpress-deutschland.org/design/34567-neue-posts-markieren.html#post167063" title="Forum Thread zum Thema">Lösung</a> ist von <a href="http://forum.wordpress-deutschland.org/mitglied/5613-marx.html" title="marX aus dem forum WP Deutschland">marX</a>. Recht herzlichen Dank dafür.</p>
<p>86000 ist ein Tag. Mag man mehrere Tage dann mit der Anzahl  mutliplizieren.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #cc66cc;">5</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">86000</span></pre></div></div>

<div class="sign"> Viel Freud und Spaß und war es hilfreich freue ich mich über einen Bookmark oder Link beim Weitersagen.</div>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. Original article:  <a href="http://www.texto.de/arikel-in-der-sidebar-anzeigen-und-artikel-die-juenger-als-xy-sind-eine-eigene-css-class-zuweisen-596/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/arikel-in-der-sidebar-anzeigen-und-artikel-die-juenger-als-xy-sind-eine-eigene-css-class-zuweisen-596/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>2 Quick Tipps: Navigation der statischen Seiten aufteilen</title>
		<link>http://www.texto.de/navigation-der-statischen-seiten-aufteilen-379/</link>
		<comments>http://www.texto.de/navigation-der-statischen-seiten-aufteilen-379/#comments</comments>
		<pubDate>Sat, 16 Feb 2008 11:01:37 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[sidebar]]></category>

		<guid isPermaLink="false">http://www.texto.de/texto/2-quick-tipps-navigation-der-statischen-seiten-aufteilen/</guid>
		<description><![CDATA[Mag man die Navigation der statischen Seiten aufteilen kann man nicht auf vorgegebene Template Tags zurückgreifen. Oben die Hauptseiten, beim Klick auf eine Hauptseite die Unterseiten anzeigen. ]]></description>
			<content:encoded><![CDATA[<p><span class="caplize">S</span>o hie und da mag man die Anzeige der statischen Seiten aufteilen. Oben die &#8220;Parent&#8221; Seiten, in einer Sidebar die &#8220;Kinder&#8221; Seiten auch Subpages genannt.   Hier einfach die &#8220;Codeschnippsel&#8221; wie ich das nenne, um dies zu bewerkstelligen:</p>
<h3>Subpages nur anzeigen, wenn auch welche da sind.</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;child_of=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;echo=0&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
 &lt;ul&gt;
 <span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;title_li=&amp;child_of=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;sort_column=menu_order&amp;show_date=modified&amp;date_format=<span style="color: #006699; font-weight: bold;">$date_format</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> 
 &lt;/ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><span id="more-379"></span></p>
<h3>Subpages anzeigen, auch wenn man auf eine Subpage geklickt hat</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_parent</span><span style="color: #009900;">&#41;</span>
<span style="color: #000088;">$children</span> <span style="color: #339933;">=</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;title_li=&amp;child_of=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_parent</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;echo=0&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">else</span>
<span style="color: #000088;">$children</span> <span style="color: #339933;">=</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;title_li=&amp;child_of=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;echo=0&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$children</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$children</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h3>Widgets in der Sidebar</h3>
<p>Wer Widgets in der Sidebar nutzt muss dafür ein Textwidget nutzen und braucht ein Plugin, das das <a href="http://bluesome.net/post/2005/08/18/50/" title="PHP Exec">Ausführen von PHP</a> erlaubt. Aber Achtung diese Plugins stellen für den unbedarften Nutzer eine Gefahr dar! </p>
<h3>Wie merke ich mir diese Quick Tipps für die Navigation</h3>
<p>Bookmarken bei einem der Social Dienste hilft da ungemein.</p>
<div class="sign">&#8230;&#8230;&#8230; und das Weitersagen ist ausdrücklichst erlaubt;)</div>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. Original article:  <a href="http://www.texto.de/navigation-der-statischen-seiten-aufteilen-379/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/navigation-der-statischen-seiten-aufteilen-379/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>verschiedene Links je Kategorie die Sidebar in WP</title>
		<link>http://www.texto.de/verschiedene-links-je-kategorie-die-sidebar-in-wp-127/</link>
		<comments>http://www.texto.de/verschiedene-links-je-kategorie-die-sidebar-in-wp-127/#comments</comments>
		<pubDate>Fri, 07 Dec 2007 07:50:45 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[WordPress Theme]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[template-tag]]></category>

		<guid isPermaLink="false">http://www.texto.de/texto/verschiedene-links-je-kategorie-die-sidebar-in-wp/</guid>
		<description><![CDATA[Die Sidebar in WP kann sehr individuell gestaltet werden. Template Tags zb wp_list_bookmarks   und die if Abfrage via PHP, Linkkategorien, und die Kategorien liefern dazu das Werkzeug.]]></description>
			<content:encoded><![CDATA[<p><span class="caplize">I</span>ch wollte bei einem meiner Blogs, dass beim Aufruf einer Kategorie jeweils andere Links angezeigt werden. Ebenso soll bei gewissen statischen Seiten ganz eigene Links in der Sidebar erscheinen, und sogar bei einzelnen Artikel kann man so völlig unterschiedliche Link-Hinweise geben.</p>
<p>Erstens, weil ich elendslange Linklisten nicht mag, zweitens, weil ich die themenrelevanten Links bei der jeweiligen Kategorie,Seite, Artikel  hervorheben mag und Drittens, weil ich einfach wissen wollte wie dies geht.</p>
<div class="eyecatch">
<p>Im Dezember 2007 wurde dieser <strong>Artikel erneuert</strong>, weil get links nicht mehr verwendet werden sollte und ich nun all diese Neuerungen mit eingebaut habe. </p>
<p><strong>&raquo;&raquo;</strong> War der Artikel für Dich hilfreich freue ich mich über einen Link oder einen Bookmark bei Mr.Wong, Yigg.de usw&#8230; <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
</div>
<p><strong> Widgets</strong> verwenden und individuelle Linkkategorien ist möglich. Wie erkläre ich ganz am Ende des <span id="more-127"></span>Artikels. </p>
<p>Die  Blog <strong>Kategorien</strong> hei&#223;en:</p>
<ol>
<li>Bloggen</li>
<li>Privat</li>
<li>Galerie</li>
</ol>
<p>bei der statischen Seite *About* sollen eigene Links erscheinen und beim Artikel mit dem Title *danke* ebenso. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h3>Die Linkkategorien erstellen, benennen und die IDs merken</h3>
<p>Im Admincenter==>Linka ==><strong>Link Kategorien</strong></p>
<p>Dort findet man bereits Kategorien, die so hei&#223;en wie die Kategorien des Blogs. </p>
<p>Man kann dort auch neue Linkkategorien erstellen. </p>
<p>Für die statische Seite *About* nannte ich die Linkkategorie ebenfalls *About*, für den einzelnen Artikel, erstellte ich die Linkkategorie *Danke*.</p>
<p><span class="left">Es ist für den Durch und überblick sehr sinnvoll Linkkategorien absolut unverwechselbar und wiedererkennbar zu benennen.  Nenn ich die Linkkategorie für die Seite *About* Freunde, wei&#223; ich nach einem Monat nicht mehr wo diese Kategorie denn erscheint. </span></p>
<p>Da man ja jeder Linkkategorie eine eigene überschrift geben kann, ist dies so viel besser. </p>
<h3>den Namen der Linkkategorie und die dazugehörige ID notieren</h3>
<ol>
<li>Bloggen == Linkkategorie ID 3</li>
<li>Privat == Linkkategorie ID 4</li>
<li>Galerie == Linkkategorie ID 5</li>
<li>About==>Linkategorie= ID 9</li>
<li>Danke==>Linkkategorie =ID 10</li>
</ol>
<p>&raquo; Benutzer von Widget bitte nach unten scrollen!</p>
<p>Jetzt öffnete ich die sidebar.php mit einem Editor meiner Wahl, richtete mir die <a href="http://www.texto.de/texto/verschachtelte-listen-und-die-sidebar-in-wp/" title="Verschachtelte Liste in der Sidebar">verschachtelte Liste</a> so her, damit sie immer richtiges  <abbr title=" Hyper Text Markup Language">html</abbr> anzeigt, egal was ich damit mache und au&#223;erdem löschte ich  den template tag</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<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></div></div>

<h3>Wenn &#8230;dann &#8230; </h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #666666; font-style: italic;">/* wenn das  bloggen ist */</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'bloggen'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;ul&gt;&lt;li&gt;&lt;h2&gt;zum Thema&lt;/h2&gt;&lt;/li&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'category=3&amp;categorize=0&amp;show_description=&amp;title_before=&amp;title_after&amp;title_li=&amp;category_before=&amp;category_after='</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;/ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Einzeln erkl&auml;rt:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span></pre></div></div>

<p>Damit wei&#223; PHP: ich muss was tun.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">/*wenn das bloggen ist*/</span></pre></div></div>

<p>Dies ist ein Kommentar für PHP. Solche Kommentare sind ebenfalls für den überblick absolut nötig. Monate sp&auml;ter, wei&#223; man sonst garantiert nicht mehr was man denn wollte, wenn der Kommentar fehlt.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>is_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'bloggen'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span></pre></div></div>

<p>Dies hei&#223;t ausgesprochen:<br />
Wenn ist Kategorie Bloggen. [;)]</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>PHP mach mal kurz Pause.;)</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;ul&gt;&lt;li&gt;&lt;h2&gt;zum Thema&lt;/h2&gt;&lt;/li&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'category=3&amp;categorize=0&amp;show_description=&amp;title_before=&amp;title_after&amp;title_li=&amp;category_before=&amp;category_after='</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;</pre></div></div>

<p>zeige Linkkategorie mit der ID3,  zeige die Links einfach zwischen li und /li ohne den Namen der Linkkategorie.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>PHP Deine Arbeit ist getan.</p>
<p>Diese if-Anweisung wiederholte ich für jede einzelne meiner Blog Kategorien.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #666666; font-style: italic;">/* wenn das  privat ist */</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'privat'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;ul&gt;&lt;li&gt;&lt;h2&gt;zum Thema&lt;/h2&gt;&lt;/li&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'category=4&amp;categorize=0&amp;show_description=&amp;title_before=&amp;title_after&amp;title_li=&amp;category_before=&amp;category_after='</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>und</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #666666; font-style: italic;">/* wenn das  galerie ist */</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'galerie'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;ul&gt;&lt;li&gt;&lt;h2&gt;zum Thema&lt;/h2&gt;&lt;/li&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'category=5&amp;categorize=0&amp;show_description=&amp;title_before=&amp;title_after&amp;title_li=&amp;category_before=&amp;category_after='</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Für die statische Seite about sieht dies so aus.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #666666; font-style: italic;">/* wenn page about */</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_page<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'about'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;ul&gt;&lt;li&gt;&lt;h2&gt;zum Thema&lt;/h2&gt;&lt;/li&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'category=9&amp;categorize=0&amp;show_description=&amp;title_before=&amp;title_after&amp;title_li=&amp;category_before=&amp;category_after='</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Für den Artikel mit dem Titel Danke so:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #666666; font-style: italic;">/* wenn single danke */</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_single<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'danke'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;ul&gt;&lt;li&gt;&lt;h2&gt;zum Thema&lt;/h2&gt;&lt;/li&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'category=9&amp;categorize=0&amp;show_description=&amp;title_before=&amp;title_after&amp;title_li=&amp;category_before=&amp;category_after='</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><strong>Achtung:</strong> Die Codeteile bitte nicht einfach kopieren, sondern selber tippen. Beim Kopieren entstehen manchmal Fehler.</p>
<p>Fertig!</p>
<h3>Widgets verwenden und dennoch ganz spezielle Links je Sidebar ist auch ohne Plugin möglich.</h3>
<p>Allerdings erscheinen die Linkkategorien dann am Ende der Sidebar. Nicht einfach irgendwo mittendrin.</p>
<p><strong>Vorbereitung: </strong>Wenn die Blogroll mit Widgets angezeigt wurde, dies aus den Widgets entfernen.</p>
<p>Im default Theme /Kubrick von WordPress steht ganz unten in der Sidebar.php folgendes</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;/ul&gt;
	&lt;/div&gt;</pre></div></div>

<p>das endif beendet die Widgetfunktionstüchtigkeit. Das /ul beendet die verschachtelte Liste.</p>
<p>Das /div beendet die &#8220;Schachtel&#8221; Sidebar. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Wenn Du jetzt nach dem letzten /ul und vor dem /div obige Codebeispiele einträgst, kannst Du Widgets UND individuelle Linkkategorien je Kategorie, je statische Seite, je Artikel verwenden.</p>
<p>Sollte Deine Sidebar ein wenig anders aussehen, dann auf alle Fälle nach dem *endif*. </p>
<p>Alles vor dem endif wird bei der Verwendung von Widgets nicht angezeigt!</p>
<p>So einfach ist es die Sidebar des Blogs aufzur&auml;umen. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Gerne beantworte ich Fragen zum Thema.</p>
<p><strong>&raquo;&raquo;</strong> War der Artikel für Dich hilfreich freue ich mich über einen Link oder einen Bookmark bei Mr.Wong, Yigg.de usw&#8230; <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h3>Artikelhistorie</h3>
<p>Erstveröffentlichung am 23. Dezember 2005</p>
<p>den Originaltext gelöscht der 1. Veröffentlichung, weil er absolut nicht mehr verwendet werden sollte.</p>
<div class="sign"> &#8230;  if is kaffehaus get texto kaffee, steht jetzt am Programm .   <img src="/wp-images/smilies/icon_confused.gif" alt="Kaffeetrinkender Smilie" width="27" height="21" /></div>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. Original article:  <a href="http://www.texto.de/verschiedene-links-je-kategorie-die-sidebar-in-wp-127/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/verschiedene-links-je-kategorie-die-sidebar-in-wp-127/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>My Link Order in Deutsch &#8211; Links und  Linkkategorien in der Sidebar ordnen</title>
		<link>http://www.texto.de/my-link-order-in-deutsch-links-und-linkkategorien-in-der-sidebar-ordnen-340/</link>
		<comments>http://www.texto.de/my-link-order-in-deutsch-links-und-linkkategorien-in-der-sidebar-ordnen-340/#comments</comments>
		<pubDate>Fri, 15 Jun 2007 19:37:43 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[wordpress-plugins]]></category>

		<guid isPermaLink="false">http://www.texto.de/texto/my-link-order-in-deutsch-links-und-linkkategorien-in-der-sidebar-ordnen/</guid>
		<description><![CDATA[Du magst die Linkkategorien ganz individuell ordnen. Du magst die Links in den einzelnen Linkkategorien ganz individuell ordnen. Das WordPress Plugin My Link Order ermöglicht dies. Hier die deutsche übersetzung.]]></description>
			<content:encoded><![CDATA[<p><span class="caplize">D</span>ie Links in der Sidebar individuell zu ordnen war vor diesem WordPress Plugin eine Odysee. Den Codex rauf und runter gelesen. Verzweifelt an den Template Tags,<a href="http://codex.wordpress.org/Template_Tags#Link_tags" title="Externer Link:Template tags für Links"> get_links</a> gibt das einfach nicht her. Du kannst eventuell genug PHP, um Dir selber was zu coden, doch dies macht die Sache nicht einfacher.  Oder Du magst <strong>WordPress als CMS</strong> einsetzen und die Leute für die Du dies machst, möchten alles &#8211; aber niemals so ein WordPress template auch nur einmal aufmachen.</p>
<p>&gt;&gt; neue Version übersetzt:<strong>MyLinkorder für WordPress 2.1.3 und alle höheren WordPress Versionen ganz am Ende des Artikels!</strong></p>
<p>My Link Order, ein WordPress Plugin von<a href="http://geekyweekly.com/" title="Geek Weekly"> Geek</a> (er nennt sich selber so <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ) schafft da Abhilfe<span id="more-340"></span>.</p>
<p><strong>Achtung</strong>: dieses WordPress Plugin muss bei einem Update von WordPress eventuell erneuert werden. </p>
<ol>
<li><a href="http://www.texto.de/count/downloadcounter.php?stwc_cz=1&amp;stwc_id=10" title="MyLinkorder 2.1.3">My Link Order</a> </li>
<li>Entpacken.</li>
<li>Im Ordner mylinkorder-2-0-5-de ist der Ordner mylinkorder. Nur diesen hochladen nach wp-content/plugins/mylinkorder.</li>
<li>Admincenter==>Plugins==>aktivieren.</li>
<li>Admincenter==>Links==>Links ordnen.</li>
<li>Dort den Anweisungen folgen.</li>
</ol>
<p>Zwei gro&#223;e Screenshots dieses Plugins: <a href="http://www.texto.de/wp-images/1206/my-link-order.gif" title="Sctreenshot des Plugins My Link Order ">Kategorien</a>  <a href="http://www.texto.de/wp-images/1206/my-link-order-2.gif" title="Sctreenshot 2 des Plugins My Link Order ">Links</a> .</p>
<h3>Template Tag damit dieses WP Plugin arbeiten kann</h3>
<p>Es muss dort wo die Link Kategorien erscheinen sollen &#8211;zu 97% in der Sidebar.php &#8212;  stehen:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> get_links_list<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></div></div>

<p>Dieser template tag kann aber nur per Name oder per ID ordnen. </p>
<h3>MyLinkorder für WordPress 2.1 und höher</h3>
<ol>
<li><a href="http://www.texto.de/count/downloadcounter.php?stwc_cz=1&amp;stwc_id=11" title="MyLinkorder 2.1.3">MyLinkorder</a>2.1.3</li>
<li>Entpacken.</li>
<li>Die Datei:mylinkorder.php in das Pluginverzeichnis wp-content/plugins/.</li>
<li>Aktivieren.</li>
<li>Adminenter==>Blogroll==>MyLinkorder</li>
</ol>
<h3>Template vorbereiten.</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'orderby=order&amp;category_orderby=order'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Diesen template Tag musst Du verwenden,weitere Parameter kannst Du anfügen.</p>
<p>Ich habe dieses WordPress Plugin &#8220;My Link Order&#8221; nur übersetzt. Sollte etwas nicht funktionieren, bitte bei My Link Order nachfragen. Es ist mir zeitlich einfach unmöglich fremde Plugins zu supporten. Ich ersuche Euch um Verst&auml;ndnis dafür.</p>
<h3>Artikelversionen:</h3>
<p>Erstmals veröffentlicht am 15.12.06 gegen 13.01.</p>
<p>Update am 11.03.07 neue Version des Plugins übersetzt.<br />
Update am 15. 06.07 neue  Version übersetzt.</p>
<div class="sign"> Ordnen, schlichten und dies so einfach,CMS WordPress her I come <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </div>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. Original article:  <a href="http://www.texto.de/my-link-order-in-deutsch-links-und-linkkategorien-in-der-sidebar-ordnen-340/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/my-link-order-in-deutsch-links-und-linkkategorien-in-der-sidebar-ordnen-340/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>wp_list_bookmarks &#8211; &gt; 12 Spielereien mit dem neuen template tag in WP 2.1-pimp your sidebar</title>
		<link>http://www.texto.de/wp_list_bookmarks-spielereien-template-tag-wp-21-sidebar-371/</link>
		<comments>http://www.texto.de/wp_list_bookmarks-spielereien-template-tag-wp-21-sidebar-371/#comments</comments>
		<pubDate>Wed, 07 Feb 2007 20:19:20 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[template-tag]]></category>

		<guid isPermaLink="false">http://www.texto.de/texto/wp_list_bookmarks-spielereien-template-tag-wp-21-sidebar/</guid>
		<description><![CDATA[WP 2.1 kombiniert Linkkategorien mit den Kategorien für Artikel. Was kann man mit wp_list_bookmarks alles machen. Worauf muss man bei wp_list_bookmarks achten und wie nutzt man dies für eine individuelle  Art der Linkverwaltung und somit der Sidebar und Navigation.]]></description>
			<content:encoded><![CDATA[<p><span class="caplize">D</span>ie Sidebar individuell zu gestalten liegt vielen am Herzen. WordPress 2.1 bietet dafür einen neuen template tag (<a href="http://codex.wordpress.org/Template_Tags/wp_list_bookmarks" title="Externer Link zum Codex englisch">wp_list_bookmarks</a>) für die Links  und da dieser noch sehr unbekannt ist und au&#223;erdem jede Menge Möglichkeiten bietet &#8211; hier zig Möglichkeiten was man damit alles machen kann.</p>
<p>Es wird ein langer Artikel, weil viel code;) Jede Möglichkeit ist als überschrift gekennzeichnet und ich empfehle Dir lies zuerst die überschriften, dann such Dir das aus, was Du haben magst. Wie immer habe ich keine Ahnung, ob copy and paste bei den Codebeispielen funktioniert. Schlimmstenfalls musst Du abtippen. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class="eyecatch">
<p>get_links funktioniert auch bei WP 2.1 doch an alle, die von WP 2.0 irgendwas umgestiegen sind: Die IDs der Kategorien haben sich ge&auml;ndert:</p>
<p>Admincenter==>Verwaltung==>Kategorien==> dort findest du die neuen IDs Deiner alten Linkkategorien!</p>
</div>
<p><span class="firstletter">A</span>u&#223;erdem zeige ich auch immer den erzeugten Quelltext an und bei den ersten Beispielen steht dabei, was für css IDs und classes zur Gestaltung zur Verfügung stehen. Wenn dies sich wiederholt verweise ich auf die Beispiele. </p>
<h3>wp_list_bookmarks</h3>
<p><strong>Nur kurz was alles so kommt: </strong></p>
<p>Alle Linkkategorien anzeigen. Alle Links aus jeder Kategorie anzeigen und die rotieren lassen. (random links). Nur eine bestimmte Anzahl anzeigen lassen, Links nicht mit Text, sondern Bild (Button) anzeigen, Rss Feeds Links, Links aus der Kategorie Y anzeigen lassen. Links mit überschrift, Links ohne überschrift <abbr title="und so weiter "><span class="abbr" title="und so weiter">usw.</span></abbr>..<span id="more-371"></span>.</p>
<h3>0 Was kann wp_list_bookmarks alles-ein bisschen Theorie </h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'argumente'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Dies bedeutet: Der template tag wp list bookmarks ist mit vielen Argumenten nutzbar. Die Argumente stehen zwischen Hochkommata und werden mit einem &amp; verbunden/aneinandergereiht.</p>
<p>Wenn was nicht funktioniert war vielleicht blo&#223; die Anordnung der Argumente falsch. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </p>
<h3>0. a Welche Argumente versteht wp_list_bookmarks aller ?</h3>
<p>Die Argumente, die dieser template tag aller versteht und kann:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$defaults</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'orderby'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'name'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'order'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'ASC'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'limit'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'category'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'category_name'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'hide_invisible'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'show_updated'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'echo'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'categorize'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'title_li'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Lesezeichen'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'title_before'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;h2&gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'title_after'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/h2&gt;'</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'category_orderby'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'name'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'category_order'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'ASC'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'class'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'linkcat'</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'category_before'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;li id=&quot;%id&quot; class=&quot;%class&quot;&gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'category_after'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/li&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Und jetzt praktische Beispiele mit wp_list_bookmarks. </p>
<h3>1. Drei verschiedene  Links, die in vier Kategorien gespeichert sind -Standardergebnis des wp_list_bookmarks</h3>
<p>Folgendes in das  Template der Sidebar (sidebar.php) schreiben:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;ul&gt;&lt;--die ul habe ich dazugeschrieben--&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<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>
&nbsp;
&lt;/ul&gt;</pre></div></div>

<p>Dies ergibt dann das:</p>
<dl class="right" style="width:210;">
<dt> wp_list_bookmark Standardergebnis&nbsp;</dt>
<dd><img src="http://www.texto.de/wp-images/0207/blogroll-00.gif" alt=" Kategorientitel und darunter die dazugehörigen Links" width="193" height="270" /></dd>
</dl>
<p>Titel der Kategorie  1<br />
Link 1<br />
Titel der Kategorie  2<br />
Link 2<br />
Titel der Kategorie  3<br />
Link 3<br />
Titel der Kategorie  4<br />
Link 3<br class="clear" /></p>
<h3>1.a Welchen Quelltext (html) erzeugt wp_list_bookmarks in der Standardeinstellung</h3>
<p>Ohne die von mir erg&auml;nzten ul :</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;linkcat-6&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;linkcat&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>Blogroll<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>Matt<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;linkcat-9&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;linkcat&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>meine Websites<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.texto.de/&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;me&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;code is poetry&quot;</span>&gt;</span>Texto<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;linkcat-1&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;linkcat&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>Nicht kategorisiert<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.webdesign-in.de/&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;me&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;ausprobieren&quot;</span>&gt;</span>ich<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;linkcat-2&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;linkcat&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>Test2<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.webdesign-in.de/&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;me&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;ausprobieren&quot;</span>&gt;</span>ich<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span></pre></div></div>

<ol>
<li>Die css class linkcat zur Gestaltung steht zur Verfügung.
</li>
<li>Die Kategorien sind alphabetisch von A-Z geordnet.
</li>
<li>Die verschachtelte Liste der Sidebar von WordPress wird erzeugt.
</li>
<li>Die Kategorientitel sind in der überschrift h2 verpackt.
</li>
<li>Die IDs der Kategorien wird ebenfalls erzeugt: linkcat-2,linkcat-1 etc. Auch dies kann man zur Gestaltung nutzen, wenn man mag.
</li>
<li>Rel=me oder so gehört zum <a href="http://gmpg.org/xfn/11" title="netzwerke bilden">http://gmpg.org/xfn/11</a> Netzwerk, dort einfach nachlesen wieso warum und so <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .
</li>
</ol>
<h3>2. Alle Links anzeigen, egal in welcher Kategorie, mit überschrift:Lesezeichen</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;ul&gt;&lt;--die ul habe ich dazugeschrieben--&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'categorize=0'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;/ul&gt;</pre></div></div>

<dl class="left" style="width:155;">
<dt> Alle Links ohne Kategorie<br />Lesezeichen</dt>
<dd><img src="http://www.texto.de/wp-images/0207/blogroll-01.gif" alt="Alle Links anzeigen, egal in welcher Kategorie, mit überschrift:Lesezeichen" width="149" height="114" /></dd>
</dl>
<p>Lesezeichen<br />
Link 1<br />
Link 2<br />
Link 3<br class="clear" /></p>
<h3>2.a Der dabei erzeugte Quelltext (html) ist:</h3>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;linkuncat&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;linkcat&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>Lesezeichen<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.webdesign-in.de/&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;me&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;ausprobieren&quot;</span>&gt;</span>ich<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>Matt<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.texto.de/&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;me&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;code is poetry&quot;</span>&gt;</span>Texto<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span></pre></div></div>

<ul>
<li>Die css ID linkuncat und die css class linkcat werden erzeugt und stehen zur Gestaltung zur Verfügung.
</li>
<li>Lesezeichen steht wieder zwischen h2.
</li>
<li>&#8220;Rel&#8221; wird ebenfalls dargestellt.</li>
</li>
<li>Die Links sind alphabetisch von A-Z geordnet.</li>
</ul>
<h3>3. Alle Links anzeigen, egal in welcher Kategorie, mit eigener überschrift.</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;ul&gt;&lt;--die ul habe ich dazugeschrieben--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'categorize=0&amp;title_li=eigene überschrift'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
&lt;/ul&gt;</pre></div></div>

<h3>3.a Der dabei erzeugte Quelltext (html) ist:</h3>
<p>Absolut dasselbe wie bei 2.a oberhalb <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h3>4. Alle Links anzeigen, egal in welcher Kategorie, mit eigener überschrift  und rotieren lassen.</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;ul&gt;&lt;--die ul habe ich dazugeschrieben--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'categorize=0&amp;orderby=rand&amp;title_li=eigene überschrift'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
&lt;/ul&gt;</pre></div></div>

<h3>4.a Der dabei erzeugte Quelltext (html) ist:</h3>
<p>Absolut dasselbe wie bei 2.a oberhalb <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h3>5. Links ordnen mag ich.</h3>
<p>Mit</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">orderby<span style="color: #339933;">=</span><span style="color: #990000;">rand</span></pre></div></div>

<p>wird das Rotieren angegeben. </p>
<p>Du kannst auch noch nach id ( die ID des Links),  url,name,target,description (das ist der title), owner (das ist der User, der den Link gespeichert hat),rating (wenn Du links bewertest), updated (wenn bei einem Link Neues kam),rel,notes(Du kannst ja zu jedem Link Notizen dazuschreiben),rss, length (die L&auml;nge des Linknamens, kürzere zu l&auml;ngere Namen ), ordnen. </p>
<p>Beispiele:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">orderby=id
Im template tag sieht das dann so aus:
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'categorize=0&amp;orderby=id&amp;title_li=eigene überschrift'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>oder</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">orderby=target
Im template tag sieht dies dann so aus:
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'categorize=0&amp;orderby=target&amp;title_li=eigene überschrift'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Nach zwei Kriterien zu ordnen ist nicht möglich. </p>
<h3>6. Links nach Kategorien anzeigen, aber pro Kategorie maximal 2 Links.</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;ul&gt;&lt;--die ul habe ich dazugeschrieben--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'limit=2'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
&lt;/ul&gt;</pre></div></div>

<h3>6.a Der dabei erzeugte Quelltext (html) ist:</h3>
<p>Absolut derselbe wie bei Beispiel 2a weiter oben.</p>
<h3>7. Links nach Kategorien geordnet, pro Kategorie maximal 2 Links und die Beschreibung zum Link anzeigen.</h3>
<dl class="right" style="width:197px;">
<dt>show_description<br />title Attribut</dt>
<dd><img src="http://www.texto.de/wp-images/0207/blogroll-02.gif" alt=" Beschreibung also title Attribut des Links wird angezeigt" width="193" height="270" /></dd>
</dl>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;ul&gt;&lt;--die ul habe ich dazugeschrieben--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'limit=2&amp;show_description=1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
&lt;/ul&gt;</pre></div></div>

<p><br class="clear" /></p>
<h3>7.a Der dabei erzeugte Quelltext (html) ist:</h3>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;linkcat-6&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;linkcat&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>Blogroll<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>Matt 
ebend er<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;linkcat-9&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;linkcat&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>meine Websites<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.texto.de/&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;me&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;code is poetry&quot;</span>&gt;</span>Texto<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
code is poetry<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.esistkeinurlaub.de&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;me&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Einfach mal weg&quot;</span>&gt;</span>Urlaub<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
Einfach mal weg<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span></pre></div></div>

<p><strong>Achtung:</strong> Haben die Links (a, a:link, a:visited etc)  in der style.css ein display block angegeben, wird die Description- das title Attribut- automatisch in einer neuen Zeile darunter angezeigt!</p>
<h3>8. Nur Links aus der Kategorie 9</h3>
<dl class="right" style="width:190px;">
<dt>Links aus Kat 9<br />Kat Name als überschrift</dt>
<dd><img src="http://www.texto.de/wp-images/0207/blogroll-03.gif" alt="Nur Links aus einer bestimmten Kategorie" width="190" height="103" /></dd>
</dl>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;ul&gt;&lt;--die ul habe ich dazugeschrieben--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'category=9'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
&lt;/ul&gt;</pre></div></div>

<p><br class="clear" /></p>
<h3>8.a Der dabei erzeugte Quelltext (html) ist:</h3>
<p>Absolut derselbe wie bei Beispiel 2a weiter oben.</p>
<h3>9. Links nach Kategorien geordnet, aber nur die Kategorien mit der ID 9 und 6</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;ul&gt;&lt;--die ul habe ich dazugeschrieben--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'category=6,9'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
&lt;/ul&gt;</pre></div></div>

<p><strong>Achtung:</strong> Die IDs aufsteigend angeben.</p>
<p><strong>Achtung:</strong> Anstatt der Kategorie IDs könnte man auch den Namen der Kategorie (category_name) angeben, doch dies hat bis jetzt bei mir noch nicht funktioniert. </p>
<p>Sollte ich diesbezüglich etwas in Erfahrung bringen, erg&auml;nze ich diesen Artikel. </p>
<h3>9.a Der dabei erzeugte Quelltext (html) ist:</h3>
<p>Du wei&#223;t es bereits: <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ==>Absolut derselbe wie bei Beispiel 2a weiter oben.</p>
<h3>10. Zeige mir die Bilder /Buttons statt Linktexte und die Beschreibung (title Attribut)</h3>
<dl class="right" style="width:210;">
<dt>Buttons statt Text<br />kein Button da kommt Text</dt>
<dd><img src="http://www.texto.de/wp-images/0207/blogroll-04.gif" alt="Zeigt Buttons mit Beschreibung" width="193" height="270" /></dd>
</dl>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;ul&gt;&lt;--die ul habe ich dazugeschrieben--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'show_images=1&amp;show_description=1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
&lt;/ul&gt;</pre></div></div>

<p><br class="clear"/></p>
<p><strong>Achtung:</strong> Wie am Bild erkennbar ist. Wurde kein Button zum Link gespeichert, dann kommt automatisch der Linktext!</p>
<h3>10.a Der dabei erzeugte Quelltext (html) ist:</h3>
<p>An und für sich derselbe wie bei 2.a nur sind auch noch die Pfade zu den Buttons sichtbar. Wobei  &#8220;img&#8221; keine eigene css class zugewiesen wird.</p>
<h3>11. Zeige die Links aus Kategorie 9, gib den Links eine eigene css class,  ohne title Attribut, geordnet nach deren URL</h3>
<p>Das ist eines der Beispiele aus dem Codex, da das Original Beispiel derzeit falsches html erzeugt, habe ich es so abge&auml;ndert, dass es passt.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;ul&gt;&lt;--die ul habe ich dazugeschrieben--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'categorize=1&amp;category=9&amp;before=&lt;li class=&quot;eigene&quot;&gt;&amp;after=&lt;/li&gt;&amp;show_description=0&amp;orderby=url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;</pre></div></div>

<p><strong>Achtung:</strong> Ich bin mir unsicher, ob dies so funktioniert, obwohl es im Codex steht. </p>
<h3>11. a der dabei erzeugte Quelltext (html) ist:</h3>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;linkcat-9&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;linkcat&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>meine Websites<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span>\<span style="color: #ff0000;">&quot;eigene\&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.esistkeinurlaub.de&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;me&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Einfach mal weg&quot;</span>&gt;</span>Urlaub<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span>\<span style="color: #ff0000;">&quot;eigene\&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.texto.de/&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;me&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;code is poetry&quot;</span>&gt;</span>Texto<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span></pre></div></div>

<p>Man mag ja nur eine eigene css class für was haben, damit man es eigens gestalten kann. </p>
<p>Ich würde auf die eigene css class verzichten alles mit before und after weglassen und dafür in der style.css diese li folgenderma&#223;en ansprechen:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;">ul li.linkcat ul li</pre></div></div>

<h3>12. Ich brauche keine Titel, keine verschachtelte Liste wie geht denn das?</h3>
<p>Dies fragte sich Olafb im WordPress-Deutschland.org Forum:</p>
<p>Dieses Html wollte er haben:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;boxhead&quot;</span>&gt;</span> 
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>Links<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h2</span>&gt;</span> 
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span> 
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;MeineKlasse&gt;</span></span> 
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>...hier die Links....<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span> 
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>Zwei Lösungen eine von Olafb und eine von Jeriko, wenn man weniger Kategorien hat.</p>
<p>Alle Parameter leeren hei&#223;t das Zauberwort, dies sieht dann so aus:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'orderby=rand&amp;categorize=0&amp;title_before=&amp;title_after&amp;title_li=&amp;category_before=&amp;category_after= '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>die zweite Lösung von Jeriko, bei nur einer vorhandenen Kategorie:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title_li=&amp;category=0&amp;categorize=0'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p> Funktioniert was nicht, &auml;ndert sich was, habe ich die allerneuesten Urideen, dann editier ich den Artikel. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Hast Du noch Ideen etc, Fragen, Erkenntnisse etc. dann schreibe hier einen Kommentar. über Rückmeldung freu ich mich immer. </p>
<div class="sign">Wenn es Dir geholfen hat, dann sag es ruhig weiter. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </div>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. Original article:  <a href="http://www.texto.de/wp_list_bookmarks-spielereien-template-tag-wp-21-sidebar-371/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/wp_list_bookmarks-spielereien-template-tag-wp-21-sidebar-371/feed/</wfw:commentRss>
		<slash:comments>35</slash:comments>
		</item>
		<item>
		<title>Statische Seiten in einem Drop Down Menü- WP Plugin von Zelic</title>
		<link>http://www.texto.de/statische-seiten-drop-down-plugin-deutsch-271/</link>
		<comments>http://www.texto.de/statische-seiten-drop-down-plugin-deutsch-271/#comments</comments>
		<pubDate>Tue, 17 Oct 2006 18:35:03 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[wordpress-plugins]]></category>

		<guid isPermaLink="false">http://www.texto.de/texto/statische-seiten-drop-down-plugin-deutsch/</guid>
		<description><![CDATA[Du magst Drop Down Menüs in Deiner Sidebar von WordPress haben. Zelic machte ein Plugin dafür. Zelic Drop Down Pages. Hier die Anleitung auf Deutsch. ]]></description>
			<content:encoded><![CDATA[<p><span class="caplize">S</span>tatische Seiten in WordPress sind beliebt. Doch irgendwann wird die Liste sehr lang. Du bist ein Fan von Drop Down Menüs und magst so eines anbieten.  Dafür gibt es von <a href="http://zeligplanet.altervista.org/2006/08/wordpress-plugin-zelig-dropdown-pages/" title="Externer Link:zelic Drop Down Pages">Zelic Drop Down Pages</a>.  Seine Anleitung ist auf Englisch und da ich wei&#223;, dass dies einige nicht so gern haben, hier die deutsche Anleitung.  </p>
<dl class="left">
<dt><img src="http://www.texto.de/wp-images/1006/zeli-drop-pages.gif" alt=" Die Drop Down Liste des Plugins" height="209" width="205" /></dt>
<dd>Zelic Drop Down Pages im Einsatz &nbsp;</dd>
</dl>
<p><span class="firstletter">A</span>u&#223;erdem habe ich auch dieses WordPress Plugin für statische Seiten mit dem <a href="http://www.texto.de/texto/statische-seiten-bequem-im-admincenter-ausschliessen-page-link-manager/" title="Zelic Drop Down mit Link Manager nutzen">Link Manager Plugin</a>[Code Beispiel 3 ] kompatibel gemacht und wenn Du Dir jetzt den Link Manager bei mir holst  ist alles vorbereitet.</p>
<p>Das Plugin von Zelic liefert XHTML aus und ob es auch mit anderen Versionen als WordPress 2.04 aufw&auml;rts kompatibel ist hat er nicht getestet und ich auch nicht.;) <br class="clear" /></p>
<p><span id="more-271"></span></p>
<h3>Beispiele für Zelic Drop Down Pages</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> zelig_dropdown_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'boxwidth=120'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Setzt die Breite der Box auf 120px.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> zelig_dropdown_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sort_column=menu_order&amp;sort_order=DESC'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Zeigt die statischen Seiten genau in umgekehrter Reihenfolge als im Admincenter bestimmt. Kann für &#8220;floatende&#8221; Designs oft von Vorteil sein.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> zelig_dropdown_pages<span style="color: #009900;">&#40;</span>depth<span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">&amp;</span>title_li<span style="color: #339933;">=</span>Section <span style="color: #cc66cc;">1</span><span style="color: #0000ff;">'); ?&gt;</span></pre></div></div>

<p>Zeigt die Unterseiten bis zur 1. Ebene und gibt der Box die überschrift &#8220;Section1.</p>
<table summary="Diese Tabelle zeigt die Möglichkeiten der Parameter des Zelic Drop Down Pages Plugins auf" id="drop">
<caption>Zelic Drop Down Pages alle Parameter im überblick</caption>
<colgroup>
<col width="6%" />
<col width="6%" />
<col width="50%" /></colgroup>
<thead>
<tr>
<th>Parameter</th>
<th>Values <br />(Möglichkeiten)</th>
<th>Beschreibung</th>
<th>Default</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="4">Danke an Zelic</td>
</tr>
</tfoot>
<tbody>
<tr class="drop">
<td>child_of</td>
<td>integer</td>
<td>zeigt nur die Unterseiten  an (nutzt dazu die ID der Seite)</td>
<td>0<br />(zeigt alle an)</td>
</tr>
<tr class="drop1">
<td>sort_column</td>
<td>post_title<br />menu_order<br />post_date<br />post_modified<br />ID<br />post_author<br />post_name
</td>
<td>sortiert die Seite folgenderma&#223;en:<br />
post_title (alphabetisch nach dem Titel)<br />
menu_order (so wie Du es unter Admincenter ==>Schreiben==> Seite rechts unten eingestellt hast)<br />
post_date (nach dem Erstelldatum)<br />
post_modified (nach dem Datum der letzten &#196;nderung)<br />
ID (nach der ID der Seiten)<br />
post_author (nach der ID der Autoren)<br />
post_name (anphabetisch nach dem Post Slug (das ist die URL))
</td>
<td>post_title</td>
</tr>
<tr class="drop">
<td>sort_order</td>
<td>ASC<br />DESC</td>
<td>ASC (von unten nach oben)<br />
DESC (von iben nach unten)</td>
<td>ASC</td>
</tr>
<tr class="drop1">
<td>exclude</td>
<td>die IDs getrennt mit Koma</td>
<td>es ist wichtig die IDs in aufsteigender Reihenfolge anzugeben 1,2,5,6&#8230;</td>
<td>&nbsp;</td>
</tr>
<tr class="drop">
<td>depth</td>
<td>integer</td>
<td>dies gibt an wieviele Unterseiten angezeigt werden. Ob die Unterseite der Unterseite auch noch oder nicht mehr. Funktioniert aber nur entweder alle oder keine. -1 keine Unterseite.</td>
<td>0<br />(zeigt alle Unterseiten an)</td>
</tr>
<tr class="drop1">
<td>title_li</td>
<td>string</td>
<td>meist steht dort &#8220;Seiten&#8221; man kann aber auch einen eigenen Text hernehmen</td>
<td>&nbsp;</td>
</tr>
<tr class="drop">
<td>boxwidth</td>
<td>integer</td>
<td>Das ist ein neuer Parameter, damit kannst Du die Breite der Box in px angeben. Gibst Du nichts an wird die Box so breit wie der l&auml;ngste Titel einer statischen Seite</td>
<td>0 </td>
</tr>
</tbody>
</table>
<div class="sign"> ..grrr wordpress kennt keine richtige Tabelle, da muss ich wieder unmögliche  br eleminieren, aber das Plugin tut seine Dienste gut <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </div>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. Original article:  <a href="http://www.texto.de/statische-seiten-drop-down-plugin-deutsch-271/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/statische-seiten-drop-down-plugin-deutsch-271/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Fold Page List deutsch &#8211; aufklappbare Seitennavigation</title>
		<link>http://www.texto.de/fold-page-list-deutsch-aufklappbare-seitennavigation-254/</link>
		<comments>http://www.texto.de/fold-page-list-deutsch-aufklappbare-seitennavigation-254/#comments</comments>
		<pubDate>Sun, 08 Oct 2006 15:46:25 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[wordpress-cms]]></category>
		<category><![CDATA[wordpress-plugins]]></category>

		<guid isPermaLink="false">http://www.texto.de/texto/fold-page-list-aufklappbare-seitennavigation/</guid>
		<description><![CDATA[Fold Page List von Rob Schumann bietet eine einfache Möglichkeit viele statische Seiten mit Unterseiten anzuzeigen. Darüberhinaus bieter dieses Plugin viele zus&#228;tzliche CSS classes, um alle  Zust&#228;nde einer solchen dynamischen Navigation zu gestalten. Hier die deutsche Anleitung.]]></description>
			<content:encoded><![CDATA[<p><span class="caplize">P</span>age Fold List erzeugt eine dynamische Seitennavigation und alle Möglichkeiten der wp-list-pages Spielereien bleiben dabei erhalten. Es bietet viele zus&auml;tzliche CSS classes und es bietet die Möglichkeit auch die Unterseiten einer Unterseite mit einem Klick auf die Hauptseite anzuzeigen oder eben nicht. </p>
<p>Die englische Erkl&auml;rung und den Download des Plugins findest Du auf <a href="http://www.webspaceworks.com/resources/wordpress/30/" title="Externer Link:Fold Page List">Rob Schumanns Seite</a>. Dieses Plugin ist mit Garett Page Link Manager absolut <a href="http://www.texto.de/texto/statische-seiten-bequem-im-admincenter-ausschliessen-page-link-manager/" title="statiche Seiten bequem im Admincenter verwalten.">kompatibel</a>.</p>
<ul>
<li>Einfach herunterladen. </li>
<li>Entpacken.</li>
<li> In den Ordner wp-content/plugins/ hochladen.</li>
<li> Aktivieren.</li>
<li>Die sidebar.php Deines Themes öffnen nach wp-list-pages suchen und dies mit<br />
nanchfolgendem Code ersetzen, je nachdem was Du magst.</li>
</ul>
<p>1. Möglichkeit<span id="more-254"></span>:</p>
<p>ohne Link Manager Plugin</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wswwpx_fold_page_list<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title_li=&lt;h2&gt;Seiten&lt;/h2&gt;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'true'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>mit Link Manager Plugin</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> gdm_wswwpx_fold_page_list<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title_li=&lt;h2&gt;Seiten&lt;/h2&gt;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'true'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<dl class="left" style="width:160px;">
<dt><img src="http://www.texto.de/wp-images/1006/fold-page-list-unterseite-u.gif" alt=" eine Seite mit einer Unterseite, die wiederum eine Unterseite hat angeklickt" height="92" width="147" /></dt>
<dd>alle Unterseiten einer Seite sind sofort sichtbar.&nbsp;</dd>
</dl>
<p>Ganz egal welche Funktionen der wp-list-pages Du nimmst, wenn Du danach ein Koma setzt und unter den Hochkommata true schreibst, dann faltet Fold Page List alle Unterseiten einer Seite auf.<br class="clear" /></p>
<p>2. Möglichkeit:</p>
<p>ohne Link Manager Plugin</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wswwpx_fold_page_list<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title_li=&lt;h2&gt;Seiten&lt;/h2&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>mit Link Manager Plugin</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> gdm_wswwpx_fold_page_list<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title_li=&lt;h2&gt;Seiten&lt;/h2&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<dl class="left" style="width:160px;">
<dt><img src="http://www.texto.de/wp-images/1006/fold-page-list-unterseite.gif" alt=" eine Seite mit einer Unterseite angeklickt" height="92" width="147" /></dt>
<dd>Die Seite zeigt nur die erste Unterseite an.&nbsp;</dd>
</dl>
<p>Möchtest Du nicht, dass etwaige Unterseiten einer Unterseite gleich sichtbar sind, dann lasse einfach das &#8216;true&#8217; weg. <br class="clear" /></p>
<p>Nachfolgend die unterschiedlichen CSS classes des Plugins.</p>
<h3>Page Fold List aktiviert &#8211; Quelltext der Startseite</h3>
<dl class="center" style="width:160px;">
<dt><img src="http://www.texto.de/wp-images/1006/fold-page-list-start.gif" alt=" Quelltext bei Aktivierung des Plugins Fold Page Menu" height="92" width="147" /></dt>
<dd> Fold Page List aktiviert aber noch keine Seite angeklickt&nbsp;</dd>
</dl>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>li id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pagenav&quot;</span><span style="color: #339933;">&gt;&lt;</span>h2<span style="color: #339933;">&gt;</span>Seiten<span style="color: #339933;">&lt;/</span>h2<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;&lt;</span>li <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;page_item&quot;</span><span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;..&gt;eine Seite ohne Unterseite&lt;/a&gt;
                &lt;/li&gt;
             &lt;li class=&quot;</span>page_item page_folder<span style="color: #0000ff;">&quot;&gt;&lt;a href=&quot;</span><span style="color: #339933;">..&gt;</span>eine Seite mit Unterseite<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
                 <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
             <span style="color: #339933;">&lt;</span>li <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;page_item&quot;</span><span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;..&gt;eine Seite ohne Unterseite&lt;/a&gt;
                  &lt;/li&gt;
                   usw...
       &lt;/ul&gt;
    &lt;/li&gt;
&lt;/ul&gt;</span></pre></div></div>

<p>Die <strong>id pagenav</strong> und die <strong>class page_item</strong> macht WordPress von sich aus immer. </p>
<p>Es ist anhand der zus&auml;tzlichen <strong>css class page_folder</strong> ersichtlich, dass das Plugin von sich aus erkennt , ob eine Seite eine Unterseite hat oder nicht. Somit sind diese Seiten mit Unterseiten auch anders gestaltbar. </p>
<h3>Page Fold List beim Klick auf eine Seite mit Unterseite</h3>
<dl class="center" style="width:160px;">
<dt><img src="http://www.texto.de/wp-images/1006/fold-page-list-unterseite.gif" alt=" eine Seite mit einer Unterseite angeklickt" height="92" width="147" /></dt>
<dd>eine Seite angeklickt , die  eine Unterseite hat, die keine weitere Unterseite mehr hat.&nbsp;</dd>
</dl>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;&lt;</span>li id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pagenav&quot;</span><span style="color: #339933;">&gt;&lt;</span>h2<span style="color: #339933;">&gt;</span>Seiten<span style="color: #339933;">&lt;/</span>h2<span style="color: #339933;">&gt;</span>
         <span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;&lt;</span>li <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;page_item&quot;</span><span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;...&gt;Seite ohne Unterseite&lt;/a&gt;
                      &lt;/li&gt;
                 &lt;li class=&quot;</span>page_item page_folder<span style="color: #0000ff;">&quot;&gt;&lt;a href=&quot;</span><span style="color: #339933;">....&gt;</span>Seite mit Unterseite<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
                       <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
                 <span style="color: #339933;">&lt;</span>li <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;page_item&quot;</span><span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;...&gt;Seite ohne Unterseite&lt;/a&gt;
                       &lt;/li&gt;
                &lt;li class=&quot;</span>page_item current_page_item page_folder<span style="color: #0000ff;">&quot;&gt;&lt;a href=&quot;</span><span style="color: #339933;">..</span><span style="color: #0000ff;">&quot;&gt;aktivierte Seite mit Unterseite&lt;/a&gt;
&nbsp;
                    &lt;ul&gt;
	                 &lt;li class=&quot;</span>page_item<span style="color: #0000ff;">&quot;&gt;&lt;a href=&quot;</span><span style="color: #339933;">..&gt;</span>Unterseite ohne weitere Unterseite<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
	                   <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
                   <span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
             <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Die CSS class <strong> current_page_item</strong> macht WordPress immer. Damit sind die aktivierten Seiten gestaltbar. </p>
<h3>Page Fold List beim Klick auf eine Seite mit Unterseite, die wiederum eine Unterseite hat. </h3>
<dl class="center" style="width:160px;">
<dt><img src="http://www.texto.de/wp-images/1006/fold-page-list-unterseite-u.gif" alt=" eine Seite mit einer Unterseite, die wiederum eine Unterseite hat angeklickt" height="92" width="147" /></dt>
<dd>eine Seite angeklickt , die eine Unterseite hat, die eine weitere Unterseite  hat.&nbsp;</dd>
</dl>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;&lt;</span>li id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pagenav&quot;</span><span style="color: #339933;">&gt;&lt;</span>h2<span style="color: #339933;">&gt;</span>Seiten<span style="color: #339933;">&lt;/</span>h2<span style="color: #339933;">&gt;</span>
         <span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;&lt;</span>li <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;page_item&quot;</span><span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;..&gt;Seite ohne weiter Unterseite&lt;/a&gt;
                  &lt;/li&gt;
               &lt;li class=&quot;</span>page_item current_page_ancestor page_folder<span style="color: #0000ff;">&quot;&gt;&lt;a href=&quot;</span><span style="color: #339933;">...</span> <span style="color: #339933;">&gt;</span>Seite mit Unterseite<span style="color: #339933;">,</span> <span style="color: #990000;">die</span> wiederum eine Unterseite hat<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
                   <span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span>
	             <span style="color: #339933;">&lt;</span>li <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;page_item current_page_item page_folder&quot;</span><span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;...&gt;Unterseite , die eine Unterseite hat&lt;/a&gt;
&nbsp;
	                &lt;ul&gt;
		            &lt;li class=&quot;</span>page_item<span style="color: #0000ff;">&quot;&gt;&lt;a href=&quot;</span><span style="color: #339933;">..&gt;</span>Unterseite der Unterseite<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
		              <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
	                <span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
	           <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
               <span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
           <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
           <span style="color: #339933;">&lt;</span>li <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;page_item&quot;</span><span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=..&gt;</span>Seite ohne Unterseite<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
               <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
     <span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Fold Page List fügt zur &#8220;Mutterseite&#8221; der beiden Unterseiten die CSS class <strong>current_page_ancestor</strong> dazu, somit ist auch dieser &#8220;Zustand&#8221; gestaltbar. </p>
<p><span class="caplize">F</span>azit mit diesem Plugin Fold Page List ist nicht nur die Sidebar aufger&auml;umt und er überblick bewahrt, sondern es stehen für die verschiedenen Zust&auml;nde der jeweils aktivierten Seiten eigene css classes zur Verfügung und ermöglichen somit eine höchst einfallsreiche und individuelle Gestaltung.  Da hat ein CSS Freak programmiert. Ich finde dies einfach sehr, sehr gut. <img src='http://www.texto.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<div class="sign">viel Spa&#223; mit der Seiten- Navigation </div>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. Original article:  <a href="http://www.texto.de/fold-page-list-deutsch-aufklappbare-seitennavigation-254/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/fold-page-list-deutsch-aufklappbare-seitennavigation-254/feed/</wfw:commentRss>
		<slash:comments>50</slash:comments>
		</item>
		<item>
		<title>Fold Page Menu &#8211; aufklappbare Seitennavigation</title>
		<link>http://www.texto.de/fold-page-menu-aufklappbare-seitennavigation-251/</link>
		<comments>http://www.texto.de/fold-page-menu-aufklappbare-seitennavigation-251/#comments</comments>
		<pubDate>Sun, 08 Oct 2006 00:48:41 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[wordpress-cms]]></category>
		<category><![CDATA[wordpress-plugins]]></category>

		<guid isPermaLink="false">http://www.texto.de/texto/fold-page-menu-aufklappbare-seitennavigation/</guid>
		<description><![CDATA[Du hast viele statische Seiten und auch viele Unterseiten und das Menü in der Sidebar wurde Dir zu lang. Abhilfe schafft hier das WordPress Plugin Fold Page Menü. Hier die Anleitung in Deutsch.]]></description>
			<content:encoded><![CDATA[<p><span class="caplize">F</span>old <a href="http://www.mealldubh.org/index.php/software/fold_page_menus/" title="Externer Link:Fold Page Menü aufklappbare Seitennavigation">Page Menu</a>  von John McCreesh klappt Seiten und ihre dazugehörigen Unterseiten auf und zu. <a href="http://www.texto.de/texto/statische-seiten-bequem-im-admincenter-ausschliessen-page-link-manager/#comment-1809" title="nepf seine Nachfrage"> nepf</a> erw&auml;hnte es in einen Kommentar und prompt wurde ich per Email danach gefragt &#8211; also hier ist die deutschsprachige Anleitung für dieses einfache und so fantastische Plugin.;) <br class="clear" /></p>
<dl class="center" style="width:480px;">
<dt><img src="http://www.texto.de/wp-images/1006/fold-page-menus.gif" alt=" Fold Page Menu aktiv oder nicht" height="288" width="475" /></dt>
<dd>Fold Page Menu aktiv und nicht aktiv. &nbsp;</dd>
</dl>
<p><br class="clear" /></p>
<ol>
<li>WordPress Plugin Download:<br /> <a href="http://www.texto.de/count/downloadcounter.php?stwc_cz=1&amp;stwc_id=7" title="Fold Page Menu als zip Datei ">Fold Page Menu</a>.</li>
<li>Entpacken:wp-content/themes/plugins/ hochladen.</li>
<li>Sidebar.php mit einem Editor Deiner Wahl öffnen.</li>
<li>Untenstehenden Code &auml;ndern.</li>
<li>Speichern. Fertig.</li>
</ol>
<h3>Sidebar für Fold Page Menu vorbereiten</h3>
<p>Dieses Plugin wie hier beschrieben eingefügt ergibt<span id="more-251"></span> auch keine Fehlermeldung, wenn es deaktiviert wird.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'fold_page_menus'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #009900;">&#40;</span>fold_page_menus<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'title_li=&lt;h2&gt;Seiten&lt;/h2&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title_li=&lt;h2&gt;Seiten&lt;/h2&gt;'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Dieses Plugin akzeptiert alle Einstellungen die man mit wp-list-pages machen kann. </p>
<p>N&auml;here Information findest Du bei meinen wp-list-pages Spielereien.</p>
<div class="sign"> <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </div>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. Original article:  <a href="http://www.texto.de/fold-page-menu-aufklappbare-seitennavigation-251/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/fold-page-menu-aufklappbare-seitennavigation-251/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

