<?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; english</title>
	<atom:link href="http://www.texto.de/tag/english/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>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>A step by step tutorial for: How to manage widgets in WP 2.5</title>
		<link>http://www.texto.de/a-step-by-step-tutorial-for-how-to-manage-widgets-in-wp-25-573/</link>
		<comments>http://www.texto.de/a-step-by-step-tutorial-for-how-to-manage-widgets-in-wp-25-573/#comments</comments>
		<pubDate>Sat, 05 Apr 2008 17:53:40 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[english]]></category>

		<guid isPermaLink="false">http://www.texto.de/texto/a-step-by-step-tutorial-for-how-to-manage-widgets-in-wp-25/</guid>
		<description><![CDATA[How to manage widgets in WordPress 2.5. I hope it becomes easier to manage widgets in WP 2.5.1 or other versions. I hope. A tutorial with a lot of screenshots - how to edit widgets in WP 2.5 - how to create widgets.]]></description>
			<content:encoded><![CDATA[<p><span class="caplize">H</span>ow to manage widgets in WP 2.5. How to use widgets in WP 2.5. So many users can&#8217;t edit or delete or create widgets in WP 2.5. Here you will find a step by step tutorial with a lot of screenshots.  </p>
<p>[<a href="http://www.texto.de/texto/quick-tipps-widgets-in-wp-25-verwalten/" title="Widgets in WP 2.5 verwalten"><img src="/wp-images/smilies/texto-flag-de.gif" alt="deutsche Sprache" width="54" height="35" /> Widgets in WP 2.5 verwalten in Deutsch.</a>]</p>
<p><strong>Important information:</strong> You can&#8217;t manage your widgets with IE6  and there is no patch all over the world <img src='http://www.texto.de/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  </p>
<p>Alternate browsers are:  Firefox or Flock.</p>
<p>If you would like to have back the old way with drag and drop please read and vote: <a href="http://wordpress.org/extend/ideas/topic.php?id=1329" title="Ideas ">bring back single screen widgets drag-n-drop</a>.</p>
<p><strong>My example is for three widget ready column theme, but my examples work also in any other widget ready theme.</strong></p>
<p>To see the screenshots larger,please click at the thumbnail. Thanks!</p>
<h3>Widget XYZ for column 1 in WP 2.5</h3>
<p><br class="clear" />1. </p>
<dl class="left" style="width:210px;">
<dt><strong> Create a new widget</strong></dt>
<dd><a href="http://www.texto.de/wp-images/0408/texto-widgets-EN-00.gif" title="Create a new widget"><img src="http://www.texto.de/wp-images/0408/texto-widgets-EN-00-kl.gif" alt=" Widget WP 2.5 -manage" width="200" height="115" /></a></dd>
</dl>
<p> At right side you will find &#8220;C<strong>urrent Widgets</strong>&#8220;, choose from the drop down menu  and click &#8220;Show&#8221;.  In my example it is &#8220;column1&#8243; this is only a term in my theme. Maybe in your theme it is named &#8220;Sidebar Left&#8221; or something else. </p>
<p>At left side you will find a drop down with different ways to <strong> filter your available widgets</strong>. After this you have to <span id="more-573"></span>click&#8221; Show&#8221;.</p>
<p><br class="clear" />2.</p>
<dl class="left" style="width:210px;">
<dt><strong> Create a new widget</strong></dt>
<dd><a href="http://www.texto.de/wp-images/0408/texto-widgets-EN-01.gif" title="Create a new widget"><img src="http://www.texto.de/wp-images/0408/texto-widgets-EN-01-kl.gif" alt=" Widget WP 2.5 -manage" width="200" height="115" /></a></dd>
</dl>
<p> At left side click an Pages. After the *click* you will find the &#8220;Pages Widget&#8221; at right side to edit it. </p>
<p><br class="clear" />3.</p>
<dl class="left" style="width:210px;">
<dt><strong>Edit a widget</strong></dt>
<dd><a href="http://www.texto.de/wp-images/0408/texto-widgets-EN-02.gif" title="edit a  widget"><img src="http://www.texto.de/wp-images/0408/texto-widgets-EN-02-kl.gif" alt="edit a widget" width="200" height="115" /></a></dd>
</dl>
<p>   Choose a title and something else  or click &#8220;Remove&#8221; &#8211; you have to click &#8220;Save Changes&#8221;.</p>
<p><br class="clear" />4.</p>
<h3>Create a  widget for Column2 and filter the available widgets</h3>
<dl class="left" style="width:210px;">
<dt><strong>Create a  widget for Column2</strong></dt>
<dd><a href="http://www.texto.de/wp-images/0408/texto-widgets-EN-03.gif" title="Create a  widget for Column2"><img src="http://www.texto.de/wp-images/0408/texto-widgets-EN-03-kl.gif" alt="Create a  widget for Column2" width="200" height="115" /></a></dd>
</dl>
<p>   Now you would like to have <strong>widgets in column2.</strong>  </p>
<p>1st step: Choose column2 from the drop down. Click: &#8220;Show&#8221;. </p>
<p>2nd step: Choose &#8220;Unused widgets&#8221; from the drop down at left side. Click: &#8220;Show&#8221;.</p>
<p><br class="clear" />5.</p>
<dl class="left" style="width:210px;">
<dt><strong>Edit widget catgories</strong></dt>
<dd><a href="http://www.texto.de/wp-images/0408/texto-widgets-EN-05.gif" title="Edit widget catgories"><img src="http://www.texto.de/wp-images/0408/texto-widgets-EN-05-kl.gif" alt="Edit widget catgories" width="200" height="115" /></a></dd>
</dl>
<p> If you would like to <strong>edit your category widget</strong>, there you will find two buttons: &#8220;Change and Remove&#8221;. After your edits you have to click one of them.</p>
<p>I don&#8217;t know why some widgets have to buttons &#8220;Change and Remove&#8221;. I only know &#8220;edit&#8221; works only with click one of them <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><br class="clear" />6.</p>
<dl class="left" style="width:210px;">
<dt><strong>Edit widget categories</strong></dt>
<dd><a href="http://www.texto.de/wp-images/0408/texto-widgets-EN-08.gif" title="Edit widget categories"><img src="http://www.texto.de/wp-images/0408/texto-widgets-EN-08-kl.gif" alt="Edit widget categories" width="200" height="115" /></a></dd>
</dl>
<p> To see how it looks like in your frontend, you have to click: &#8220;<strong>Save Changes</strong>&#8220;.</p>
<p><br class="clear" />7.</p>
<h3>Text Widgets in WP 2.5</h3>
<dl class="left" style="width:210px;">
<dt><strong>Text widgets in WP 2.5</strong></dt>
<dd><a href="http://www.texto.de/wp-images/0408/texto-widgets-EN-06.gif" title="Text widgets in WP 2.5"><img src="http://www.texto.de/wp-images/0408/texto-widgets-EN-06-kl.gif" alt="Text widgets in WP 2.5" width="200" height="115" /></a></dd>
</dl>
<p>  Each (or every) click add a new text widget. After a click you will find this text widgets at right side.</p>
<p><br class="clear" />8.</p>
<dl class="left" style="width:210px;">
<dt><strong>Text widgets in WP 2.5</strong></dt>
<dd><a href="http://www.texto.de/wp-images/0408/texto-widgets-EN-07.gif" title="Text widgets in WP 2.5"><img src="http://www.texto.de/wp-images/0408/texto-widgets-EN-07-kl.gif" alt="Text widgets in WP 2.5" width="200" height="115" /></a></dd>
</dl>
<p><strong> Attention:</strong> I don&#8217;t know why but sometimes and under unknown circumstances it can be that all your text in this text widget will be delete. So  copy and paste every time you click *edit*. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  And click *change* often as you can &#8211;  <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  . </p>
<p><br class="clear" />9.</p>
<h3>Rearrange your Widgets in WP 2.5</h3>
<dl class="left" style="width:210px;">
<dt><strong>Rearrange your Widgets in WP 2.5</strong></dt>
<dd><a href="http://www.texto.de/wp-images/0408/texto-widgets-EN-09.gif" title=Rearrange  your Widgets in WP 2.5"><img src="http://www.texto.de/wp-images/0408/texto-widgets-EN-09-kl.gif" alt="Rearrange  your Widgets in WP 2.5" width="200" height="115" /></a></dd>
</dl>
<p> With drag &#038;drop you can rearrange your widgets. </p>
<p><br class="clear" /></p>
<p>Thats it. I know it is a very strange way to use widgets in your sidebar or columns. But I hope this step by step tutorial would help you.</p>
<h3>The sky will fall on your head</h3>
<p>if there is no comment. Leave some love and spread the words.</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/a-step-by-step-tutorial-for-how-to-manage-widgets-in-wp-25-573/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/a-step-by-step-tutorial-for-how-to-manage-widgets-in-wp-25-573/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Post Notification Formular in  der Sidebar &#8211; give my loop a try</title>
		<link>http://www.texto.de/post-notification-formular-in-der-sidebar-give-my-loop-a-try-525/</link>
		<comments>http://www.texto.de/post-notification-formular-in-der-sidebar-give-my-loop-a-try-525/#comments</comments>
		<pubDate>Mon, 10 Dec 2007 20:41:08 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[wordpress-plugins]]></category>

		<guid isPermaLink="false">http://www.texto.de/texto/post-notification-formular-in-der-sidebar-give-my-loop-a-try/</guid>
		<description><![CDATA[Viele möchten das WordPress Plugin Post Notification gerne in der Sidebar haben. Hier ist meine Lösung des Problems. You would like to have post notification formular in your sidebar. Read my solution. I'm using a custom loop.]]></description>
			<content:encoded><![CDATA[<p><span class="caplize">D</span>as WordPress Plugin Post Notification bietet die Möglichkeit per Email über neue Beiträge informiert zu werden. Man meldet sich mit double opt in Verfahren  an und kann sich dann sogar die Kategorien aussuchen, über die man informiert werden möchte. </p>
<div class="eyecatch">This article in english: ==> <a href="http://www.texto.de/texto/post-notification-formular-in-der-sidebar-give-my-loop-a-try/#englisch" title="Post Notification formular in sidebar.php ">Click!</a></div>
<p>Dies alles ist auf der Pluginhomepage noch besser erklärt. Ein Supportforum gibt es auch und Moritz Strübe ist sehr engagiert und bemüht. Recht herzlichen Dank dafür.</p>
<p><span class="firstletter">D</span>as WP Plugin Post Notification erzeugt -wenn man es ihm anschafft &#8211; ganz automatisch eine statische Seite für die Anmeldung. Jetzt möchten viele aber nicht nur den Link zu dieser Anmeldeseite, sondern wenn geht bereits das Anmeldeformular in der Sidebar anzeigen lassen. Somit ist die Verführung sich anzumelden sicher höher. </p>
<p>Einfach das Anmeldeformular in die Sidebar kopieren hat zur Folge, dass die eingegebenen Emailadressen nicht in der Datenbank<span id="more-525"></span> gespeichert werden. Auch wen vordergründig alles funktionierte. Dann hatte ich die Idee eines normalen Loops, der mir eben nur die statische Seite mit dem Postslug &#8216;post_notification_header&#8217; anzeigt.  Dies funktionierte tadellos. </p>
<p>Allerdings möchte ich in der Sidebar die aktiven Kategorien und statischen Seiten kennzeichnen. Dies zerstörte der ganz normale Loop, weil WordPress dann ja nicht mehr wusste, wo es jetzt ist.(Ist laienhaft erklärt, aber so versteh ich es auch. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ) </p>
<p>So kam mir nach einem Kaffee -das Wundergetränk &#8211; die Idee eines neuen Loops. Ich mag ja, dass WordPress &#8216;my query&#8217; realisiert. Und siehe da, das WordPress Plugin Post Notification funktioniert. Das Anzeigen der aktiven Kategorien oder aktiven statischen Seiten funktioniert und ich konnte sogar ausschlie&#223;en, dass diese Anzeige des Plugins in der Sidebar auf der statischen Seite mit dem Postslug &#8216;post_notification_header&#8217; NICHT dargestellt wird.</p>
<p>Dies ergäbe nämlich sonst alles &#8216;doppelt gemoppelt&#8217;.</p>
<h3>Meine Vorgangsweise um das Plugin Post Notification auch in der Sidebar anzuzeigen.</h3>
<p>Plugin installiert und dann alles gemacht wie beschrieben. </p>
<p>Admincenter==>Einstellungen==>Post Notification==>Einstellungen</p>
<p>Relativ weit unten steht dann &#8220;Post Notification-Seite hinzufügen:&#8221; Das hakte ich an.</p>
<p>Admincenter==>Verwaltung==>Seiten==> die ID dieser statischen Seite merken. Oder den Postslug verwenden wie ich. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>Beispiel</strong> die statische Seite, die das Plugin erzeugt hat,hat die ID 43. </p>
<p>Dann tippe ich folgendes in die Sidebar.  Und zwar bevor der Widgetcode anfängt oder nachdem er aufgehört hat!</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>is_page<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'43'</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;Info über neue Posts per Email&lt;/p&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>     
rewind_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;">global</span> <span style="color: #000088;">$more</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$more</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$my_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: #0000ff;">'page_id=43'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$my_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;">$my_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: #000088;">$do_not_duplicate</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<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>
 <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>
<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>Dies bedeutet:</p>
<p>Wenn dies nicht die statische Seite mit der ID 43 ist, dann fahre den Loop zurück (rewind&#8230;.).  Zeige mir den ganzen Content an, auch wenn es den  &#8220;more link&#8221; gäbe,  (more =0) . </p>
<p>Jetzt, liebes WordPress hole mir aus der Datenbank die statische Seite mit der ID 43, zeige nichts doppelt an. Liefere mir  den Inhalt (the content) .</p>
<p>Beende den Loop. Beende die if Abfrage. </p>
<div class="sign"> Das war es schon.  Dank <img src="/wp-images/smilies/icon_confused.gif" alt="Kaffeetrinkender Smilie" width="27" height="21" /> und Dank Moritz Strübe.<br />Der sich nicht nur über Kommentare, sondern sicher auch über monitäre Dankeschöns freut. </div>
<p><a name="englisch" title="article in english"></a></p>
<p><span class="caplize">W</span>ordPress Plugin Post Notification is a wonderful tool. It creates a static &#8220;subscribe page&#8221; if you follow the authors instructions. </p>
<p>But you would like to have this subscribe formular blogwide in your sidebar. This seduce your reader to subscribe much better than a click on a link to an extra static page. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class="eyecatch">Dieser Artikel in Deutsch: ==> <a href="http://www.texto.de/texto/post-notification-formular-in-der-sidebar-give-my-loop-a-try/" title="Artikel n Deutsch">Klick!</a></div>
<p>&raquo; You need the ID of this static page. Its postslug is &#8220;&#8216;post_notification_header&#8217;&#8221;.</p>
<p>The id of my static page with the postslug &#8220;post_notification_header&#8221; is 43.<br />
<strong><br />
I use this loop in sidebar.php.</strong> </p>
<p>&raquo; Before widget code starts or after widget code ends. Never ever between. It can&#8217;t work between this code, if you are using widgets!</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>is_page<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'43'</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;Post Notification &lt;/p&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>     
rewind_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;">global</span> <span style="color: #000088;">$more</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$more</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$my_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: #0000ff;">'page_id=43'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$my_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;">$my_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: #000088;">$do_not_duplicate</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<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>
 <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>
<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>I try to explain this loop. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Dear WordPress  don&#8217;t show the content of static page 43 in my sidebar  if it is static page 43. (Logical. Nobody would like to read the same content twice. )</p>
<p>Dear WordPress start again with a new loop (rewind posts) &#8211; give me the full content if there is a more-link or not (more=0).</p>
<p>Search my query-not your default loop.  Search for page id 43 in your datacenter  and give me a unique result. ( do not duplicate..).</p>
<p>Show me the content.  </p>
<p>&#8220;php&#8221; your work is done (endwhile and endif).</p>
<p>This works like a charme for me and I hope for you too. </p>
<div class="sign">Thats it. The idea for this loop is the result of a big cup of coffee. <img src="/wp-images/smilies/icon_confused.gif" alt="Kaffeetrinkender Smilie" width="27" height="21" />. Thanks to  Moritz Strübe for his great plugin. </div>
<p>And you know: I would like to read a comment. Or the sky will fall on your head &#8230;..</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/post-notification-formular-in-der-sidebar-give-my-loop-a-try-525/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/post-notification-formular-in-der-sidebar-give-my-loop-a-try-525/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to: Pages that display all posts from x category</title>
		<link>http://www.texto.de/how-to-pages-that-display-all-posts-from-x-category-522/</link>
		<comments>http://www.texto.de/how-to-pages-that-display-all-posts-from-x-category-522/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 18:04:28 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[wordpress-cms]]></category>

		<guid isPermaLink="false">http://www.texto.de/texto/how-to-pages-that-display-all-posts-from-x-category/</guid>
		<description><![CDATA[You would like to have all posts from a certain category on a static page. Sometimes with the "more-link" sometimes without. WordPress can do this, but it is tricky and static pages would never shown in feeds. ]]></description>
			<content:encoded><![CDATA[<dl class="left" style="width:260px;">
<dt>WP Loop</dt>
<dd><img  src="http://www.texto.de/wp-images/loop-wordpress-mts.gif" alt="WordPress Loop in Action viele Beispiele" width="250" height="250" /></dd>
</dl>
<p><span class="caplize">Y</span>ou would like to have all posts from a certain category on a static page. Sometimes with the &#8220;more-link&#8221; sometimes without. WordPress can do this, but it is tricky and static pages would never shown in feeds.  </p>
<p>&raquo; &raquo; <img src="/wp-images/smilies/texto-flag-de.gif" alt="deutsche Sprache" width="54" height="35" /> Deutsche Anleitung ist hier</p>
<p>You need this for a simple print version for all posts from certain category or for whatever else. My english isn&#8217;t the best. So I post the code. You do it and you&#8217;ll see the <span id="more-522"></span>results. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </p>
<h3> All posts on a static page. Without more-link. No specific category. Sort Order is ASC -eldest post first.</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Template Name: All
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<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;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> rewind_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
	<span style="color: #000088;">$my_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: #0000ff;">'order=asc&amp;showposts=500'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
         <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$my_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;">$my_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: #000088;">$do_not_duplicate</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$more</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$more</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;div class=&quot;post&quot; 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;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;
				&lt;small&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> &lt;!-- by <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> --&gt;&lt;/small&gt;
&nbsp;
				&lt;div class=&quot;entry&quot;&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;/div&gt;
&nbsp;
&nbsp;
			&lt;/div&gt;
&nbsp;
&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>
&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>
<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>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Template Name: All
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Dear WordPress &#8220;All&#8221; is the name of my static page. </p>
<p>Administration Panels==>Write==>Page==>Title==>right side you can choose this template &#8220;All&#8221;.</p>

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

<p>Dear WordPress start the loop again. Maybe not necessary but if you have another loop above it is necessary.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$more</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$more</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span></pre></div></div>

<p>Dear WordPress show the full post if there is a more-link or not.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$my_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: #0000ff;">'order=asc&amp;showposts=500'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
         <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$my_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;">$my_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: #000088;">$do_not_duplicate</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Dear WordPress this is my loop. I need all posts. Eldest post first. Give me 500 posts.</p>
<p>Ok I know nobody would like to read 500 posts on one static page.;) But if you would like to have &#8220;all&#8221; you need a number of posts.</p>
<p>Now all the stuff to show the posts.</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;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Dear WordPress you are ready. The end of the loop.</p>
<p>get header, sidebar, footer -whatever you need for your page. </p>
<h3> All posts from a certain category on a static page. With more-link. No specific sort order.</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Template Name: All
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<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;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> rewind_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
	<span style="color: #000088;">$my_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: #0000ff;">'cat=10&amp;showposts=500'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
         <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$my_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;">$my_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: #000088;">$do_not_duplicate</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$more</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$more</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;div class=&quot;post&quot; 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;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;
				&lt;small&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> &lt;!-- by <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> --&gt;&lt;/small&gt;
&nbsp;
				&lt;div class=&quot;entry&quot;&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;/div&gt;
&nbsp;
&nbsp;
			&lt;/div&gt;
&nbsp;
&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>
&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>
<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>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$my_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: #0000ff;">'cat=10&amp;showposts=500'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
         <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$my_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;">$my_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: #000088;">$do_not_duplicate</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">;</span></pre></div></div>

<p>Dear WordPress show me only posts from the category with the id=10.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$more</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$more</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Dear WordPress if you will find the more-link in a post please show it. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>The rest &#8230; &raquo; please read above. </p>
<p>You can see the results on my <a href="http://www.texto.de/lexikon-b/" title="Example ">Example Page</a>. Ok there are never ever 500 posts &#8211; but you can see it works. </p>
<div class="sign"> have fun, do it and please correct my english if you&#8217;ll find a or two or more mistakes. I will read a comment or the sky will fall on your head. <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/how-to-pages-that-display-all-posts-from-x-category-522/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/how-to-pages-that-display-all-posts-from-x-category-522/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>5 ways to highlight your first post  in your WordPress theme</title>
		<link>http://www.texto.de/5-ways-highlight-first-post-wordpress-theme-457/</link>
		<comments>http://www.texto.de/5-ways-highlight-first-post-wordpress-theme-457/#comments</comments>
		<pubDate>Sun, 10 Jun 2007 01:25:33 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[wordpress-cms]]></category>

		<guid isPermaLink="false">http://www.texto.de/texto/5-ways-highlight-first-post-wordpress-theme/</guid>
		<description><![CDATA[I would like to have the first post full, the other only with the excerpt. Only one CSS class for my first post and one for the other. News only on the first page. ... My 5 ways to highlight my first post in my wordpress themes.]]></description>
			<content:encoded><![CDATA[<dl class="left" style="width:260px;">
<dt>WP Loop</dt>
<dd><img  src="http://www.texto.de/wp-images/loop-wordpress-mts.gif" alt="WordPress Loop in Action viele Beispiele" width="250" height="250" /></dd>
</dl>
<p><span class="caplize">5</span> ways to highlight the first post or the first article in your WordPress Theme. I&#8217;m sure there are more than 5 ways, but I<br />
love them. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />   </p>
<p>This is one of my &#8220;draft posts&#8221;. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  One of my gathering place. <strong>Subscribe </strong>to this post because if I find out a new way to highlight my first post I would like to edit and complete this article. </p>
<p>Let&#8217;s start and remember :  Please don&#8217;t copy &#038; paste my code examples.</p>
<p><span class="firstletter">1</span>. </p>
<h3>highlight the 1.post on every page</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>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: #000000; font-weight: bold;">?&gt;</span>
              your stuff
<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;
<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: #000000; font-weight: bold;">?&gt;</span>
              your stuff
<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><span id="more-457"></span></p>
<p><span class="firstletter">2.</span></p>
<h3>highlight the 1st post only on the 1st page</h3>
<p>first post:full content, without more link</p>
<p>all other posts:only the excerpt</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>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;
		<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: #000088;">$first</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;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #cc66cc;">1</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$first</span> <span style="color: #339933;">&amp;&amp;</span> is_home<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span>is_paged<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
  the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
&nbsp;
 the_excerpt<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #009900;">&#125;</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;">endwhile</span><span style="color: #339933;">;</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><span class="firstletter">3.</span></p>
<h3>highlight  1st post only on the  1st page &#8211; another option </h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$paged</span> <span style="color: #000088;">$counter</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</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: #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: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$counter</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'1'</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$paged</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">''</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$paged</span> <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">2</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>
                   your stuff
  <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$counter</span><span style="color: #339933;">++;</span>
  <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
                your stuff
  <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</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><span class="firstletter">4.</span></p>
<h3>highlight h1 in the 1st post on every page </h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> 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: #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: #000088;">$loopcounter</span><span style="color: #339933;">++;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
        &lt;div class=&quot;post&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: #000088;">$loopcounter</span>  <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
         &lt;h1 class=&quot;first&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;/h1&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
         &lt;h1 class=&quot;second&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;/h1&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>
        <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<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;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</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>CSS for this example</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
h1<span style="color: #339933;">.</span>first<span style="color: #009900;">&#123;</span>font<span style="color: #339933;">-</span>size<span style="color: #339933;">:</span>1<span style="color: #339933;">.</span>4em<span style="color: #339933;">;</span>
          line<span style="color: #339933;">-</span>height<span style="color: #339933;">:</span>1<span style="color: #339933;">.</span>7em<span style="color: #339933;">;</span>
          color<span style="color: #339933;">:</span>red<span style="color: #339933;">;</span>
          background<span style="color: #339933;">-</span>color<span style="color: #339933;">:</span>inherit<span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
h1<span style="color: #339933;">.</span>second<span style="color: #009900;">&#123;</span>font<span style="color: #339933;">-</span>size<span style="color: #339933;">:</span>1<span style="color: #339933;">.</span>1em<span style="color: #339933;">;</span>
          line<span style="color: #339933;">-</span>height<span style="color: #339933;">:</span>1<span style="color: #339933;">.</span>5em<span style="color: #339933;">;</span>
          color<span style="color: #339933;">:</span>blue<span style="color: #339933;">;</span>
          background<span style="color: #339933;">-</span>color<span style="color: #339933;">:</span>inherit<span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span></pre></div></div>

<p><span class="firstletter">5.</span></p>
<p>This is the method I&#8217;m using here at texto.de these days. </p>
<h3>WordPress give me one post <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$top_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: #0000ff;">'showposts=1'</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;">$top_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;">$top_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: #000088;">$do_not_duplicate</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
      &lt;div class=&quot;first&quot;&gt;
        &lt;h3&gt;the title&lt;/h3&gt;
         <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>
       &lt;/div&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><span class="firstletter">5.a</span></p>
<h3>&#8230;and now WordPress give my 7 other posts without the 1st one.</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;ul class=&quot;second&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$top_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: #0000ff;">'showposts=7&amp;offset=1'</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;">$top_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;">$top_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: #000088;">$do_not_duplicate</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;li 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; class=&quot;<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">%</span><span style="color:#800080;">2</span><span style="color: #009900;">&#41;</span>?<span style="color: #0000ff;">&quot;odd&quot;</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;even&quot;</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</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; title=&quot;<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; rel=&quot;bookmark&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;&amp;nbsp; &amp;raquo;&amp;raquo;&lt;/li&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>
&lt;/ul&gt;</pre></div></div>

<p>My CSS for this example:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
ul<span style="color: #339933;">.</span>second<span style="color: #009900;">&#123;</span>margin<span style="color: #339933;">:</span>9px auto<span style="color: #339933;">;</span>
          width<span style="color: #339933;">:</span><span style="color: #cc66cc;">97</span><span style="color: #339933;">%;</span>
          text<span style="color: #339933;">-</span>align<span style="color: #339933;">:</span>center<span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
&nbsp;
ul<span style="color: #339933;">.</span>second  li<span style="color: #009900;">&#123;</span>padding<span style="color: #339933;">:</span>2px <span style="color: #cc66cc;">0</span> 2px 12px<span style="color: #339933;">;</span>	
          text<span style="color: #339933;">-</span>align<span style="color: #339933;">:</span>left<span style="color: #339933;">;</span>
          line<span style="color: #339933;">-</span>height<span style="color: #339933;">:</span><span style="color: #cc66cc;">140</span><span style="color: #339933;">%;</span>
          background<span style="color: #339933;">-</span>image<span style="color: #339933;">:</span>url<span style="color: #009900;">&#40;</span>images<span style="color: #339933;">/</span>texto<span style="color: #339933;">-</span>read<span style="color: #339933;">-</span>on<span style="color: #339933;">.</span>gif<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
          background<span style="color: #339933;">-</span>repeat<span style="color: #339933;">:</span> no<span style="color: #339933;">-</span>repeat<span style="color: #339933;">;</span>	
          background<span style="color: #339933;">-</span>position<span style="color: #339933;">:</span> <span style="color: #cc66cc;">0</span> 6px<span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
&nbsp;
li<span style="color: #339933;">.</span>odd<span style="color: #009900;">&#123;</span>width<span style="color: #339933;">:</span><span style="color: #cc66cc;">47</span><span style="color: #339933;">%;</span>
          float<span style="color: #339933;">:</span>right<span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
li<span style="color: #339933;">.</span>even<span style="color: #009900;">&#123;</span>width<span style="color: #339933;">:</span><span style="color: #cc66cc;">47</span><span style="color: #339933;">%;</span>
          float<span style="color: #339933;">:</span>left<span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
&nbsp;
ul<span style="color: #339933;">.</span>second li<span style="color: #339933;">.</span>odd a<span style="color: #339933;">,</span>
ul<span style="color: #339933;">.</span>second li<span style="color: #339933;">.</span>even a<span style="color: #009900;">&#123;</span>display<span style="color: #339933;">:</span>block<span style="color: #339933;">;</span>
          width<span style="color: #339933;">:</span><span style="color: #cc66cc;">80</span><span style="color: #339933;">%;</span>
          float<span style="color: #339933;">:</span>left<span style="color: #339933;">;</span>
          overflow<span style="color: #339933;">:</span>hidden<span style="color: #339933;">;</span>
          white<span style="color: #339933;">-</span>space<span style="color: #339933;">:</span>nowrap<span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span></pre></div></div>

<p><strong>Safe your files</strong> 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>
<p>&gt;Have fun, and don&#8217;t be afraid to contact me if you have questions.</p>
<p>And&#8230;<br />
Please leave a reply or :<br />
the sky will fall on your head. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class="sign">I wish you well <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/5-ways-highlight-first-post-wordpress-theme-457/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/5-ways-highlight-first-post-wordpress-theme-457/feed/</wfw:commentRss>
		<slash:comments>12</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>

