<?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; WordPress Themes</title>
	<atom:link href="http://www.texto.de/tag/wordpress-themes/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>Theme Check überprüfe Dein Theme</title>
		<link>http://www.texto.de/theme-check-ueberpruefe-dein-theme-1320/</link>
		<comments>http://www.texto.de/theme-check-ueberpruefe-dein-theme-1320/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 20:18:02 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[WordPress Theme]]></category>
		<category><![CDATA[WordPress Quick Tipps]]></category>
		<category><![CDATA[WordPress Themes]]></category>

		<guid isPermaLink="false">http://www.texto.de/?p=1320</guid>
		<description><![CDATA[mit dem Plugin WP Theme Check, kannst du dein WordPress Theme ganz einfach überprüfen. ]]></description>
			<content:encoded><![CDATA[<dl class="left" style="width:215px;">
<dt>&nbsp;</dt>
<dd><img  src="http://www.texto.de/wp-images/wordpress-menschen.jpg" alt="WordPress-der Mensch dahinter" width="200" height="124" /></dd>
</dl>
<p>  <span class="caplize">D</span>u hast Dein Theme liebgewonnen oder Du überlegst Dir ein neues Theme zu nutzen. Mit dem WP Plugin Theme Check kannst Du ganz leicht überprüfen, ob es auch den WordPress Standards entspricht. </p>
<h3>Was prüft Theme Check</h3>
<p>Es prüft die Theme Guidelines, die es auf wordpress.org/extend/themes seit geraumer Zeit gibt==> <a href="http://codex.wordpress.org/Theme_Review" title="Theme Review">Theme Review</a>.</p>
<p><span id="more-1320"></span></p>
<p>Download: <a href="http://wordpress.org/extend/plugins/theme-check/" title="Theme Check">Theme Check</a>.<br />
Aktivieren und via Admin nutzen.</p>
<div class="sign">Gäb es diese Qualität auch bei den WP Plugins blieb uns oft Kopfzerbrechen erspart <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/theme-check-ueberpruefe-dein-theme-1320/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/theme-check-ueberpruefe-dein-theme-1320/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Be My Guest WP Magazine Theme</title>
		<link>http://www.texto.de/be-my-guest-wp-magazine-theme-910/</link>
		<comments>http://www.texto.de/be-my-guest-wp-magazine-theme-910/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 07:31:22 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[WordPress Theme]]></category>
		<category><![CDATA[WordPress Themes]]></category>

		<guid isPermaLink="false">http://www.texto.de/?p=910</guid>
		<description><![CDATA[WordPress Magazin Theme Be My Guest bietet viele Einstellungsmöglichkeiten im Adminbereich und eine hochkonfigurierbare Startseite. ]]></description>
			<content:encoded><![CDATA[<dl class="left" style="width:310px;">
<dt> Be My Guest WordPress Magazine Theme&nbsp;</dt>
<dd><a href="http://www.webdesign-in.de/wp-themes?wptheme=Be%20My%20Guest" title="Be My Guest Live Preview"><img src="http://www.texto.de/wp-images/1109/screenshot-bemyguest.jpg" alt=" Screenshot von be my guest" width="300" height="225" /></a></dd>
<dd>Theme Vorschau &#8211; Live Preview</dd>
</dl>
<p><span class="caplize">B</span>e My Guest ist ein WordPress Magazine Theme mit eine Unmenge an Einstellungsmöglichkeiten.   </p>
<p>Werbung kann an vielen Plätzen geschaltet   und leicht in der OptionsPage eingetragen werden. <br class="clear" /></p>
<p><span id="more-910"></span></p>
<p>Dein Counter Code ist ebenfalls dort daheim. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />   </p>
<p>Außerdem kannst Du angeben ob Du: das Datum, den Autor, die postmeta oder die Autoreninfo anzeigen lassen magst. </p>
<p>Kategorien und Anzahl der Artikel auf der Startseite sidn ebenfalls wählbar. </p>
<p>Mehr Information zu Be My Guest gibts  im Release Artikel: <a href="http://www.webdesign-in.de/mts/be-my-guest-mein-wordpress-magazin-theme/" title="Be My Guest WordPress Magazin Theme">Be My Guest WP Magazin Theme </a></p>
<p><a href="http://www.webdesign-in.de/wp-themes?wptheme=Be%20My%20Guest" title="Be My Guest in Aktion">Live Preview</a>  und <a href="http://www.webdesign-in.de/downloads/BeMyGuest" title="Download ">Download </a>von Be My Guest dem WordPress Magazin. </p>
<div class="sign"><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/be-my-guest-wp-magazine-theme-910/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/be-my-guest-wp-magazine-theme-910/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>200 WordPress Themes weniger auf wordpress.org/extend</title>
		<link>http://www.texto.de/200-wordpress-themes-weniger-710/</link>
		<comments>http://www.texto.de/200-wordpress-themes-weniger-710/#comments</comments>
		<pubDate>Sun, 14 Dec 2008 07:40:42 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[WP-News]]></category>
		<category><![CDATA[WordPress Themes]]></category>

		<guid isPermaLink="false">http://www.texto.de/?p=710</guid>
		<description><![CDATA[200 WordPress Themes weniger auf WordPress.org. Wer Premium Themes anbietet oder ähnliche wird nicht mehr freigeschaltet. Offenbar gibt es jedoch Ausnahmen - wie man zur Ausnahme wird -erfährt man jedoch nicht.]]></description>
			<content:encoded><![CDATA[<dl class="left" style="width:310px;">
<dt> WP Themes-nicht alle sind gleich&nbsp;</dt>
<dd><img src="http://www.texto.de/wp-images/1208/wpthemes.gif" alt=" WordPress Themes" width="300" height="313" /></dd>
</dl>
<p><span class="caplize">W</span>ordPress.org/extend/themes hat über Nacht die Regeln für das Hosten und Promoten von WordPress geändert.</p>
<p>Somit sind dort an die <strong>200 WordPress Themes</strong> weniger zu sehen. Der Grund:</p>
<blockquote><p>
All themes are subject to review. Themes for sites that support &#8220;premium&#8221; (non-GPL or compatible) themes will not be approved.<cite><a href="http://wordpress.org/extend/themes/about/#requirements" title="Requirements">Requirements</a></cite></p>
</blockquote>
<p>Dies bedeutet:selbst wenn das WP Theme der GPL entspricht, es nur einen Link zum Theme Autor <span id="more-710"></span>gibt, aber dieser auch WordPress Themes auf dieser Domain verkauft oder WordPress Themes mit einer zusätzlichen Lizenz als GPL anbietet, werden dort nicht mehr freigeschaltet.</p>
<p>Auttomatic, die Firma dahinter kann dies tun, es ist ihre Domain. Sie sind Hausherr. Regeln über Nacht zu ändern-ohne die Betroffenen vorher zu informieren, hinterläßt einen schalen Geschmack.</p>
<p>Ebenfalls sind die Tags,mit denen man die WordPress Themes näher beschreiben ab nun limitiert.</p>
<p>WordPress.org/extend hostet darüber hinaus sowieso nur reine Blog Themes, es müssen alle Template Tags benutzt werden, die auch im default Theme vorhanden sind. Man kann also diesbezüglich keine wirklichen Business Designs online stellen.</p>
<p>Wie auch immer, 200 WordPress Themes sind jede Menge. Darunter welche, die einen Tag davor noch hervorgehoben wurden.</p>
<p>Justin  bietet eine interessante Diskussion. Einerseits promotet WP Revolution mit eigenem Banner auf WordPress.org/extend/themes, andererseits löscht es andere Designs, die nichts anders machen. </p>
<p>Ein Schelm wer Böses dabei denkt&#8230;</p>
<div class="sign"> <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/200-wordpress-themes-weniger-710/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/200-wordpress-themes-weniger-710/feed/</wfw:commentRss>
		<slash:comments>35</slash:comments>
		</item>
		<item>
		<title>WordPress Theme Vorlage</title>
		<link>http://www.texto.de/wordpress-theme-vorlage-186/</link>
		<comments>http://www.texto.de/wordpress-theme-vorlage-186/#comments</comments>
		<pubDate>Sat, 01 Nov 2008 17:20:47 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[WordPress Theme]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[WordPress Themes]]></category>

		<guid isPermaLink="false">http://www.texto.de/texto/wordpress-theme-vorlage/</guid>
		<description><![CDATA[Du kannst CSS und XHTML und Du magst Dein eigenes WordPress Theme erstellen. Hier ist eine Blanko Vorlage für Dein eigenes WordPress Theme. Getestet auf WP 2.3.2 und wird immer erneuert. WordPress Vorlage ist in deutsch Blank WordPress Theme in english. Au&#223;erdem erkläre ich wie man Widget einbinden kann.]]></description>
			<content:encoded><![CDATA[<p><img src="/wp-images/smilies/texto-flag-en.gif" alt="english language flag" width="54" height="35" /> : <a href="http://www.texto.de/wordpress-theme-vorlage-186/#blank" title="Blank WordPress Theme in english">Jump to the &#8220;Blank WordPress Theme in English&#8221;</a>.  <img src='http://www.texto.de/wp-includes/images/smilies/zwinker.gif' alt=':zwinker:' class='wp-smiley' />  <a name="leer" title="WP Vorlage in Deutsch"></a></p>
<div class="eyecatch">
<p><strong>Update: 29.11.09 alle Themes sind nun WP 2.8 und höher kompatibel</strong></p>
<p>außerdem haben seit dem 14.03.07 knappe 100.000 User den Artikel gelesen. <img src='http://www.texto.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
vorher habe ich das nicht gezählt &#8230;</p>
<ul>
<li>WordPress Theme Vorlage downloaden als zip Datei downloaden: <br /><a href="http://www.texto.de/downloads/DEleertheme" title="Zip Datei WordPress Theme Vorlage">WordPress Theme Vorlage für >WP 2.8</a>.
</li>
</ul>
</div>
<p><span id="more-186"></span></p>
<dl style="width:365;float:right;">
<dt>WordPress Theme Vorlage &#8211; > WordPress 2.8 </dt>
<dd><img src="http://www.texto.de/wp-images/0506/screenshot.gif" alt="index.php" width="359" height="320" /></dd>
<dd>Ein Ausschnitt aus der  auskommentierten index.php.</dd>
</dl>
<p>Oft taucht die Frage auf, wie man denn WordPress seiner eigenen Seite anpassen kann. Ob es denn kein Tutorial dafür g&auml;be. <br />&#196;ngste machen sich breit, weil man zwar <abbr title="Cascading Style Sheet"><span class="abbr" title= "Cascading Style Sheet">CSS</span></abbr> und <abbr title="Hyper Text Markup Language "><span class="abbr" title= "Hyper Text Markup Language">HTML</span></abbr> kann, aber nicht <a href="http://www.webdesign-in.de/mts/php/" title="Externer Link:PHP Erkl&auml;rung">PHP</a>.</p>
<h3>WordPress Theme Vorlage</h3>
<p>Dieses WordPress Theme hat absolut kein Design. Jede der Dateien ist von mir mit vielen Kommentaren versehen, damit Du wei&#223;t was Du da gestaltest.<br class="clear" /></p>
<p>Ich empfehle Dir aktiviere dieses Theme ohne Design und sieh Dir an, was dann alles passiert.<br /> So bekommst Du eine Ahnung und Wissen was dies alles bedeutet.</p>
<p>Das <strong>WordPress Theme Vorlage</strong> beinhaltet folgende <!--more-->Templates:</p>
<ol>
<li>index.php==>Startseite.
</li>
<li>single.php==>zeigt den ganzen Artikel.
</li>
<li>comments.php==>Liefert die Kommentare und das Formular dafür.
</li>
<li>search.php==>zeigt Suchergebnisse an.
</li>
<li>searchform.php==>gestaltet die Suche.==> gibt es ab WP 2.7 nicht mehr kannst Du Dir aber selbst einfach machen.
</li>
<li>archive.php==>zeigt Archive und Kategorienübersicht an.
</li>
<li>archives.php==>eigene statische Seite zb für eine Usersitemap.
</li>
<li>images.php==>zeigt Anhänge an und Bilder etc.
</li>
<li>404.php==>eigene Error 404.
</li>
<li>page.php==>für statische Seiten.
</li>
<li>links.php==>Muster für eine eigene statische Seite.
</li>
<li>sidebar.php==>die Navigation.
</li>
<li>header.php==>der notwendige html Header.
</li>
<li>footer.php==>der notwendige html footer und für einen eigenen Footer.
</li>
<li>functions.php==>ist vorbereite für viele Sidebars.
</li>
</ol>
<p>Nur dort wo ich es als nötig erachtet habe steht bereits HTML dabei. Da WordPress einiges bereits mit li tags erzeugt findest Du in der sidebar.php eben die ungeordnete Liste oder bei den Kommentaren, weil dies sonst total unübersichtlich wird. Ebenso bei den Artikeltiteln, weil sonst die nötige Information verloren gegangen w&auml;re.  </p>
<ul>
<li>WordPress Theme Vorlage downloaden als zip Datei downloaden: <br /><a href="http://www.texto.de/downloads/DEleertheme" title="Zip Datei WordPress Theme Vorlage">WordPress Theme Vorlage für >WP 2.8</a>.
</li>
<li>Entpacken.
</li>
<li>Nach wp-content/themes/ hochladen==>wp-content/themes/default_deleer.
</li>
<li>Dem Ordner die nötigen Schreibrechte geben.
</li>
<li>Admincenter==>Themes==>WordPress Theme Vorlage aktivieren.
</li>
<li>Ansehen was wie wo erscheint.
</li>
<li>Admincenter==>Themes==>Theme-Editor==>Beginne Dein Werk.;)
</li>
</ul>
<p><strong>neu seit Juni 2007 bis WP > 2.8</strong></p>
<p>In der style.css sind einige Grundangaben gemacht, damit man l nicht was vergisst zum Gestalten.</p>
<h3>Functions.php und wie macht man sein Theme Widget f&auml;hig:</h3>
<p>functions.php ist im Download enthalten!</p>
<p>So kan man <strong>Widget einbinden</strong>.</p>
<p>In der sidebar.php steht drin:</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;">'Right Sidebar'</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>dann ganz unten</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;!--dieses endif beendet die widget funktion--&gt;
			<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>Das in Klammerngesetzte &#8220;Right Sidebar&#8221; gibt an, dass alles was man in die Right Sidebar setzt jetzt in der sidebar.php landet.</p>
<p><strong>Beispiel Du magst ein Theme mit zwei Sidebars machen eine Links und eine Rechts. </strong></p>
<p>In die linke Sidebar kommt dann:</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;">'Left Navigation'</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>
dazwischen alles mögliche falls keine widgets genutzt werden
&lt;!--dieses endif beendet die widget funktion--&gt;
			<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>In die Rechte:</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;">'Right Sidebar) ) : else : ?&gt;</span>
dazwischen alles mögliche falls keine widgets genutzt werden
&lt;!--dieses endif beendet die widget funktion--&gt;
			<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>Drei extra Spalten unterhalb des Contens und die sollen auch für Widget Nutzung hergerichtet werden:</p>
<p>Für die ganz die rechte Spalte</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;">'Right Footer) ) : else : ?&gt;</span>
dazwischen alles mögliche falls keine widgets genutzt werden
&lt;!--dieses endif beendet die widget funktion--&gt;
			<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>Für die mittlere der beiden:</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;">'Middle Footer) ) : else : ?&gt;</span>
dazwischen alles mögliche falls keine widgets genutzt werden
&lt;!--dieses endif beendet die widget funktion--&gt;
			<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>Für die ganz die Linke:</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;">'Left Footer) ) : else : ?&gt;</span>
dazwischen alles mögliche falls keine widgets genutzt werden
&lt;!--dieses endif beendet die widget funktion--&gt;
			<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>

<h3>Der Himmel f&auml;llt Dir auf denKopf,wenn&#8230;</h3>
<ul>
<li>Du mir hier keinen Kommentar hinterl&auml;&#223;t.
</li>
<li>Du mir keinen Link Deines Werkes zeigst.
</li>
</ul>
<h3>Artikelhistorie</h3>
<p>Erstfassung am 09.05.06<br />
Deutsche Fassungam 16. Juni 2007 erneuert.<br />
Englische und Deutsche Fassung erneuert 04.01.08.<br />
Englische und Deutsche Fassung an WP 2.7 angepasst: 1.11.08<br />
Englische und Deutsche Fassung an WP > 2.8 angepasst: 29.11.09<br />
<strong>Und wenn es hilfreich war, freue ich mich über einen Link auf texto.de. Danke! <img src='http://www.texto.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </strong></p>
<div class="sign">&#8230;. viel Freud</div>
<p><a name="blank" title="blank"></a></p>
<p><img src="/wp-images/smilies/texto-flag-en.gif" alt="english language flag" width="54" height="35" /></p>
<div class="eyecatch">
<p><strong>Update: 28.11.09 now WP > 2.8 ready </strong></p>
<p>Update:1.11.08  now it is WP 2.7 ready -new templates, new template tags, read and enjoy! </p>
<p>100.000 Reader since 14.03.07  &#8211; <img src='http://www.texto.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<ul>
<li>Dowonload<br /><a title="Blank WordPress Theme as zip file" href="http://www.texto.de/downloads/Defaultempty">Blank WordPress Theme for WP >= 2.8</a>
</li>
</ul>
</div>
<dl style="width:365;float:right;">
<dt>Blank WordPress Theme &#8211;  WP > 2.8  ready</dt>
<dd><img src="http://www.texto.de/wp-images/0506/screenshoteng.gif" alt="index.php" width="300" height="225" /></dd>
</dl>
<p>You would like to have <strong>your own WordPress Theme</strong>. You know something about  <abbr title="Cascading Style Sheet"><span class="abbr" title= "Cascading Style Sheet">CSS</span></abbr> and <abbr title="Hyper Text Markup Language "><span class="abbr" title= "Hyper Text Markup Language">HTML</span></abbr>. You don&#8217;t know <a href="http://www.webdesign-in.de/mts/php/" title="Externer Link:PHP Erkl&auml;rung">PHP</a> and  template tags are not your friends.</p>
<p></p>
<h3>Blank WordPress Theme</h3>
<p>Templates without design.  HTML only if it is absolut necessary for you. But full of comments to explain the functions.</p>
<ol>
<li>index.php==>Mainpage.
</li>
<li>single.php==>full article.
</li>
<li>comments.php==>comments and the necessary fields..==>new at WP 2.7!
</li>
<li>search.php==>searchresults.
</li>
<li>searchform.php==>searchfield.==>there is no template but a new template tag at WP 2.7
</li>
<li>archive.php==>archives and categories.
</li>
<li>images.php==>for attachments >WP 2.5
</li>
<li>404.php==>your own error 404.
</li>
<li>page.php==>static pages.
</li>
<li>links.php==>individual static page.
</li>
<li>sidebar.php==>sidebar navigation.
</li>
<li>header.php==>html header.
</li>
<li>footer.php==>html footer.
</li>
<li>functions.php<br />
</li>
</ol>
<ul>
<li>Dowonload<br /><a title="Blank WordPress Theme as zip file" href="http://www.texto.de/downloads/Defaultempty">Blank WordPress Theme for WP >= 2.8</a></li>
<li>Unzip it.
</li>
<li>Upload to wp-content/themes/
</li>
<li>Admincenter==>Themes==>activate the theme.
</li>
<li>Admincenter==>Theme==>Themeeditor==>Here you are able to do as you likes.
</li>
</ul>
<p><strong>New  since Juni 2007 and new since 29.11.09</strong></p>
<p>style.css full with necessary class and id or tags. </p>
<h3>Functions.php ==>How  to use  Widget </h3>
<p> sidebar.php :</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;">'Right Sidebar'</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>at the end:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;!--widget function end--&gt;
			<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><strong>Example two Sidebars one right one left </strong></p>
<p>left sidebar:</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;">'Left Navigation'</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>
your stuff if no widget
&lt;!--widget function end--&gt;
			<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>right sidebar:</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;">'Right Sidebar) ) : else : ?&gt;</span>
your stuff if no widget
&lt;!--widget function end--&gt;
			<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><strong>Three Columns under content or in the footer:</strong></p>
<p>right column:</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;">'Right Footer) ) : else : ?&gt;</span>
your stuff if no widget
&nbsp;
&nbsp;
&lt;!--widget function end--&gt;
			<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>middle column</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;">'Middle Footer) ) : else : ?&gt;</span>
your stuff if no widget
&lt;!--dieses endif beendet die widget funktion--&gt;
			<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>left column:</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;">'Left Footer) ) : else : ?&gt;</span>
your stuff if no widget
&lt;!--widget function end--&gt;
			<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>

<h3>Articlehistorie</h3>
<p>First: am 09.05.06<br />
english new since 16. Juni 2007<br />
typos and ready for WP >2.3 04/01/08<br />
ready for WP 2.7: 11/01/08<br />
ready for WP >2.8 since 11/29/09<br />
Please leave a reply or spent me a social bookmark &#8230;.  or</p>
<h3>the sky will fall on your head. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </h3>
<div class="sign">..  I wish you well</div>
<h3> und noch was &#8230;</h3>
<p>Vom 14.03.07  bis zum 25.August 2011 wurde dieser Artikel  214749  mal gelesen, dann habe ich den sichtbaren PostReadCounter aus Performancegründen abgeschaltet. <img src='http://www.texto.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  </p>
<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/wordpress-theme-vorlage-186/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/wordpress-theme-vorlage-186/feed/</wfw:commentRss>
		<slash:comments>253</slash:comments>
		</item>
		<item>
		<title>Ein WordPress Theme entsteht &#8211; Teil 2</title>
		<link>http://www.texto.de/ein-wordpress-theme-entsteht-teil-2-652/</link>
		<comments>http://www.texto.de/ein-wordpress-theme-entsteht-teil-2-652/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 18:18:39 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[WordPress Theme]]></category>
		<category><![CDATA[WordPress Themes]]></category>

		<guid isPermaLink="false">http://www.texto.de/?p=652</guid>
		<description><![CDATA[Ein WordPress Theme von der Idee zur Umsetzung. Geringe CSS und XHTML Kenntnisse sind nötig. Der Rest sind Anpassungen diverser Tutorials, die alle hier auf Texto.de zu finden sind. Heute kommt header.php und footer.php dran, die widgetfähig gemacht wird.]]></description>
			<content:encoded><![CDATA[<dl class="left" style="width:455px;">
<dt> WordPress Theme Idee Demo</dt>
<dd><a href="http://www.texto.de/mts-theme-erstellung/" title="Muster Design"><img src="http://www.texto.de/wp-images/1008/theme-gestaltung-01.gif" alt=" WordPress Theme Erstellung" width="450" height="261" /></a></dd>
</dl>
<p> <span class="caplize">I</span>n meinem 1. Artikel zu dieser WP Theme Serie wurde die index.php so gestaltet, dass sie die passenden Kategorien entweder Links oder Rechts anzeigt.  Für das XHTML ist jetzt noch die header.php und die footer.php nötig.  Im Footer sollen außerdem Widgets angezeigt werden können. Also siehst Du hier wie man etwas widgetfähig macht.<br class="clear" /></p>
<p><span id="more-652"></span></p>
<h3>header.php anpassen</h3>
<p>Als Grundgerüst für eine passablen header.php kann man den des default Themes nehmen. </p>
<p>Folgendes muß aber aus dieser header.php vorerst gelöscht werden.</p>
<p>Dies findest Du VOR /head:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;style type=&quot;text/css&quot; media=&quot;screen&quot;&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">// Checks to see whether it needs a sidebar or not</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$withcomments</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span>is_single<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>
	#page { background: url(&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'stylesheet_directory'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/images/kubrickbg-<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'text_direction'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot;) repeat-y top; border: none; }
<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: #666666; font-style: italic;">// No sidebar ?&gt;</span>
	<span style="color: #666666; font-style: italic;">#page { background: url(&quot;&lt;?php bloginfo('stylesheet_directory'); </span><span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">/</span>images<span style="color: #339933;">/</span>kubrickbgwide<span style="color: #339933;">.</span>jpg<span style="color: #0000ff;">&quot;) repeat-y top; border: none; }
&lt;?php } ?&gt;</span>
&nbsp;
&lt;/style&gt;</pre></div></div>

<p>Nach body mußt Du dies alles löschen:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;div id=&quot;page&quot;&gt;
&lt;div id=&quot;header&quot;&gt;
	&lt;div id=&quot;headerimg&quot;&gt;
		&lt;h1&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'home'</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> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</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;/h1&gt;
		&lt;div class=&quot;description&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'description'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
	&lt;/div&gt;&lt;/div&gt;&lt;hr /&gt;</pre></div></div>

<p>Nach body fügst Du jetzt untenstehendes ein. </p>
<p>Wie die CSS class gestaltet wurden, findest Du im Download der Musterdatei am Ende des Artikels hier.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #339933;">&lt;/</span>head<span style="color: #339933;">&gt;</span>
 <span style="color: #339933;">&lt;</span>body<span style="color: #339933;">&gt;&lt;!--</span>steht schon da nicht nochmals einfuegen<span style="color: #339933;">-</span>nur damit du weisst wo
 <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;navaussen&quot;</span><span style="color: #339933;">&gt;</span>
 <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;navinnen clearfix&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
 <span style="color: #339933;">&lt;</span>h1<span style="color: #339933;">&gt;</span>Fresh v<span style="color: #339933;">&lt;</span>span <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;fresh&quot;</span><span style="color: #339933;">&gt;</span>s<span style="color: #339933;">.</span> Trash<span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;&lt;/</span>h1<span style="color: #339933;">&gt;</span>
&nbsp;
 <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;cat clearfix&quot;</span><span style="color: #339933;">&gt;</span>
 <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Kategorien siehe Tutorial<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Tags siehe Tutorial<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
 <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span>cat end<span style="color: #339933;">--&gt;</span>
 <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
 <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span>navaussen end<span style="color: #339933;">--&gt;</span>
&nbsp;
 <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;postaussen&quot;</span><span style="color: #339933;">&gt;</span>
 <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;postinnen clearfix&quot;</span><span style="color: #339933;">&gt;</span></pre></div></div>

<h3>Kategorien und Tags anzeigen</h3>
<p>Der Blogtitel steht unter navaussen, navinnen und innerhalb dessen werden die Kategorien und die Tags angezeigt. </p>
<p>Das Blog ist jung, doch irgendwann werden es viele Tags und noch mehr Kategorien sein, daher empfiehlt es sich entweder nur einige Kategorien *händisch* zu verlinken oder dieses Tutorial zu lesen und anwenden </p>
<p><a href="http://www.texto.de/wordpress-theme-wie-teilt-man-die-anzeige-der-kategorien-auf-wp-list-categories-539/" title="Anzeige der Kategorien aufteilen"><strong>wp_list_categories</strong></a>.</p>
<p>Außerdem kann man  die angezeigten Tags  limitieren, das kann zb das <strong>WP Plugin Simple Tags</strong> ganz gut.</p>
<p>Brauchst Du Hilfe, weil Du eine horizontale Liste nicht gut anzeigen kannst, dann hilft dies sicher weiter:<strong>Horizontale Liste gestalten</strong>.</p>
<h3>Footer.php das XHTML</h3>
<p>Die index.php endet so:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;/div&gt;&lt;!--sidebar end--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_footer<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>d.h. all das was in der header.php  anfing muß in der footer.php geschlossen werden.</p>
<p>postinnen und postaussen sind als divs noch nicht geschlossen.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span>postinnen <span style="color: #990000;">end</span> postaussen end<span style="color: #339933;">--&gt;</span>
 <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;footeraussen&quot;</span><span style="color: #339933;">&gt;</span>
 <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;footerinnen clearfix&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span>footerinnen <span style="color: #990000;">end</span> footeraussen end<span style="color: #339933;">--&gt;</span>
<span style="color: #339933;">&lt;/</span>body<span style="color: #339933;">&gt;&lt;/</span>html<span style="color: #339933;">&gt;</span></pre></div></div>

<p>&raquo; &raquo; Spätestens jetzt empfiehlt es sich, das XHTML zu testen: <a href="http://validator.w3.org/" title="Validator">Validator</a>. Vor Fehler ist niemand gefeit und besser ist besser <img src='http://www.texto.de/wp-includes/images/smilies/zwinker.gif' alt=':zwinker:' class='wp-smiley' />  </p>
<p>Im 1. Artikel war mir noch nicht klar, was da alles in den Footer reinsollte. Via PN im forum.wordpress-deutschland.org erfuhr ich, dass Widgets ganz gut wären. Obwohl noch unbekannt.</p>
<h3>Spalten im Footer</h3>
<p>Man kann da 3 Spalten machen oder nur 2 oder auch 4 &#8211;  Wobei dies dann schon sehr eng wird <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Die Methode ist immer dieselbe, bei den Breitenangaben muß man sich spielen. Da geringe CSS und XHTML Kenntnisse da sind und ich flexible Designs bevorzuge, stelle ich hier eine Methode mit 3 Spalten vor:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box03&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box02&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box01&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Ich lasse die box03 und box02 nach Rechts fließen (float right), daher müssen die beiden vor box01 stehen, diese fließt nach Links (float left). Zur Demonstration bekamen die 3 einen sehr bunten Rahmen <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  .</p>
<h3>CSS der 3 Spalten in der footer.php</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">.</span>box03<span style="color: #009900;">&#123;</span>width<span style="color: #339933;">:</span><span style="color:#800080;">32.1</span><span style="color: #339933;">%;</span>float<span style="color: #339933;">:</span>right<span style="color: #339933;">;</span>border<span style="color: #339933;">:</span>1px solid green<span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
<span style="color: #339933;">.</span>box02<span style="color: #009900;">&#123;</span>width<span style="color: #339933;">:</span><span style="color:#800080;">32.1</span><span style="color: #339933;">%;</span>float<span style="color: #339933;">:</span>right<span style="color: #339933;">;</span>margin<span style="color: #339933;">-</span>right<span style="color: #339933;">:</span><span style="color:#800080;">1.4</span><span style="color: #339933;">%;</span> border<span style="color: #339933;">:</span>1px solid blue<span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
<span style="color: #339933;">.</span>box01<span style="color: #009900;">&#123;</span>width<span style="color: #339933;">:</span><span style="color:#800080;">32.1</span><span style="color: #339933;">%;</span>float<span style="color: #339933;">:</span>left<span style="color: #339933;">;</span>border<span style="color: #339933;">:</span>1px solid red<span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span></pre></div></div>

<p><strong>Achtung:</strong>niemals die Spalten ganz eng aneinander kleben, das bricht relativ rasch das Design und padding &#8211; also der Innenabstand ist verboten. Das ist einfach die Kurzfassung des Box-Models. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h3>Jede Spalte für sich widgetfähig machen</h3>
<p>Dazu brauchst Du zuerst die functions.php. Als Beispiel wieder die des default Themes.</p>
<p>In dieser kannst Du alles löschen. Danach fügst Du ganz oben</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> ein und ganz unten  <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><strong>Achtung: </strong>keine Leerzeichen vor der 1. Spitzenklammer und nach der letzten! Das ergibt Fehler.</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>Das da macht ein WP Theme prinzipiell widgetfähig. Damit kann man angeben wie man das html rund um die Widgetausgabe haben mag. </p>
<p>Wir brauchen da jetzt 3 davon, das sieht dann so aus:</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;">'Footerbox03'</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>
&nbsp;
&nbsp;
<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;">'Footerbox02'</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>
&nbsp;
&nbsp;
<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;">'Footerbox01'</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>Diese Datei speichern und in den Theme Ordner geben.</p>
<p>Nun die <strong>footer.php </strong>öffnen:</p>
<p>Dort sollte das ganze dann so aussehen:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;/div&gt;&lt;/div&gt;&lt;!--postinnen end postaussen end--&gt;
 &lt;div class=&quot;footeraussen&quot;&gt;
 &lt;div class=&quot;footerinnen clearfix&quot;&gt;
&nbsp;
&lt;div class=&quot;box03&quot;&gt;
<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><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: #0000ff;">'Footerbox03'</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;
<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;/div&gt;
&lt;div class=&quot;box02&quot;&gt;
<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><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: #0000ff;">'Footerbox02'</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;
<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;/div&gt;
&lt;div class=&quot;box01&quot;&gt;
<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><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: #0000ff;">'Footerbox01'</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;
<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;/div&gt;
&nbsp;
&lt;/div&gt;&lt;/div&gt;&lt;!--footerinnen end footeraussen end--&gt;
&lt;/body&gt;&lt;/html&gt;</pre></div></div>

<p>Wieso dem so ist habe ich in dem Artikel zur Theme Vorlage erklärt: WP Theme blank.</p>
<h3>Geht das auch ohne Widgets?</h3>
<p>Im Admincenter==>Theme/Design==>Widgets kannst Du jetzt pro Spalte andere Widgets einfügen udn nutzen.  Du kannst auch eine Spalte ohne Widgets nutzen dann mußt Du hier dazwischen das einfügen was Du anzeigen magst:</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: #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: #0000ff;">'Footerbox01'</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>
&lt;p&gt;Das was du haben magst ohne Widget&lt;/p&gt;
<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>

<h3>Download der Musterdateien</h3>
<p>==> Diese Musterdateien sind akut nicht aktuell, wie ich es zeitlich schaffe kommen sie wieder!</p>
<h3>Rückmeldung</h3>
<p>Ich freu mich über jede Art der Rückmeldung. War es hilfreich, über einen Social Bookmark oder einen Link, viel Freud .</p>
<div class="sign"><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/ein-wordpress-theme-entsteht-teil-2-652/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/ein-wordpress-theme-entsteht-teil-2-652/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Ein WordPress Theme entsteht</title>
		<link>http://www.texto.de/ein-wordpress-theme-entsteht-650/</link>
		<comments>http://www.texto.de/ein-wordpress-theme-entsteht-650/#comments</comments>
		<pubDate>Sat, 25 Oct 2008 16:14:43 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[WordPress Theme]]></category>
		<category><![CDATA[WordPress Themes]]></category>

		<guid isPermaLink="false">http://www.texto.de/?p=650</guid>
		<description><![CDATA[Wie baut man sich sein individuelles WordPress Theme. Du hast die Idee geringe XHTML und CSS Kenntnisse und dann. Hier  ein Beispiel: Ein WordPress Theme von der Idee zur Umsetzung. ]]></description>
			<content:encoded><![CDATA[<dl class="center" style="width:410px;">
<dt> WordPress Theme Idee&nbsp;</dt>
<dd><img src="http://www.texto.de/wp-images/1008/theme-gestaltung.gif" alt=" WordPress Theme Erstellung" width="402" height="413" /></dd>
</dl>
<p><span class="caplize">D</span>ieses Layout möchte <a href="http://forum.wordpress-deutschland.org/design/40802-2-geteiltes-theme.html#post199601" title="zweigeteiltes Theme">yippiehey</a> so gern haben. Geringe <abbr title="Hyper Text Markup Language"><span class="abbr" title="Hyper Text Markup Language">HTML</span></abbr> und <abbr title="Cascading Style Sheet"><span class="abbr" title="Cascading Style Sheet">CSS</span></abbr> Kenntnisse sind da. Aber es hapert an der Umsetzung dennoch.  So dachte ich , dass dies ein guter Aufhänger wäre für eine Anleitung wie man sich an die Umsetzung eines WordPress Themes machen kann.</p>
<h3>Wie findet man ähnliche Themes zur Hilfe</h3>
<p>Dieses Layout hat einen eindeutig erkennbaren Header, dann zwei getrennte Bereiche, es ist zentriert, also in der Mitte des Bildschirmes zu finden. </p>
<p>Es ist also vordergründig nichts anders als ein zweispaltiges Layout mit Header. Klar haben 99% aller zweispalten Layouts eine Spalte breiter als die andere. D.h. man muß von einer Vorlage <span id="more-650"></span>die Breitenangaben ändern. </p>
<h3>zweispaltiges Layout mit Header</h3>
<p>In einem Artikel auf meiner WebDesign-in.de stelle ich so ein Layout zur Verfügung. Außerdem ist die style.css auch gleich dabei.  Diese Mustervorlage nehme ich für dieses Beispiel um das<a href="http://www.webdesign-in.de/mts/simplyfy-your-css-oder-ueberblick-in-der-stylecss/" title="CSS und XHTML"> XHTML Grundgerüst</a> zu bauen. </p>
<h3>Meine Arbeitsschritte:</h3>
<ol>
<li>Muster heruntergeladen und entpackt.
</li>
<li>Mit einem Texteditor geöffnet.
</li>
<li>Hintergundbild erstellt: 2000px X 2px weiß-schwarz.
</li>
<li>.content und .sidebar gleich breit gemacht.
</li>
<li>.content nach rechts fließen lassen, damit es schöne Abschlüsse gibt.
</li>
<li>.post01 und .post02 als neue class eingeführt, in denen dann die einzelnen Artikel drin sind.
</li>
<li>.cat in der .navigationaussen erstellt, dies beinhaltet dann die Kategorien und die Tags. Dies ist dann in der header.php
</li>
<li>span.fresh erstellt damit man die Headerüberschrift zweifarbig haben kann.</li>
</ol>
<dl class="left" style="width:455px;">
<dt> WordPress Theme Idee Demo</dt>
<dd><a href="http://www.texto.de/mts-theme-erstellung/" title="Muster Design"><img src="http://www.texto.de/wp-images/1008/theme-gestaltung-01.gif" alt=" WordPress Theme Erstellung" width="450" height="261" /></a></dd>
</dl>
<p> Hier kannst Du Dir das Muster herunterladen. Es beinhaltet die style.css, die index.html und das Hintergrundbild und die  index.php,header.php, footer.php und die functions.php (Bitte auch den 2.Artikel lesen <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ) .<a href="http://www.texto.de/count/downloadcounter.php?stwc_cz=1&#038;stwc_id=15" title="Muster Dateien download">Theme-Erstellung-Muster</a>. <br class="clear" /></p>
<h3>Wie teilt man nun die Kategorien auf</h3>
<p>Ich empfehle dazu den Loop den ich in diesem Artikel vorschlug Weiterblättern und Loop.</p>
<p>Du brauchst dazu die <strong>IDs der Kategorien</strong>, die Du auf der jeweiligen Seite anzeigen magst.</p>
<p>Beispiel: die IDs 4,6,9 auf der rechten Seite und die IDs 2,9,23 auf der linken Seite.</p>
<p>Magst Du mehr als 3 Artikel insgesamt anzeigen, dann ändere bei <strong>showpost</strong> die Zahl. Sollte auf jeder Seite gleich sein. </p>
<h3>Die index.php sollte dann so aussehen:</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> get_header<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;div class=&quot;content&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$temp</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wp_query</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$wp_query</span><span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$wp_query</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$wp_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cat=4,6,9&amp;showposts=3'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;paged='</span><span style="color: #339933;">.</span><span style="color: #000088;">$paged</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: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$wp_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><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: #000088;">$wp_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">the_post</span><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;div class=&quot;post01&quot;&gt;
&lt;h3&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;/h3&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&amp;raquo;&amp;raquo; &quot;</span> <span style="color: #339933;">.</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</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;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_link_pages<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'before'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;p class=&quot;navigate&quot;&gt;'</span> <span style="color: #339933;">.</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Pages'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'after'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/p&gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'next_or_number'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'number'</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;
&lt;p class=&quot;postmeta&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> edit_post_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' | '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> Verfasst von:<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author<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> Eingeordnet in <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_category<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;/p&gt;
&lt;/div&gt;&lt;!--post01 end--&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;div class=&quot;navigation&quot;&gt;
 &lt;div class=&quot;alignleft&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> next_posts_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&amp;laquo; &amp;auml;ltere Artikel'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
  &lt;div class=&quot;alignright&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> previous_posts_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'neuere Artikel &amp;raquo;'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
 &lt;/div&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$wp_query</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">;</span> <span style="color: #000088;">$wp_query</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$temp</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;&lt;!--content end--&gt;
&nbsp;
&lt;div class=&quot;sidebar&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$temp</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wp_query</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$wp_query</span><span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$wp_query</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$wp_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cat=2,9,23&amp;showposts=3'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;paged='</span><span style="color: #339933;">.</span><span style="color: #000088;">$paged</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: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$wp_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><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: #000088;">$wp_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">the_post</span><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;div class=&quot;post02&quot;&gt;
&lt;h3&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;/h3&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&amp;raquo;&amp;raquo; &quot;</span> <span style="color: #339933;">.</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</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;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_link_pages<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'before'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;p class=&quot;navigate&quot;&gt;'</span> <span style="color: #339933;">.</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Pages'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'after'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/p&gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'next_or_number'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'number'</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;
&lt;p class=&quot;postmeta&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> edit_post_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' | '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> Verfasst von:<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author<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> Eingeordnet in <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_category<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;/p&gt;
&lt;/div&gt;&lt;!--post02 end--&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;div class=&quot;navigation&quot;&gt;
 &lt;div class=&quot;alignleft&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> next_posts_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&amp;laquo; &amp;auml;ltere Artikel'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
  &lt;div class=&quot;alignright&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> previous_posts_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'neuere Artikel &amp;raquo;'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
 &lt;/div&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$wp_query</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">;</span> <span style="color: #000088;">$wp_query</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$temp</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&nbsp;
&lt;/div&gt;&lt;!--sidebar end--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_footer<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>Header und Footer fehlen noch</h3>
<p>Da auch Rom ein paar Tage brauchte, kommt dies im nächsten Artikel. Vorher brauch ich auch noch ein wenig Rückmeldung von yippiehey, ob er damit klar kommt.</p>
<div class="eyecatch">
<p><strong>Edit: </strong>Hier geht es zum 2.Teil : <a href="http://www.texto.de/ein-wordpress-theme-entsteht-teil-2-652/" title="2.Teil ein WP Theme entsteht"><strong>Ein WordPress Theme entsteht</strong> </a>2.Teil.</p>
</div>
<p>Und außerdem jede Menge Rückmeldung von Dir. Ob alles verständlich, nachmachbar ist.</p>
<div class="sign">War dies hilfreich freu ich mich über jede Art des Dankes <img src='http://www.texto.de/wp-includes/images/smilies/icon_smile.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/ein-wordpress-theme-entsteht-650/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/ein-wordpress-theme-entsteht-650/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>4 Fragen  für Theme Autoren</title>
		<link>http://www.texto.de/4-fragen-fuer-theme-autoren-636/</link>
		<comments>http://www.texto.de/4-fragen-fuer-theme-autoren-636/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 20:36:49 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[WordPress Theme]]></category>
		<category><![CDATA[WordPress Themes]]></category>

		<guid isPermaLink="false">http://www.texto.de/?p=636</guid>
		<description><![CDATA[Wer ein WP Theme erstellt sollte nicht nur CSS und XHTML können, sondern auch den zukünftigen Benutzer vor unliebsamen Überraschungen absichern. Hier einige Tipps und Tricks, die die Arbeit erleichtern. ]]></description>
			<content:encoded><![CDATA[<dl class="left" style="width:270px;">
<dt>Silence das neue WP Theme</dt>
<dd> <img src="http://www.texto.de/wp-images/1008/texto_de.gif" alt="WebDesign ein WP Magazin" width="258" height="292" /> </dd>
</dl>
<p><span class="caplize">W</span>P Themes zu erstellen ist ja nicht nur eine Notwendigkeit. Oft stellt es sich als Sucht heraus. Hat man einmal den Dreh heraußen welches Template was anzeigt, sind der Gestaltungswut ja keine Grenzen mehr gesetzt. <img src='http://www.texto.de/wp-includes/images/smilies/zwinker.gif' alt=':zwinker:' class='wp-smiley' />    <br class="clear" /></p>
<p>Doch damit so ein WP Theme auch gut nutzbar ist, sollte man sich beim Erstellen einige Fragen stellen.</p>
<h3>1. Frage: Sind alle Templates auch da</h3>
<p>Du hast ein Template erstellt, dass Du irgendwo einbinden magst. Auf der ganz sicheren Seite bist Du, wenn Du nachfragst, ob das Template auch im Theme Ordner liegt. </p>
<p>Hier als Beispiel das Template mit dem Namen <span id="more-636"></span>sidebar-about.php</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;">file_exists</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;/sidebar-about.php&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/sidebar-about.php'</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><strong>Dies bedeutet:</strong> PHP wenn  die Datei (file) existiert und zwar im Themeordner (Templatepath) dann includier diese Datei , sonst nicht. </p>
<h3>2. Frage: Sind alle Funktionen da</h3>
<p>Du bindest gleich mehrere Funktionen unterschiedlichster WP Plugins ein. Dies alles erleichtert das Benutzen des WP Themes ungemein.  Doch hat der Benutzer die Plugins nicht aktiviert hagelt es oftmals viele Fehler, weil nicht nachgefragt wurde, ob es die Funktion überhaupt gibt. </p>
<p>Sehr viele Plugin Autoren stellen diesen Code gleich mit der Abfrage zur Verfügung. Ist dem nicht so, dann geht dies so.</p>
<p>Sagen wir Du findest beim Pluginautor nur folgende Angabe:</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> last_posts<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>Du möchtest aber gerne eine Überschrift dazu geben und diese letzten Artikel (last posts) werden zwischen li und /li ausgegeben. </p>
<p>Oft steht dann im Template einfach</p>

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

<p>Dies erzeugt Fehler, wenn der Nutzer das Plugin nicht aktiviert hat. </p>
<p><strong>Folgende Einbindung in das Template fragt zuerst</strong>, ob die Funktion vorhanden ist, dann sollte PHP die Überschrift wiedergeben, die nötigen ul , die Funktion und das abschließene de /ul.</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;">'last_posts'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">echo</span><span style="color: #0000ff;">'&lt;h3&gt;zuletzt gelesene Artikel&lt;/h3&gt;&lt;ul&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> last_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/ul&gt;'</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Einfach ausprobieren, es ist nicht schwer. </p>
<h3>Frage 3: Stimmt das HTML</h3>
<p>Egal, ob Du Profi oder Anfänger bist, valider Code ist sinnvoll. Viele Darstellungsfehler sind auf invalides HTML zurückzuführen und bei CC Problemen kann man auch erst helfen, wenn das HTML stimmt. </p>
<p>Mit diesem <a href="http://validator.w3.org/" title="Validator für das html">Validator </a>kann man das HTML überprüfen. Findet der Fehler kann man bei &#8220;Show Source&#8221; anhaken und dann auf &#8220;revalidate&#8221; klicken, so sieht man dann die Zeilen im Quellcode gut und kann den Fehler bereinigen.</p>
<p>Oft sind es Folgefehler, daher nicht gleich kapitulieren, wenn viele Fehler auftauchen. </p>
<h3>Frage 4: Stimmt das CSS</h3>
<p>Auch im Cascading Style Sheet in der style.css können sich Tippfehler einschleichen. Diese findet man bei diesem <a href="http://jigsaw.w3.org/css-validator/" title="CSS Validator">CSS Validator</a>. </p>
<p>Die URL zur style.css findet man am leichtesten im Quellcode. Beim Browser oben auf Ansicht ==>Quelltext anzeigen.  Oder man nutzt eine der vielen Browsererweiterungen, die es zB für den Firefox gibt. </p>
<h3>Neues auch hier auf Texto.de</h3>
<p>z.B.: Die Möglichkeit der Umfragen.  </p>
<p>Hast Du Lust, dann antworte:</p>
<p>[poll id="2"]</p>
<p><strong>Edit :</strong>14 Stunden nach der Veröffentlichung fand ich <a href="http://wpengineer.com/secure-include-plugin-in-wordpress/" title="Secure your themes">dies</a> -also bin ich nicht die einzige mit der Idee gewesen-schön sowas. Auch da sind einige Beispiele zu finden, wie man sichere Themes erstellt.</p>
<div class="sign">viel Freud beim WP Theme Erstellen&#8230; </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/4-fragen-fuer-theme-autoren-636/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/4-fragen-fuer-theme-autoren-636/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WP CMS:Bild zum Artikel- Custom Field Images WP Plugin</title>
		<link>http://www.texto.de/wp-cmsbild-zum-artikel-custom-field-images-wp-plugin-598/</link>
		<comments>http://www.texto.de/wp-cmsbild-zum-artikel-custom-field-images-wp-plugin-598/#comments</comments>
		<pubDate>Sun, 18 May 2008 07:41:38 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[WP-CMS]]></category>
		<category><![CDATA[custom-fields]]></category>
		<category><![CDATA[WordPress Themes]]></category>
		<category><![CDATA[wordpress-plugins]]></category>

		<guid isPermaLink="false">http://www.texto.de/texto/wp-cmsbild-zum-artikel-custom-field-images-wp-plugin/</guid>
		<description><![CDATA[Oft mag man ein Bild zum Artikel veröffentlichen. Das WordPress Plugin Custom Field Images erleichtert dies. Ganz wenige Eingriffe in das Template sind nötig, die ich hier erkläre. ]]></description>
			<content:encoded><![CDATA[<p><span class="caplize">O</span>b Du Themeersteller bist oder ob Du einfach ein Bild zu einem Artikel einfach veröffentlichen magst das WordPress Plugin Custom Field Images erleichtert dies.  </p>
<p> Ich fand dieses Plugin bei Scribu.</p>
<ul>
<li> WP Plugin Custom Field Images herunterladen.</li>
<li> Entpacken. </li>
<li>In den Ordner wp-plugins laden und im Admincenter==>Plugins==>aktivieren. </li>
</ul>
<p><span id="more-598"></span></p>
<dl class="left" style="width:405px;">
<dt> Custom Field Images Schreibpanel</dt>
<dd><img src="http://www.texto.de/wp-images/0508/custom-field-images-wp-plugin.gif" alt=" Custom Field Images WP Plugin Schreipanel" width="400" height="350" /></dd>
</dl>
<p>Unter Admincenter==>Einstellungen==>Custom Field Images  kann man sich aussuchen wo dieses Bild erscheinen soll. </p>
<p>Display in:==> Wo soll das Bild erscheinen:</p>
<p>post content ==> Im Artikel<br />
post feed ==> Im RSS Feed des Artikels<br />
post excerpt ==> im optionalen Auszug des Artikels.<br class="clear"/></p>
<h3>Custom Field Image im optionalen Auszug anzeigen</h3>
<p>WordPress gibt den optionalen Auszug mit folgendem Template tag wieder:</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> the_excerpt<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>Mag man jetzt dieses Bild vor dem Titel des Artikels oder darunter oder darüber anzeigen, dann muss man die index.php und die single.php zumindest öffnen und dort nach folgendem suchen:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;h2&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;/h2&gt;</pre></div></div>

<p>Statt h2 kann auch ein anderer HTML Tag stehen, magst Du das Bild vorher anzeigen, dann musst Du jetzt vor dem folgendes eintragen:</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> the_excerpt<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;h2&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;/h2&gt;</pre></div></div>

<p>Damit Du dies mittels CSS in der style.css gestalten kannst ist es hilfreich ein div mit einer bestimmten class um den optionalen Auszug zu geben.</p>
<p><strong>Hier ein Beispiel:</strong></p>

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

<p>Jetzt kannst Du in der style.css mit</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">.</span>customimg<span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span></pre></div></div>

<p>Dein Bild zum Artikel gestalten.</p>
<p>Bei Fragen zum WP Plugin Custom Field Images bitte anden Autor <a href="http://scribu.net/" title="Scribu AUtor des Plugins">Scribu</a> wenden. </p>
<div class="sign">Viel Spaß <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> <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/wp-cmsbild-zum-artikel-custom-field-images-wp-plugin-598/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/wp-cmsbild-zum-artikel-custom-field-images-wp-plugin-598/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Theme &#8211; wie teilt man die Anzeige der Kategorien auf-wp-list-categories</title>
		<link>http://www.texto.de/wordpress-theme-wie-teilt-man-die-anzeige-der-kategorien-auf-wp-list-categories-539/</link>
		<comments>http://www.texto.de/wordpress-theme-wie-teilt-man-die-anzeige-der-kategorien-auf-wp-list-categories-539/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 15:47:59 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[template-tag]]></category>
		<category><![CDATA[WordPress Themes]]></category>

		<guid isPermaLink="false">http://www.texto.de/texto/wordpress-theme-wie-teilt-man-die-anzeige-der-kategorien-auf-wp-list-categories/</guid>
		<description><![CDATA[Du hast bei Deinem WordPress Theme mehr als eine Sidebar und Du möchtest die Anzeige der Kategorien aufteilen.   Oder Du hast nur eine Sidebar bei Deinem WP Theme und möchtest die Kategorien unter individuellen überschriften anzeigen lassen. Dies funktioniert nicht, wenn man Widgets nutzt! ]]></description>
			<content:encoded><![CDATA[<p><span class="caplize">V</span>iele WordPress Themes haben mehr als eine Sidebar, dies möchten manche nutzen, um die Kategorien an unterschiedlichen Stellen anzuzeigen. Oder aber  ganz eigene überschriften für die Navigation zu den Kategorien anzeigen, damit sich User besser auskennen. </p>
<p><strong>edit am 13.1.2008</strong> neues Beispiel und ein Quick &#038; dirty Plugin eingefügt <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class="eyecatch">
<p>Achtung: Wer in seine Sidebar Widgets gezogen hat, kann dies so nicht nutzen!</p>
</div>
<h3>Template Tag wp  list categories</h3>
<p>Die Kategorien werden mit dem template tag wp list categories angezeigt. Was kann dieser Template Tag, was kann er nicht, wo muss man aufpassen und <span id="more-539"></span>wie kann man ihn für sich sinnvoll nutzen.</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> wp_list_categories<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'arguments'</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>Man hat bei diesem Template Tag folgende Möglichkeiten. Neben den // steht die Erklärung dabei.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<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;">'show_option_all'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span>   <span style="color: #666666; font-style: italic;">// zeigt nicht alle Kategorien an</span>
&nbsp;
<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: #666666; font-style: italic;">// zeigt die Kategorien geordnet nach Namen </span>
&nbsp;
<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: #666666; font-style: italic;">// ..in aufsteigender Reihenfolge an</span>
&nbsp;
<span style="color: #0000ff;">'show_last_update'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">//zeigt nicht das Datum der letzten Akutalisierung</span>
&nbsp;
<span style="color: #0000ff;">'style'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'list'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">//  Ausgabe erfolgt als ungeordnete Liste</span>
&nbsp;
<span style="color: #0000ff;">'show_count'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">//zeigt nicht wieviele Beiträge in einer Kategorie sind</span>
&nbsp;
<span style="color: #0000ff;">'hide_empty'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">//zeigt leere Kategorien nicht an </span>
&nbsp;
<span style="color: #0000ff;">'use_desc_for_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>  <span style="color: #666666; font-style: italic;">//zeigt die optionale Kategorienbeschreibung  als title Attribut an.</span>
&nbsp;
<span style="color: #0000ff;">'child_of'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">//  Ausgabe ist nicht an eine beschränkt auf das Vorhandensein einer bestimmten Unterkategorie</span>
&nbsp;
<span style="color: #0000ff;">'feed'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span>  <span style="color: #666666; font-style: italic;">//zeigt keine Kategoriefeeds Links an</span>
&nbsp;
<span style="color: #0000ff;">'feed_image'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">//zeigt keine Bild zum Feed Link an</span>
&nbsp;
<span style="color: #0000ff;">'exclude'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span>  <span style="color: #666666; font-style: italic;">//keine Kategorie ist ausgeschlossen</span>
&nbsp;
<span style="color: #0000ff;">'include'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">//keine Kategorie ist speziell includiert -- schwierig zu erklären irgendwie ;)</span>
&nbsp;
<span style="color: #0000ff;">'hierarchical'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// Unterkategorien werden genau unterhalb der Oberkategorie angezeigt</span>
&nbsp;
<span style="color: #0000ff;">'title_li'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Categories'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">//überschrift ist Kategorie</span>
&nbsp;
<span style="color: #0000ff;">'echo'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span> <span style="color: #666666; font-style: italic;">// erzeugt die Ausgabe</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h3>Besonderheiten des Template Tags wp list categories</h3>
<p>Nutzt Du bei wp  list categories include werden eventuell vorhandene Unterkategorien nicht automatisch angezeigt.</p>
<p>Nutzt Du bei wp list categories exclude werden eventuell vorhandene Unterkategorien ebenfalls ausgeschlossen.</p>
<p>Nutzt Du bei wp list categories hide empty = 1 werden Unterkategorien nur dann angezeigt, wenn die Oberkategorie nicht leer ist.</p>
<h3>Beispiele mit wp list categories</h3>
<h3>Alle Kategorien- ausser die Leeren, Anzahl der Beiträge,  eigene überschrift,</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
&lt;ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
wp_list_categories<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'show_count=1&amp;title_li=&lt;h2&gt;'</span> <span style="color: #339933;">.</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WordPress Theme'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/h2&gt;'</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>Alle Kategorien, auch die leeren, geordnet nach ID der Kategorien, keine automatische überschrift.</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
&nbsp;
&lt;ul&gt;&lt;li&gt;&lt;h2&gt;individuelle überschrift&lt;/h2&gt;
  &lt;ul&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span>
wp_list_categories<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'hide_empty=0&amp;orderby=id&amp;title_li='</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
   &lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;</pre></div></div>

<h3>Kategorien mit der ID 3,5,7,9 ausgeschlossen,  geordnet nach Name absteigend, Anzahl der Beiträge, eigene überschrift.</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
&nbsp;
&lt;ul&gt;&lt;li&gt;&lt;h2&gt;individuelle überschrift&lt;/h2&gt;
  &lt;ul&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span>
wp_list_categories<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'exclude=3,5,7,9&amp;orderby=name&amp;order=DESC&amp;show_count=1&amp;title_li='</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
   &lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;</pre></div></div>

<p>Die IDs müssen immer von der kleinsten zur grö&#223;ten geordnet sein, sonst funktioniert dies nicht. Getrennt werden die IDs mit Koma, die letzte bekommt keines mehr . <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Wie erwähnt auch die Unterkategorien werden damit ausgeschlossen. </p>
<h3>Nur die Kategorien mit der ID 5,7,8 anzeigen. Die optionale Kategorienbeschreibung NICHT als title Attribut nutzen. </h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
&lt;ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
wp_list_categories<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'include=5,7,8&amp;use_desc_for_title=0'</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>Die Kategorien ohne überschrift und ohne Listenelemente anzeigen</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_categories<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title_li=&amp;style=none'</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>Da dann WordPress die Links mit einem &lt;br / &gt; anzeigt, kann man in die functions.php des verwendeten Themes folgendes Quick und Dirty Plugin tippen:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_list_categories'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'mts_br'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> mts_br <span style="color: #009900;">&#40;</span><span style="color: #000088;">$output</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$output</span><span style="color: #339933;">=</span><span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">':&lt;a href(.*)&gt;(.*)&lt;/a&gt;&lt;br /&gt;:'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt;a href$1&gt; $2 &lt;/a&gt;'</span><span style="color: #339933;">,</span><span style="color: #000088;">$output</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">return</span> <span style="color: #000088;">$output</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<h3>Artikelhistorie</h3>
<p>Erstveröffentlichung:4. Jänner 2008 @ 21:19<br />
Geändert am 13. Jänner 2008 gegen 16.46 </p>
<div class="sign">War dies für Dich hilfreich erzähl es ruhig weiter. Ich freue mich über Social Bookmark Links und auch über Kommentare.</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/wordpress-theme-wie-teilt-man-die-anzeige-der-kategorien-auf-wp-list-categories-539/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/wordpress-theme-wie-teilt-man-die-anzeige-der-kategorien-auf-wp-list-categories-539/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
		<item>
		<title>How To &#8211; Design Your Own WordPress Theme</title>
		<link>http://www.texto.de/how-to-design-your-own-wordpress-theme-265/</link>
		<comments>http://www.texto.de/how-to-design-your-own-wordpress-theme-265/#comments</comments>
		<pubDate>Thu, 12 Oct 2006 22:40:05 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[WordPress Theme]]></category>
		<category><![CDATA[WordPress Themes]]></category>

		<guid isPermaLink="false">http://www.texto.de/texto/how-to-design-your-own-wordpress-theme/</guid>
		<description><![CDATA[You know a bit about html and css, but to use this in combination with php is a bit of a blur with you. Here is a step by step tutorial. How to- design your own wordpress theme.]]></description>
			<content:encoded><![CDATA[<h3>edit am 15.02.07 Diesen Artikel in Deutsch: Schritt für Schritt zum eigenen WordPress Theme. </h3>
<p><span class="firstletter">J</span>oram schrieb mir eine Email. Er kann ein wenig CSS und ein bisschen HTML. Aber wenn er dann PHP irgendwo sieht traut er sich kaum dieses Wissen zu nutzen. Er würde aber gerne sein eigenes WordPress Theme gestalten und holte sich daher mein  WordPress Theme blank.</p>
<p>Joram kommt aus Holland und kann englisch und daher ist dieses Tutorial soweit als nötig in Englisch aber mit ganz vielen Code Beispielen. </p>
<p>The story behind this tutorial: I&#8217;ve got an email from Joram:</p>
<blockquote><p>I know a bit about html and css, but to use this in combination with php is a bit of a blur with me. Could you please tell me how to implement the css I&#8217;m about to write? Because writing the css is one thing, but putting the class/id tags in the html is another. I&#8217;m not sure how to write the css if I don&#8217;t know where to enter their div-tags <img src='http://www.texto.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
</blockquote>
<h3>How To &#8211; Design Your Own WordPress Theme &#8211;  Let&#8217;s start</h3>
<p><strong>Preambel:</strong> This post is full with code examples and so it is very long.<br />
And I know: &#8220;All roads leed to Rome&#8221;. Here is only one of them. </p>
<p>And you know:==>I would like to read your comment or the sky will fall on your <span id="more-265"></span>head&#8230;. .</p>
<ul>
<li>You need WordPress. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </li>
<li>My <a href="http://www.texto.de/texto/wordpress-theme-vorlage/2/" title="WordPresse Theme blank">blank WordPress Theme</a>.</li>
<li>Time and coffee (or tea if you are ill <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ).</li>
<li>A bit knowledge about css and html.</li>
<li>An editor. Wordpad is good enough.</li>
<li>Information about &#8216;editing files&#8217; and &#8216;change chmod permission&#8217;, you&#8217;ll find the links in this <a href="#comment-2862" title="Links to the codex">comment</a>.<a href="#test">Thanks to Lorelle</a></li>
</ul>
<p>I need  the structure of a design: <a href="http://blog.html.it/layoutgala/" title="Layout Gala">Layout Gala</a>==><a href="http://blog.html.it/layoutgala/LayoutGala30.html" title="Layout Gala Design 30">Layout Gala Design n.30</a>.</p>
<p>Two percentage columns and one larger, with header and footer. </p>
<p><strong>Remember &#8220;Murpheys Law&#8221; and save your theme files.</strong></p>
<h3><a href="http://blog.html.it/layoutgala/LayoutGala30.html" title="Layout Gala Design 30">Layout Gala Design n.30</a>.==>Sourcecode ==> CSS</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>style type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/css&quot;</span><span style="color: #339933;">&gt;</span>
html<span style="color: #339933;">,</span>body<span style="color: #009900;">&#123;</span>margin<span style="color: #339933;">:</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>padding<span style="color: #339933;">:</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#125;</span>
body<span style="color: #009900;">&#123;</span>font<span style="color: #339933;">:</span> <span style="color: #cc66cc;">76</span><span style="color: #339933;">%</span> arial<span style="color: #339933;">,</span>sans<span style="color: #339933;">-</span>serif<span style="color: #009900;">&#125;</span>
p<span style="color: #009900;">&#123;</span>margin<span style="color: #339933;">:</span><span style="color: #cc66cc;">0</span> 10px 10px<span style="color: #009900;">&#125;</span>
a<span style="color: #009900;">&#123;</span>display<span style="color: #339933;">:</span>block<span style="color: #339933;">;</span>color<span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">#006;padding:10px}
</span>div<span style="color: #666666; font-style: italic;">#header{position:relative}
</span>div<span style="color: #666666; font-style: italic;">#header h1{height:80px;line-height:80px;margin:0;
</span>padding<span style="color: #339933;">-</span>left<span style="color: #339933;">:</span>10px<span style="color: #339933;">;</span>background<span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">#EEE;color: #79B30B}
</span>div<span style="color: #666666; font-style: italic;">#header a{position:absolute;right:0;top:23px}
</span>div<span style="color: #666666; font-style: italic;">#content p{line-height:1.4}
</span>div<span style="color: #666666; font-style: italic;">#navigation{background:#B9CAFF}
</span>div<span style="color: #666666; font-style: italic;">#extra{background:#FF8539}
</span>div<span style="color: #666666; font-style: italic;">#footer{background: #333;color: #FFF}
</span>div<span style="color: #666666; font-style: italic;">#footer p{margin:0;padding:5px 10px}
</span>div<span style="color: #666666; font-style: italic;">#footer a{display:inline;padding:0;color: #C6D5FD}
</span>
div<span style="color: #666666; font-style: italic;">#wrapper{float:left;width:70%}
</span>div<span style="color: #666666; font-style: italic;">#navigation{float:right;width:29.9%}
</span>div<span style="color: #666666; font-style: italic;">#extra{clear:both;width:100%}
</span><span style="color: #339933;">&lt;/</span>style<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Copy all between &#8220;style&#8221; and the end of this tag and paste it in the <strong>[Admincenter==>Presentation==>Theme Editor==>] style.css</strong> =>after this click:update files.</p>
<h3><a href="http://blog.html.it/layoutgala/LayoutGala30.html" title="Layout Gala Design 30">Layout Gala Design n.30</a>.==>Sourcecode ==> HTML</h3>
<p>We need the HTML to the CSS above. To get the overview I&#8217;m using &#8220;html comments&#8221;.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>body<span style="color: #339933;">&gt;</span>
       <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;container&quot;</span><span style="color: #339933;">&gt;</span>
          <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;header&quot;</span><span style="color: #339933;">&gt;&lt;</span>h1<span style="color: #339933;">&gt;</span>Header<span style="color: #339933;">&lt;/</span>h1<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.texto.de/&quot;</span><span style="color: #339933;">&gt;</span>download this layout<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
            <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span><span style="color: #990000;">end</span> of id header<span style="color: #339933;">--&gt;</span>
&nbsp;
      <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;wrapper&quot;</span><span style="color: #339933;">&gt;</span>
          <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;content&quot;</span><span style="color: #339933;">&gt;</span>
               <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;&lt;</span>strong<span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> Content here<span style="color: #339933;">.&lt;/</span>strong<span style="color: #339933;">&gt;</span> column long long column very long <span style="color: #339933;">...</span>l very<span style="color: #339933;">.</span>
                   <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
              <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>very make make fill silly long long <span style="color: #339933;">..</span>
                  <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
                 and so on<span style="color: #339933;">....</span>
             <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #990000;">end</span> of id content<span style="color: #339933;">--&gt;</span>
        <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span><span style="color: #990000;">end</span> of id wrapper<span style="color: #339933;">--&gt;</span>
&nbsp;
       <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;navigation&quot;</span><span style="color: #339933;">&gt;</span>
            <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;&lt;</span>strong<span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span> Navigation here<span style="color: #339933;">.&lt;/</span>strong<span style="color: #339933;">&gt;</span> l
            <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
       <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span><span style="color: #990000;">end</span> of id navigation<span style="color: #339933;">--&gt;</span>
&nbsp;
    <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;extra&quot;</span><span style="color: #339933;">&gt;</span>
          <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;&lt;</span>strong<span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span> More stuff here<span style="color: #339933;">.&lt;/</span>strong<span style="color: #339933;">&gt;</span> very text make long column 
               <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
         <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span><span style="color: #990000;">end</span> of id extra<span style="color: #339933;">--&gt;</span>
&nbsp;
     <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;footer&quot;</span><span style="color: #339933;">&gt;</span>
            <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>The footer<span style="color: #339933;">.</span> You can go to the <span style="color: #339933;">...</span>
              <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
       <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span><span style="color: #990000;">end</span> of id footer<span style="color: #339933;">--&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span><span style="color: #990000;">end</span> of id container<span style="color: #339933;">--&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>body<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Now you and I know that  &#8220;div id container&#8221;  is the box around.  This &#8220;id container&#8221; starts after body tag and ends before it. </p>
<h3>How To &#8211; Join CSS and  HTML  in PHP Files </h3>
<p>If you know a bit about html you know that &#8220;body tag&#8221; starts after the end of the html tag. 99,9999% this you will find in  header.php and  in footer.php. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Div id header and div id footer the same. </p>
<p><strong>[Administration Panels==>Presentation==>Theme Editor==>] header.php</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;body&gt;
&lt;div id=&quot;container&quot;&gt;
  &lt;div id=&quot;header&quot;&gt;
                     &lt;!--the blog title--&gt;
               &lt;h1&gt;
		&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_settings<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'home'</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> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;
&nbsp;
                  &lt;!--blog description--&gt;
                  <span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'description'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
               &lt;/h1&gt;
       &lt;/div&gt;&lt;!--end of id header--&gt;
&lt;!--header.php end--&gt;</pre></div></div>

<p><strong>[Administration Panels==>Presentation==>Theme Editor==>] footer.php</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;!--footer.php--&gt;
&lt;div id=&quot;footer&quot;&gt;
	&lt;p&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> is proudly powered by 
		&lt;a href=&quot;http://wordpress.org/&quot;&gt;WordPress&lt;/a&gt;
		&lt;br /&gt;&lt;a href=&quot;feed:<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'rss2_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;Entries (RSS)&lt;/a&gt;
		and &lt;a href=&quot;feed:<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comments_rss2_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;Comments (RSS)&lt;/a&gt;.
		&lt;!-- <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_num_queries<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> queries. <span style="color: #000000; font-weight: bold;">&lt;?php</span> timer_stop<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> seconds. --&gt;
	        &lt;!--necessary--&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_footer<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;/p&gt;
      &lt;/div&gt;&lt;!--end of id footer--&gt;
&lt;/div&gt;&lt;!--end of id container--&gt;&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<p>My wordpress theme blank is full of html comments to explain all the wordpress template tags and to explain header.php ends, start of single.php and so on.  You&#8217;ll see in the code above that the html tags are between this comments. And this is necessary!</p>
<p>View your site and you see the first result. Ok it doesn&#8217;t look very well, but you get the overview. </p>
<p><strong>The next  div id wrapper and div id content.</strong></p>
<p><strong>[Administration Panels==>Presentation==>Theme Editor==>] index.php</strong></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_header<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;!--index.php--&gt;
&lt;div id=&quot;wrapper&quot;&gt;
          &lt;div id=&quot;content&quot;&gt;
        &lt;!--the loop--&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<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>
and so on ........
&nbsp;
&nbsp;
                    Not Found
		Sorry, but you are looking for something that isn't here.
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;/searchform.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
        &lt;!--do not delete--&gt;
	<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;
               &lt;/div&gt;&lt;!-- end of id content--&gt;
        &lt;/div&gt;&lt;!--end of id wrapper--&gt;
&lt;!--index.php end--&gt;
&lt;!--include sidebar--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_sidebar<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;!--include footer--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_footer<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>View your site. Trial and error are good taskmaster. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>The next  &#8220;div id navigation&#8221;.</strong> The box at the right side. </p>
<p><strong>[Administration Panels==>Presentation==>Theme Editor==>] sidebar.php</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;!--sidebar.php--&gt;
&lt;div id=&quot;navigation&quot;&gt;
		&lt;!--searchfield--&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>
&lt;/div&gt;&lt;!--end of id navigation--&gt;		
&nbsp;
&lt;!--sidebar.php end--&gt;</pre></div></div>

<p><strong>Don&#8217;t view your site now.</strong>It looks very strange. Header, the footer is at the left, content is grey and you got a headache. </p>
<p>Why? Have a look at the CSS. Div id extra clear both (wrapper, content and navigation) and we have no div id extra, because there is no &#8220;extra.php&#8221; or another template in this theme to create an &#8220;extra stuff&#8221;. </p>
<h3>You have to create a new template and tell wordpress to use this.</h3>
<p>And that&#8217;s why I&#8217;m using <a href="http://blog.html.it/layoutgala/LayoutGala30.html" title="Layout Gala Design 30">Layout Gala Design n.30</a> as an example. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>1. Open your editor. Save the empty file as extra.php. Upload it in your theme folder.<br />
wp-content/themes/yourtheme/.<br />
2. <strong>[Administration Panels==>Presentation==>Theme Editor==>] extra.php</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;!--</span>extra<span style="color: #339933;">.</span>php<span style="color: #339933;">--&gt;</span>
 <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;extra&quot;</span><span style="color: #339933;">&gt;</span>
          <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;&lt;</span>strong<span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span> More stuff here<span style="color: #339933;">.&lt;/</span>strong<span style="color: #339933;">&gt;</span> very text make long column 
               <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
         <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span><span style="color: #990000;">end</span> of id extra<span style="color: #339933;">--&gt;</span>
<span style="color: #339933;">&lt;!--</span><span style="color: #990000;">end</span> of extra<span style="color: #339933;">.</span>php<span style="color: #339933;">--&gt;</span></pre></div></div>

<p>The html above tell us, we need this extra.php between sidebar.php and footer.php. </p>
<p><strong>[Administration Panels==>Presentation==>Theme Editor==>] index.php</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
&lt;/div&gt;&lt;!-- end of id content--&gt;
        &lt;/div&gt;&lt;!--end of id wrapper--&gt;
&lt;!--index.php end--&gt;
&lt;!--include sidebar--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_sidebar<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;!--include extra.php--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/extra.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;!--include footer--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_footer<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>With this</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;!--include extra.php--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/extra.php'</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>you can tell wordpress every new template you need. /extra.php or /whateveryouneed.php or /sample.php and so on. </p>
<p>View your site and I&#8217;m sure it looks much better. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h3>The template hierachie of wordpress</h3>
<p>WordPress theme blank have page.php, single.php, search.php two archives.php. You can delete all this files and you are ready with your new design. To understand, please read <a href="http://codex.wordpress.org/Template_Hierarchy" title="Externer Link:Template Hierarchie">Codex</a> and have a look at my new <a href="http://www.texto.de/update-cheat-cheet-wp-template-hierarchie-909/" title="New Sheet with all the new templates ">sheet about the template hierarchie</a>. I can&#8217;t explain it better. (Not in english <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> )</p>
<p>If you click on an article, static page or an archive/category you will see a very creative website. Because div id wrapper and div id content and the new template extra.php are missing. </p>
<p><strong>[Administration Panels==>Presentation==>Theme Editor==>]archive.php</strong></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_header<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;div id=&quot;wrapper&quot;&gt;
          &lt;div id=&quot;content&quot;&gt;
	&lt;!--the loop--&gt;
&nbsp;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<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>
&nbsp;
......
....
&lt;!--do not delete--&gt;
	<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;
	       &lt;/div&gt;&lt;!-- end of id content--&gt;
        &lt;/div&gt;&lt;!--end of id wrapper--&gt;
&lt;!--archive.php end--&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_sidebar<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;!--include extra.php--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/extra.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;!--include footer--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_footer<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><strong>[Administration Panels==>Presentation==>Theme Editor==>]single.php</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;!--single.php--&gt;
	&lt;div id=&quot;wrapper&quot;&gt;
            &lt;div id=&quot;content&quot;&gt;
&lt;!--loop--&gt;			
  <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<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: #339933;">......</span>
<span style="color: #339933;">......</span>
Sorry<span style="color: #339933;">,</span> no posts matched your criteria<span style="color: #339933;">.</span>
&nbsp;
<span style="color: #339933;">&lt;!--</span><span style="color: #b1b100;">do</span> not delete<span style="color: #339933;">--&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>
&nbsp;
	&lt;/div&gt;&lt;!-- end of id content--&gt;
        &lt;/div&gt;&lt;!--end of id wrapper--&gt;
&lt;!--single.php end--&gt;
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_sidebar<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;!--include extra.php--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/extra.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;!--include footer--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_footer<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>I&#8217;m shure you understand==> search.php, the second archives.php, page.php. </p>
<h3>Ok and the stuff in single.php and the other files?</h3>
<p>This is &#8220;one post&#8221;.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"> &lt;!--the loop--&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<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>
		&lt;!--the loop--&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<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;!--post title as a link--&gt;
				&lt;h2 id=&quot;post-<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_ID<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;&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;/h2&gt;
		     &lt;!--post time--&gt;	
                     <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'F jS, Y'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
                      &lt;!--post author--&gt;
                      <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
				&lt;!--post text with the read more link--&gt;
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Read the rest of this entry &amp;raquo;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				&lt;!--show categories, edit link ,comments--&gt;
&nbsp;
				Posted in <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">', '</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> | <span style="color: #000000; font-weight: bold;">&lt;?php</span> edit_post_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' | '</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> comments_popup_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No Comments &amp;#187;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1 Comment &amp;#187;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'% Comments &amp;#187;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&nbsp;
	        &lt;!--end of one post--&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Safe your files and figure it out. Remember:Trial and error are good taskmaster.  <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class="sign"> &#8230;  Have fun, and don&#8217;t be afraid to contact me if you have questions.<br />
<br /> and .. if you would like to relaxe after all this &#8220;css, html, php &#8221; &#8211; solve <a href="http://www.sudoku-topical.com/" title="Sudoku  online - wash your brain ">Sudoku</a> online <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </div>
<h3> und noch was &#8230;</h3>
<p>Vom 14.03.07  bis zum 25.August 2011 wurde dieser Artikel     161 879 mal gelesen, dann habe ich den sichtbaren PostReadCounter aus Performancegründen abgeschaltet. <img src='http://www.texto.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  </p>
<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/how-to-design-your-own-wordpress-theme-265/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/how-to-design-your-own-wordpress-theme-265/feed/</wfw:commentRss>
		<slash:comments>112</slash:comments>
		</item>
	</channel>
</rss>

