<?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>Roman HarckeHow-To | Roman Harcke</title>
	<atom:link href="http://romanharcke.de/tag/how-to/feed/" rel="self" type="application/rss+xml" />
	<link>http://romanharcke.de</link>
	<description>WordPress, Fotografie und natürlich Themen meines Studiums</description>
	<lastBuildDate>Mon, 23 Jan 2012 10:26:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Fotografie &#8211; DROPS</title>
		<link>http://romanharcke.de/fotografie-drops/</link>
		<comments>http://romanharcke.de/fotografie-drops/#comments</comments>
		<pubDate>Thu, 06 May 2010 12:02:31 +0000</pubDate>
		<dc:creator>Roman</dc:creator>
				<category><![CDATA[Fotografie]]></category>
		<category><![CDATA[harcke]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[romanharcke.de]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://romanharcke.de/?p=2624</guid>
		<description><![CDATA[Wassertropfen, auch Drops genannt, zu fotografieren ist wirklich schwieriger als man denkt. Es ist sehr viel Licht, ein gutes Setup und viel Geduld nötig um die Wassertropfen beim Aufschlag optimal einzufangen. Man sollte bei der DROPS-Fotografie nicht auf einen Biltz verzichten, nur so kommt man ohne abartige ISO-Zahlen in kurze Belichtungszeiten um die 1/250s oder 1/320s. Andernfalls werden die Tropfen nur verschwollen auf den Resultaten zu sehen sein, sie bewegen sich einfach zu schnell. Hier ein wunderbares DROP-Video in Slow Motion (und 720p). Einfach unglaublich!!1 Im Internet habe ich eine sehr gute Anleitung gefunden, der Aufbau ist sehr professionell und man kann viele Tipps abstauben Da meinem Blitz leider schon nach 5 Versuchen der Saft ausging, musste ich improvisieren und eine Schreibtischlampe benutzen. Das Licht war so schwach, dass ich die kurzen Belichtungszeiten nur unter ISO 640 erreichen konnte. Logischerweise hatte ich ein recht starkes Bildrauschen, welches ich aber mit einigen Tricks unter Photoshop reduzieren konnte. Dann möchte ich euch meine Bilder nicht vorenthalten: &#160; &#160; Die verschiedenen Farben können mit farbigen Bouncern, oder falls gerade nicht zur Hand, mit Volltonfarb-Layern in Photoshop erzeugt werden Um zu fokussieren, hab ich einen Gegenstand unter die Tropfen gelegt und mit meinem Objektiv [...]
Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/impressionen-fotografie-regnen-tropfen/' rel='bookmark' title='Impressionen für Fotografie an regnerischen Tagen'>Impressionen für Fotografie an regnerischen Tagen</a></li>
<li><a href='http://romanharcke.de/ente-ente-ente/' rel='bookmark' title='Ente + Ente = Ente'>Ente + Ente = Ente</a></li>
<li><a href='http://romanharcke.de/die-neue-alte-voigtlander-vitomatic-1a/' rel='bookmark' title='Die neue alte &#8211; Voigtländer Vitomatic 1a'>Die neue alte &#8211; Voigtländer Vitomatic 1a</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Wassertropfen, auch Drops genannt, zu fotografieren ist wirklich schwieriger als man denkt. Es ist sehr viel Licht, ein gutes Setup und viel Geduld nötig um die Wassertropfen beim Aufschlag optimal einzufangen.</p>
<p>Man sollte bei der DROPS-Fotografie nicht auf einen Biltz verzichten, nur so kommt man ohne abartige ISO-Zahlen in kurze Belichtungszeiten um die 1/250s oder 1/320s. Andernfalls werden die Tropfen nur verschwollen auf den Resultaten zu sehen sein, sie bewegen sich einfach zu schnell.</p>
<p>Hier ein wunderbares DROP-Video in Slow Motion (und 720p). <strong>Einfach unglaublich!!1</strong></p>
<p><object><param name="movie" value="http://www.youtube.com/v/VoQ0DQpwwHU&amp;hl=de_DE&amp;fs=1&amp;" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" width="500px" height="300px" src="http://www.youtube.com/v/VoQ0DQpwwHU&amp;hl=de_DE&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Im Internet habe ich eine sehr gute Anleitung gefunden, der Aufbau ist sehr professionell und man kann viele Tipps abstauben <img src='http://romanharcke.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/fwExpFDUC9Y&amp;hl=de_DE&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="500px" height="300px" src="http://www.youtube.com/v/fwExpFDUC9Y&amp;hl=de_DE&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Da meinem Blitz leider schon nach 5 Versuchen der Saft ausging, musste ich improvisieren und eine Schreibtischlampe benutzen. Das Licht war so schwach, dass ich die kurzen Belichtungszeiten nur unter ISO 640 erreichen konnte. Logischerweise hatte ich ein recht starkes Bildrauschen, welches ich aber mit einigen Tricks unter Photoshop reduzieren konnte.</p>
<p>Dann möchte ich euch meine Bilder nicht vorenthalten:</p>
<div id="attachment_2625"><a href="http://romanharcke.de/wp-content/uploads/2010/05/IMG_2269_2_web.jpg"><img class="size-full wp-image-2625 " title="DROPS Wassertropfen" src="http://romanharcke.de/wp-content/uploads/2010/05/IMG_2269_2_web.jpg" alt="Foto eines Drops" width="100%" /></a></div>
<p>&nbsp;</p>
<div id="attachment_2626"><a href="http://romanharcke.de/wp-content/uploads/2010/05/IMG_2319_web.jpg"><img class="size-full wp-image-2626 " title="Fotografie DROPS" src="http://romanharcke.de/wp-content/uploads/2010/05/IMG_2319_web.jpg" alt="Fotografie DROPS" width="100%" /></a></div>
<p>&nbsp;</p>
<p>Die verschiedenen Farben können mit farbigen Bouncern, oder falls gerade nicht zur Hand, mit Volltonfarb-Layern in Photoshop erzeugt werden <img src='http://romanharcke.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Um zu fokussieren, hab ich einen Gegenstand unter die Tropfen gelegt und mit meinem Objektiv auf diesen fokussiert. So konnte ich in jedem Bild eine gute Schärfe erreichen.</p>
<p><strong>Was habe ich für meine Fotos alles benutzt?</strong></p>
<ul>
<li>eine Pfanne mit Wasser</li>
<li>Plastiktüte gefüllt mit Wasser und einem kleinen Tropf-Loch</li>
<li>eine weiße Platte, als Reflektor</li>
<li>eine Schreibtischlampe (Blitz ist natürlich besser)</li>
<li>Stativ</li>
</ul>
<p>Wünsche euch viel Spaß, hoffentlich gelingen eure Bilder!</p>
<p>Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/impressionen-fotografie-regnen-tropfen/' rel='bookmark' title='Impressionen für Fotografie an regnerischen Tagen'>Impressionen für Fotografie an regnerischen Tagen</a></li>
<li><a href='http://romanharcke.de/ente-ente-ente/' rel='bookmark' title='Ente + Ente = Ente'>Ente + Ente = Ente</a></li>
<li><a href='http://romanharcke.de/die-neue-alte-voigtlander-vitomatic-1a/' rel='bookmark' title='Die neue alte &#8211; Voigtländer Vitomatic 1a'>Die neue alte &#8211; Voigtländer Vitomatic 1a</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://romanharcke.de/fotografie-drops/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Abbildungsmaßstab ermitteln</title>
		<link>http://romanharcke.de/abbildungsmasstab-ermitteln/</link>
		<comments>http://romanharcke.de/abbildungsmasstab-ermitteln/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 15:03:44 +0000</pubDate>
		<dc:creator>Roman</dc:creator>
				<category><![CDATA[Fotografie]]></category>
		<category><![CDATA[abbildungsmaßstab rechner]]></category>
		<category><![CDATA[abbildungsmaßstab und reale brennweite]]></category>
		<category><![CDATA[Anleitung]]></category>
		<category><![CDATA[artikel]]></category>
		<category><![CDATA[canon 40d]]></category>
		<category><![CDATA[harcke]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Makrofotografie]]></category>
		<category><![CDATA[Objektiv]]></category>
		<category><![CDATA[romanharcke.de]]></category>
		<category><![CDATA[Umkehrring]]></category>

		<guid isPermaLink="false">http://romanharcke.de/abbildungsmasstab-ermitteln/</guid>
		<description><![CDATA[Um den maximalen Abbildungsmaßstab eines Objektivs zu berechnen, fotografiert man auf verschiedenen Brennweiten und stellt das Ergebnis ins Verhältnis zur Größe des Bildsensors. Klingt komplizierter als es ist! Für die Makrofotografie ist es manchmal interessant den Abbildungsfaktor zu wissen. Nachfolgend werde ich erklären, wie ihr dies ganz einfach selbst ausrechnen könnt. Angeregt für diesen Artikel hat mich &#8220;JürgenHugo&#8221; auf dem Querblog. Ich hatte ein Makrofoto mit dem Umkehrring aufgenommen und war an der Größe meines maximalen Abbildungsmaßstabes interessiert. -> Nochmals danke für den Tipp;) Dann gehts mal los.   1. Größe des Bildsensors herausfinden Als erstes brauchst du die Größe des verbauten Bildsensors in deiner Kamera. Als Beispiel nehme ich hier den CMOS-Sensor meiner Canon 40D mit einer Breite von: 22,2mm und einer Höhe von: 14,8mm.   2. Zwei Testbilder machen Nimm dir ein Lineal zur Hand und fotografiere dies ungefähr so, dass die Null am linken Bildrand liegt. Geh so nah mit der Kamera ans Lineal wie es die Schärfe gerade noch zulässt.   2.1 &#8211; Das erste Bild machst du mit der maximalen Brennweite deines Objektives. Bei mir waren es mit dem Canon EF-S Objektiv 55mm Brennweite. Auf dem Lineal konnte ich damit ungefähr eine Breite von 20mm [...]
Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/herbst-impressionen/' rel='bookmark' title='Herbst kann auch schön sein'>Herbst kann auch schön sein</a></li>
<li><a href='http://romanharcke.de/kleine-welt-plotzlich-ganz-gros/' rel='bookmark' title='Kleine Welt plötzlich ganz groß'>Kleine Welt plötzlich ganz groß</a></li>
<li><a href='http://romanharcke.de/umkehrring-fur-canon-ef-bajonett/' rel='bookmark' title='Umkehrring für Canon EF Bajonett'>Umkehrring für Canon EF Bajonett</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Um den <strong>maximalen Abbildungsmaßstab eines Objektivs zu berechnen</strong>, fotografiert man auf verschiedenen Brennweiten und stellt das Ergebnis ins Verhältnis zur Größe des Bildsensors.</p>
<p>Klingt komplizierter als es ist!</p>
<p>Für die Makrofotografie ist es manchmal interessant den Abbildungsfaktor zu wissen. Nachfolgend werde ich erklären, wie ihr dies ganz einfach selbst ausrechnen könnt.</p>
<p>Angeregt für diesen Artikel hat mich &#8220;JürgenHugo&#8221; <a title="querblog makrofotografie" href="http://www.querblog.de/2009/08/08/was-fur-eine-fliege/" target="_blank" rel="nofollow">auf dem Querblog</a>.<br />
Ich hatte <a title="Makrofotografie Fliege" href="http://romanharcke.de/foto-wettbewerb-gewonnen/" target="_blank">ein Makrofoto mit dem Umkehrring aufgenommen</a> und war an der Größe meines maximalen Abbildungsmaßstabes interessiert.<br />
-> Nochmals danke für den Tipp;)</p>
<p>Dann gehts mal los.</p>
<p> </p>
<h2>1. Größe des Bildsensors herausfinden</h2>
<p>Als erstes brauchst du die Größe des verbauten Bildsensors in deiner Kamera.<br />
Als Beispiel nehme ich hier den CMOS-Sensor meiner Canon 40D mit einer <strong>Breite von: 22,2mm</strong> und einer <strong>Höhe von: 14,8mm</strong>.</p>
<p> </p>
<h2>2. Zwei Testbilder machen</h2>
<ol>
<li>
<div>Nimm dir ein Lineal zur Hand und fotografiere dies ungefähr so, dass die Null am linken Bildrand liegt.</div>
</li>
<li>
<div>Geh so nah mit der Kamera ans Lineal wie es die Schärfe gerade noch zulässt.</div>
</li>
</ol>
<p> </p>
<p><strong>2.1 &#8211; Das erste Bild machst du mit der maximalen Brennweite deines Objektives.</strong></p>
<p>Bei mir waren es mit dem Canon EF-S Objektiv <strong>55mm Brennweite</strong>.<br />
Auf dem Lineal konnte ich damit ungefähr eine <strong>Breite von 20mm</strong> fotografieren:<br />
(Beachtet, dass ich hier den Umkehrring benutzt habe und somit eine weitaus höhere Vergrößerung erziele.)<img hspace="10" alt="20mm" vspace="10" src="http://romanharcke.de/wp-content/uploads/2009/08/20mm.jpg" width="90%" /></p>
<p><strong><u>Notiz:</u></strong></p>
<ul dir="ltr">
<li>
<div>55mm: 20mm (formatfüllend)</div>
</li>
</ul>
<p> </p>
<p><strong>2.2 &#8211; Das zweite Bild mit der kleinsten Brennweite</strong></p>
<p>Das sind bei mir <strong>18mm</strong>. Hier sieht man schon die imense Vergrößerung durch den Umkehrring.<br />
Auf dem Bild habe ich einen Ausschnitt von <strong>ca. 5mm</strong>.</p>
<p><img hspace="10" alt="5mm" vspace="10" src="http://romanharcke.de/wp-content/uploads/2009/08/5mm.jpg" width="90%" /></p>
<p><strong><u>Notiz:</u></strong></p>
<ul>
<li>18mm: 5mm (formatfüllend)</li>
</ul>
<p> </p>
<h2>3. Abbildungsmaßstab ausrechnen</h2>
<p>Der Abbildungsmaßstab ist das Verhältnis zwischen der realen Größe eines Objektes und der Größe dieses Objektes auf dem Bildsensor.</p>
<p><img hspace="10" alt="brennweite-abbildung" vspace="10" src="http://romanharcke.de/wp-content/uploads/2009/08/brennweite-abbildung.jpg" width="90%" /></p>
<p>(Ja, die Grafik ist nicht die tollste, aber ich hab meinen Tablet-PC leider verkauft&#8230;)</p>
<p>Hier sieht man die Verhältnisse ganz gut.</p>
<p>- Ein Abbildungsmaßstab von 1:1 sagt aus, dass der Gegenstand und seine Abbildung gleich groß sind<br />
- Ein Abbildungsmaßstab von 1:2 sagt aus, dass der Gegenstand doppelt so groß ist wie seine Abbildung<br />
- Ein Abbildungsmaßstab von 2:1 sagt aus, dass die Abbildung doppelt so groß ist wie der Gegenstand.</p>
<p>Da in meinem Beispiel die Abbildungen immer größer als der Gegenstand waren, wirkt mein Objektiv wie eine Lupe und hat einen <strong>Abbildungsmaßstab</strong> x von <strong>x:1</strong>.</p>
<p> </p>
<h4>1. Abbildungsmaßstab bei 55mm:</h4>
<p>Bei <strong>55mm</strong> hatte ich eine <strong>maximale Darstellungsbreite von 20mm.<br /></strong>Da der Bildsensor eine <strong>Breite von 22,2mm</strong> aufweist, folgt der Abbildungsmaßstab diesem Verhältnis:</p>
<p><img src="http://romanharcke.de/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_980_51c050cec07254e234ef4d628a8faf19.png" style="vertical-align:-20px; display: inline-block ;" alt="22.2/20 mm/mm = 1,11" title="22.2/20 mm/mm = 1,11"/></p>
<p><b>Bei 55mm Brennweite habe ich also einen Abbildungsmaßstab von 1:1.</b></p>
<p> </p>
<h4>2. Abbildungsmaßstab bei 18mm:</h4>
<p>Bei <strong>18mm Brennweite</strong> hatte ich eine <strong>maximale Abbildungsbreite von 5mm.<br /></strong>Mit der Breite des Bildsensors ergibt sich folgendes Verhältnis:</p>
<p><img src="http://romanharcke.de/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_980_3f20a2ada8c10ed50629eb9d7aae225c.png" style="vertical-align:-20px; display: inline-block ;" alt="22.2/5 mm/mm = 4,44" title="22.2/5 mm/mm = 4,44"/></p>
<p><b>Bei 18mm Brennweite ist mein Abbildungsmaßstab maximal &#8211; mit ca 4,45:1.</b></p>
<p>Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/herbst-impressionen/' rel='bookmark' title='Herbst kann auch schön sein'>Herbst kann auch schön sein</a></li>
<li><a href='http://romanharcke.de/kleine-welt-plotzlich-ganz-gros/' rel='bookmark' title='Kleine Welt plötzlich ganz groß'>Kleine Welt plötzlich ganz groß</a></li>
<li><a href='http://romanharcke.de/umkehrring-fur-canon-ef-bajonett/' rel='bookmark' title='Umkehrring für Canon EF Bajonett'>Umkehrring für Canon EF Bajonett</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://romanharcke.de/abbildungsmasstab-ermitteln/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Wie erstelle ich einen Artikel richtig?</title>
		<link>http://romanharcke.de/howto-artikel-richtig-erstellen-wordpress/</link>
		<comments>http://romanharcke.de/howto-artikel-richtig-erstellen-wordpress/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 16:18:09 +0000</pubDate>
		<dc:creator>Roman</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[all in on seo pack keinen zweiten titel zufügen]]></category>
		<category><![CDATA[Anleitung]]></category>
		<category><![CDATA[artikel]]></category>
		<category><![CDATA[harcke]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[romanharcke.de]]></category>
		<category><![CDATA[themen]]></category>
		<category><![CDATA[Tipps]]></category>

		<guid isPermaLink="false">http://romanharcke.de/?p=899</guid>
		<description><![CDATA[WordPress gibt dir viele Einstellungsmöglichkeiten vor, doch welche sollten für einen erfolgreichen Artikel genutzt werden? Auf webbstar.de habe ich eine tolle Grafik gefunden, die sehr übersichtlich die verschiedenen Schritte bis zur Veröffentlichung beschreibt. 1. Überschrift Bevor man den eigentlichen Artikel schreibt, sollte man sich eine Überschrift überlegen. Manchmal verändere ich diese während dem Schreiben leicht, es sollte aber bei einem speziellen Thema bleiben. 2. Artikel schreiben Beim Schreiben sollte man sich auf das Thema der Überschrift konzentrieren. Wie und über was du schreiben willst, musst du selbst wissen. Schreibe über etwas was dich interessiert, in dem du dich auskennst. Optimal wäre es, wenn du deinen Leser einige weitere Links im Artikel empfehlen kannst. Vielleicht zu Randthemen, die du nur anreißen willst (&#8220;Weitere Informationen finden sich hier&#8230;&#8221;). Bei den Links solltest du auch das title=&#8221;" Attribut einfügen, das mögen Suchmaschinen &#8211; und von denen kommen schließlich die meisten Besucher. Weiterhin solltest du die wichtigsten Schlüsselwörter (Keywords) deines Themas im Artikel öfters wiederholen. So steigt die Themenrelevanz, denke allerdings auch an deine Leser, die könnte eine Überoptimierung des Textes stören. Hier ist ein gesundes Mittelmaß gefragt. Lasse auch einige persönlichen Gedanken und Ideen in deine Artikel einfließen, damit sich die Leser mit [...]
Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/ahnliche-artikel-anzeigen-ohne-plugin-wordpress/' rel='bookmark' title='Ähnliche Artikel anzeigen ohne Plugin (WordPress)'>Ähnliche Artikel anzeigen ohne Plugin (WordPress)</a></li>
<li><a href='http://romanharcke.de/unbenutzte-tags-loschen-mit-sql-wordpress/' rel='bookmark' title='Unbenutzte Tags löschen mit SQL in WordPress'>Unbenutzte Tags löschen mit SQL in WordPress</a></li>
<li><a href='http://romanharcke.de/wp-kommentar-statistik-aus-dashboard-auf-seite-anzeigen/' rel='bookmark' title='WP &#8211; Kommentar Statistik aus Dashboard auf Seite anzeigen'>WP &#8211; Kommentar Statistik aus Dashboard auf Seite anzeigen</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>WordPress gibt dir viele Einstellungsmöglichkeiten vor, doch welche sollten für einen erfolgreichen Artikel genutzt werden?<br />
Auf <a href="http://www.webbstar.de/2009/07/23/richtig-bloggen-%E2%80%93-beitrag-einstellen-2/" title="webbstar.de">webbstar.de</a> habe ich eine tolle Grafik gefunden, die sehr übersichtlich die verschiedenen Schritte bis zur Veröffentlichung beschreibt.</p>
<div id="attachment_900" class="wp-caption aligncenter" style="width: 510px"><a href="http://www.webbstar.de/2009/07/23/richtig-bloggen-%E2%80%93-beitrag-einstellen-2/"><img src="http://romanharcke.de/wp-content/uploads/2009/08/wordpress_schritte_veröffentlichung.gif" alt="Artikel veröffentlichen WordPress" title="wordpress_schritte_veröffentlichung" width="500" height="790" class="size-full wp-image-900" /></a><p class="wp-caption-text">Artikel veröffentlichen WordPress</p></div>
<h2>1. Überschrift</h2>
<p>Bevor man den eigentlichen Artikel schreibt, sollte man sich eine Überschrift überlegen. Manchmal verändere ich diese während dem Schreiben leicht, es sollte aber bei einem speziellen Thema bleiben.</p>
<h2>2. Artikel schreiben</h2>
<p>Beim Schreiben sollte man sich auf das Thema der Überschrift konzentrieren. Wie und über was du schreiben willst, musst du selbst wissen. Schreibe über etwas was dich interessiert, in dem du dich auskennst.<br />
Optimal wäre es, wenn du deinen Leser einige weitere Links im Artikel empfehlen kannst. Vielleicht zu Randthemen, die du nur anreißen willst (&#8220;Weitere Informationen finden sich hier&#8230;&#8221;).<br />
Bei den Links solltest du auch das title=&#8221;" Attribut einfügen, das mögen Suchmaschinen &#8211; und von denen kommen schließlich die meisten Besucher.<br />
Weiterhin solltest du die wichtigsten Schlüsselwörter (Keywords) deines Themas im Artikel öfters wiederholen. So steigt die Themenrelevanz, denke allerdings auch an deine Leser, die könnte eine Überoptimierung des Textes stören.<br />
Hier ist ein gesundes Mittelmaß gefragt.<br />
Lasse auch einige persönlichen Gedanken und Ideen in deine Artikel einfließen, damit sich die Leser mit deiner Person identifizieren können.</p>
<h2>3. Bild einfügen</h2>
<p>Weiterhin ist es für die Leser des Artikels meist angenehm wenn sich ein Bild zwischen den einzelnen Abschnitten befindet. So kann nicht nur das Auge entspannen, es bringt auch Besucher von der Google Bildsuche. </p>
<p>Achte jedoch darauf, dass die Suchmaschinen die Bilder nicht lesen können, daher solltest du (so wie ich es hier gerade mache) die Bilder beschreiben. Für eine kleine gezielte Beschreibung können dem Bild im HTML Code Attribute verliehen werden. Diese liest die Suchmaschine aus. Also nicht vergessen bei den Bildern immer ein alt=&#8221;" und ein title=&#8221;" Attribut zu vergeben. </p>
<h2>3. Tags</h2>
<p>Tags sind wichtig, um den Artikel in ein Thema einordnen zu können und ihr mit einigen kurzen Wörtern gezielt zu beschreiben. Da die Suchmaschinen auch die Tags indizieren, kann man auf diese Weise ebenfalls einige Besucher anlocken.</p>
<p>Wenn die Tags noch nicht während dem Artikelschreiben angelegt wurden, sollte man dies unbedingt jetzt tun. Meistens füge ich die Tags nach dem Artikelschreiben ein, da ich während dem Verfassen nicht den &#8220;roten Faden&#8221; verlieren möchte.</p>
<p>Tags sollten bei jedem Post hinzugefügt werden! Sonst ist es für die Suchmaschinen schwieriger euren Artikel zu finden und einzuordnen.</p>
<h2>5. Kategorie auswählen</h2>
<p>Jeder Artikel sollte unbedingt in eine passende Kategorie eingeteilt werden. Das heisst nicht, dass ihr für jede Überschrift eine eigene Kategorie erstellen sollt, das hätte keinen positiven Effekt.<br />
Eine Kategorie dient vielmehr dazu, auf eurer Webseite Ordnung zu halten, eine übersichtliche Navigation zu gewährleisten und themenrelavante Artikel auf einer Seite zusammenzufassen. </p>
<p>Auch Kategorien werden von Suchmaschinen untersucht, so können Besucher auch über eine Suche direkt auf eure Kategorieseite gelangen.<br />
Das Geizen mit Kategorien zahlt sich hier aus, denn der Besucher findet weitere interessante Artikel die in seinem Interesse liegen.</p>
<h2>6. Trackback URL</h2>
<p>Eine Trackback URL soll andere Blogs oder Webseiten über eure Verlinkung informieren.<br />
Das ist bei einem WordPress Blog allerdings nicht von belang, da dies automatisch geschieht. </p>
<h2>7. Autor auswählen</h2>
<p>Falls auf deiner Seite mehrere Autoren angemeldet sind, kann hier der Verfasser des Artikels ausgewählt werden. </p>
<h2>8. 9. 10. All in One SEO Pack</h2>
<p>Dieses Plugin solltet ihr euch umgehend installieren, es hilft euch beim Optimieren ungemein (<a href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/" title="all in one seo pack download" rel="nofollow">-> DOWNLOAD LINK</a>). </p>
<p>Eigentlich ist das Kopieren der Tags und Title in die &#8220;All in One SEO Pack&#8221; Form nicht nötig, ihr könnt es aber vorsichtshalber trotzdem hier einfügen.</p>
<p>Sehr wichtig ist allerdings die Description (Beschreibung). Denn das was ihr hier reinschreibt erscheint hinterher in den Suchmaschinenergebnissen unter dem Link.<br />
Hier solltet ihr drauf achten, dass ihr nocheinmal die Wörter aus dem Titel und einige der wichtigsten Tags in ein oder zwei Sätzen integriert. </p>
<p>Hier meine Meta-Tags des Artikels als Beispiel:</p>
<p><a href="http://romanharcke.de/wp-content/uploads/2009/08/artikel_richtig_erstellen_wordpress.jpg"><img src="http://romanharcke.de/wp-content/uploads/2009/08/artikel_richtig_erstellen_wordpress.jpg" alt="artikel_richtig_erstellen_wordpress" title="artikel_richtig_erstellen_wordpress" width="600" /></a></p>
<p>Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/ahnliche-artikel-anzeigen-ohne-plugin-wordpress/' rel='bookmark' title='Ähnliche Artikel anzeigen ohne Plugin (WordPress)'>Ähnliche Artikel anzeigen ohne Plugin (WordPress)</a></li>
<li><a href='http://romanharcke.de/unbenutzte-tags-loschen-mit-sql-wordpress/' rel='bookmark' title='Unbenutzte Tags löschen mit SQL in WordPress'>Unbenutzte Tags löschen mit SQL in WordPress</a></li>
<li><a href='http://romanharcke.de/wp-kommentar-statistik-aus-dashboard-auf-seite-anzeigen/' rel='bookmark' title='WP &#8211; Kommentar Statistik aus Dashboard auf Seite anzeigen'>WP &#8211; Kommentar Statistik aus Dashboard auf Seite anzeigen</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://romanharcke.de/howto-artikel-richtig-erstellen-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>20 WordPress Hacks</title>
		<link>http://romanharcke.de/20-wordpress-hacks/</link>
		<comments>http://romanharcke.de/20-wordpress-hacks/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 14:46:39 +0000</pubDate>
		<dc:creator>Roman</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[artikel]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[harcke]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[romanharcke.de]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://romanharcke.de/?p=697</guid>
		<description><![CDATA[WordPress als CMS benötigt etwas Feintuning WordPress wird immer häufiger als CMS eingesetzt. Als Admin und Webmaster seines persönlichen Blogs, sollte man nicht übermäßig viele Plugins installieren, da diese meist viel Code schreiben und so die Webseite langsamer laden lassen. Das wollen wir doch nicht. Außerdem kann man mit den hier beschriebenen Codes/Hacks aus dem normalen WordPress Theme ein ganz spezielles und personalisiertes Theme erstellen. Folgende Hacks sind eine persönliche Auswahl der besten Codes von WpRecipes. 1. Tags in einem Drop-Down Menü anzeigen lassen In eurem Theme Ordner findet ihr eine .php Datei namens “funktions.php”. Falls euer WordPress Theme bis jetzt ohne ausgekommen ist, erstellt ihr eine. In diese Datei kopiert ihr nun einfach folgenden Code: &#60;?php function dropdown_tag_cloud&#40; $args = '' &#41; &#123; &#160; &#160; $defaults = array&#40; &#160; &#160; &#160; &#160; 'smallest' =&#62; 8, 'largest' =&#62; 22, 'unit' =&#62; 'pt', 'number' =&#62; 45, &#160; &#160; &#160; &#160; 'format' =&#62; 'flat', 'orderby' =&#62; 'name', 'order' =&#62; 'ASC', &#160; &#160; &#160; &#160; 'exclude' =&#62; '', 'include' =&#62; '' &#160; &#160; &#41;; &#160; &#160; $args = wp_parse_args&#40; $args, $defaults &#41;; &#160; &#160; $tags = get_tags&#40; array_merge&#40;$args, array&#40;'orderby' =&#62; 'count', 'order' =&#62; 'DESC'&#41;&#41; &#41;; // Always query top tags &#160; &#160; if [...]
Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/ahnliche-artikel-anzeigen-ohne-plugin-wordpress/' rel='bookmark' title='Ähnliche Artikel anzeigen ohne Plugin (WordPress)'>Ähnliche Artikel anzeigen ohne Plugin (WordPress)</a></li>
<li><a href='http://romanharcke.de/wordpress-loop-er-stellt-sich-ausfuhrlich-vor/' rel='bookmark' title='WordPress Loop – Er stellt sich ausführlich vor!'>WordPress Loop – Er stellt sich ausführlich vor!</a></li>
<li><a href='http://romanharcke.de/facebook-gefallt-mir-button-wordpress/' rel='bookmark' title='FaceBook &#8220;Gefällt mir&#8221; Button für WordPress'>FaceBook &#8220;Gefällt mir&#8221; Button für WordPress</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>WordPress als CMS benötigt etwas Feintuning</h2>
<p><a title="wp-recipes" rel="nofollow" href="http://wprecipes.com" target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="WP_Recipes" src="http://romanharcke.de/wp-content/uploads/2009/07/WP_Recipes.png" border="0" alt="WP_Recipes" width="175" height="208" align="right" /></a>WordPress wird immer häufiger als CMS eingesetzt. Als Admin und Webmaster seines persönlichen Blogs, sollte man nicht übermäßig viele Plugins installieren, da diese meist viel Code schreiben und so die Webseite langsamer laden lassen.<br />
Das wollen wir doch nicht.</p>
<p>Außerdem kann man mit den hier beschriebenen Codes/Hacks aus dem normalen WordPress Theme ein ganz spezielles und personalisiertes Theme erstellen.</p>
<p>Folgende Hacks sind eine persönliche Auswahl der besten Codes von <strong><a href="http://www.wprecipes.com">WpRecipes</a>.</strong></p>
<h2>1. Tags in einem Drop-Down Menü anzeigen lassen</h2>
<p>In eurem Theme Ordner findet ihr eine .php Datei namens “<strong>funktions.php</strong>”. Falls euer WordPress Theme bis jetzt ohne ausgekommen ist, erstellt ihr eine.</p>
<p><strong>In diese Datei kopiert ihr nun einfach folgenden Code:</strong></p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #000000; font-weight: bold;">function</span> dropdown_tag_cloud<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$args</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$defaults</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'smallest'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">8</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'largest'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">22</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'unit'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'pt'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'number'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">45</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'format'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'flat'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'orderby'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'name'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'order'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'ASC'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'exclude'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'include'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$args</span> <span style="color: #339933;">=</span> wp_parse_args<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$args</span><span style="color: #339933;">,</span> <span style="color: #000088;">$defaults</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000088;">$tags</span> <span style="color: #339933;">=</span> get_tags<span style="color: #009900;">&#40;</span> <a href="http://www.php.net/array_merge"><span style="color: #990000;">array_merge</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$args</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'orderby'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'count'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'order'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'DESC'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Always query top tags</span><br />
<br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tags</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000088;">$return</span> <span style="color: #339933;">=</span> dropdown_generate_tag_cloud<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$tags</span><span style="color: #339933;">,</span> <span style="color: #000088;">$args</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Here's where those top tags get sorted according to $args</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_wp_error<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$return</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> apply_filters<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'dropdown_tag_cloud'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$return</span><span style="color: #339933;">,</span> <span style="color: #000088;">$args</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> dropdown_generate_tag_cloud<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$tags</span><span style="color: #339933;">,</span> <span style="color: #000088;">$args</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wp_rewrite</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$defaults</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'smallest'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">8</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'largest'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">22</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'unit'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'pt'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'number'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">45</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'format'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'flat'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'orderby'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'name'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'order'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'ASC'</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$args</span> <span style="color: #339933;">=</span> wp_parse_args<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$args</span><span style="color: #339933;">,</span> <span style="color: #000088;">$defaults</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <a href="http://www.php.net/extract"><span style="color: #990000;">extract</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$args</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #000088;">$tags</span> <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$counts</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$tag_links</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$tags</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$tag</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$counts</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$tag</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">name</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$tag</span><span style="color: #339933;">-&gt;</span><a href="http://www.php.net/count"><span style="color: #990000;">count</span></a><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$tag_links</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$tag</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">name</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> get_tag_link<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$tag</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">term_id</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_wp_error<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$tag_links</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$tag</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">name</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$tag_links</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$tag</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">name</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$tag_ids</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$tag</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">name</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$tag</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">term_id</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000088;">$min_count</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/min"><span style="color: #990000;">min</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$counts</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$spread</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/max"><span style="color: #990000;">max</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$counts</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #000088;">$min_count</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$spread</span> <span style="color: #339933;">&lt;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$spread</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$font_spread</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$largest</span> <span style="color: #339933;">-</span> <span style="color: #000088;">$smallest</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$font_spread</span> <span style="color: #339933;">&lt;=</span> <span style="color: #cc66cc;">0</span> <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$font_spread</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$font_step</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$font_spread</span> <span style="color: #339933;">/</span> <span style="color: #000088;">$spread</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// SQL cannot save you; this is a second (potentially different) sort on a subset of data.</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'name'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$orderby</span> <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/uksort"><span style="color: #990000;">uksort</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$counts</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'strnatcasecmp'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/asort"><span style="color: #990000;">asort</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$counts</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'DESC'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$order</span> <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$counts</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array_reverse"><span style="color: #990000;">array_reverse</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$counts</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000088;">$a</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000088;">$rel</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span> <a href="http://www.php.net/is_object"><span style="color: #990000;">is_object</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$wp_rewrite</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$wp_rewrite</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">using_permalinks</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> ? <span style="color: #0000ff;">' rel=&quot;tag&quot;'</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$counts</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$tag</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$count</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$tag_id</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$tag_ids</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$tag</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$tag_link</span> <span style="color: #339933;">=</span> clean_url<span style="color: #009900;">&#40;</span><span style="color: #000088;">$tag_links</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$tag</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$tag</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><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> wp_specialchars<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$tag</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$a</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&lt;option value='<span style="color: #006699; font-weight: bold;">$tag_link</span>'&gt;<span style="color: #006699; font-weight: bold;">$tag</span> (<span style="color: #006699; font-weight: bold;">$count</span>)&lt;/option&gt;&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #b1b100;">switch</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$format</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'array'</span> <span style="color: #339933;">:</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$return</span> <span style="color: #339933;">=&amp;</span> <span style="color: #000088;">$a</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'list'</span> <span style="color: #339933;">:</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$return</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&lt;ul class='wp-tag-cloud'&gt;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\t</span>&lt;li&gt;&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$return</span> <span style="color: #339933;">.=</span> <a href="http://www.php.net/join"><span style="color: #990000;">join</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&lt;/li&gt;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\t</span>&lt;li&gt;&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$a</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$return</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&lt;/li&gt;<span style="color: #000099; font-weight: bold;">\n</span>&lt;/ul&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">default</span> <span style="color: #339933;">:</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$return</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/join"><span style="color: #990000;">join</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$a</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">endswitch</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> apply_filters<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'dropdown_generate_tag_cloud'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$return</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tags</span><span style="color: #339933;">,</span> <span style="color: #000088;">$args</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>Nun öffnet ihr die Datei in der das <strong>Drop-Down Menü</strong> erscheinen soll. Vielleicht in eurer Sidebar?</p>
<p>In die jeweilige Datei fügt ihr folgenden Code ein:</p>
<div class="codecolorer-container html4strict dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/select.html"><span style="color: #000000; font-weight: bold;">select</span></a> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tag-dropdown&quot;</span> <span style="color: #000066;">onchange</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;document.location.href=this.options[this.selectedIndex].value;&quot;</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/option.html"><span style="color: #000000; font-weight: bold;">option</span></a> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Tags<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/option.html"><span style="color: #000000; font-weight: bold;">option</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;?php dropdown_tag_cloud<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'number=0&amp;order=asc'</span><span style="color: #66cc66;">&#41;</span>; ?&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/select.html"><span style="color: #000000; font-weight: bold;">select</span></a>&gt;</span></div></div>
<h2>2. Deine neusten Notizen abrufen lassen</h2>
<p>Folgenden Code vor den Loop einfügen. Dieser Code wird die letzten 5 Notizen aufrufen. Die Menge der abzurufenden Notizen kann durch die Zahl im Code bestimmt werden.</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$sticky</span> <span style="color: #339933;">=</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sticky_posts'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <a href="http://www.php.net/rsort"><span style="color: #990000;">rsort</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$sticky</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$sticky</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array_slice"><span style="color: #990000;">array_slice</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$sticky</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; query_posts<span style="color: #009900;">&#40;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'post__in'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$sticky</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'caller_get_posts'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<h2>3. Automatisch weiteren Inhalt in die Feeds integrieren</h2>
<p>In euren Theme Ordner findet sich die &#8220;<strong>functions.php</strong>&#8221; Falls nicht erstellt ihr einfach eine.<br />
In diese Datei fügt ihr folgenden Code ein.<br />
Dieser wird automatisch alle weiteren Inhalte nach eurem Beitrag mit in den Feed einfügen.<br />
Also etwas wie &#8220;ähnliche Artikel&#8221; oder &#8220;Informationen über den Autor&#8221;, oder eure AdSense Werbung, &#8230;</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> insertFootNote<span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>is_feed<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_home<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$content</span><span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&lt;h4&gt;Enjoyed this article?&lt;/h4&gt;&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$content</span><span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&lt;p&gt;Subscribe to our &lt;a href='#'&gt;RSS feed&lt;/a&gt;&lt;/p&gt;&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$content</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
add_filter <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_content'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'insertFootNote'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<h2>4. Die meist kommentierten Artikel auflisten</h2>
<p>Den folgenden Code einfach an der Stelle einfügen, wo ihr eure meist kommentierten Artikel anzeigen lassen wollt. Vielleicht in der Sidebar (sidebar.php)?<br />
Um die Anzahl der gezeigten Artikel zu ändern, einfach die &#8220;5&#8243; in Zeile drei gegen die gewünschte austauschen.</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;h2&gt;Meist kommentierte Artikel:&lt;/h2&gt;<br />
&lt;ul&gt;<br />
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_results</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT comment_count,ID,post_title FROM <span style="color: #006699; font-weight: bold;">$wpdb-&gt;posts</span> ORDER BY comment_count DESC LIMIT 0 , 5&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$post</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
setup_postdata<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$postid</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><br />
<span style="color: #000088;">$title</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_title</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$commentcount</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_count</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$commentcount</span> <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br />
&nbsp; &nbsp; &lt;li&gt;&lt;a title=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$title</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_permalink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$postid</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<br />
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$title</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt; {<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$commentcount</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>}&lt;/li&gt;<br />
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/ul&gt;</div></div>
<h2>5. Meist kommentierten Artikel eines ganzen Jahres anzeigen</h2>
<p>Die meist kommentierten Artikel aus einem bestimmten Jahr anzeigen lassen.<br />
Der Zeitabschnitt kann beliebig angepasst werden. Den Code einfach an der Stelle einfügen, wo ihr den Code angezeigt bekommen wollt.</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;h2&gt;Most commented posts from 2008&lt;/h2&gt;<br />
&lt;ul&gt;<br />
<span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_results</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT comment_count,ID,post_title, post_date FROM <span style="color: #006699; font-weight: bold;">$wpdb-&gt;posts</span> WHERE post_date BETWEEN '2008-01-01' AND '2008-12-31' ORDER BY comment_count DESC LIMIT 0 , 10&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$topten</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$postid</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$topten</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$title</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$topten</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_title</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$commentcount</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$topten</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_count</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$commentcount</span> <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">?&gt;</span><br />
&nbsp; &nbsp; &lt;li&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_permalink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$postid</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> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$title</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/li&gt;<br />
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/ul&gt;</div></div>
<h2>6. Ähnliche Artikel basierend auf den Tags anzeigen</h2>
<p>Dieser Code wird ähnliche Artikel basieren auf den Artikel Tags anzeigen lassen. Er muss in den Loop integriert werden.</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #666666; font-style: italic;">//for use in the loop, list 5 post titles related to first tag on current post</span><br />
<span style="color: #000088;">$tags</span> <span style="color: #339933;">=</span> wp_get_post_tags<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$tags</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Related Posts'</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$first_tag</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$tags</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">term_id</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$args</span><span style="color: #339933;">=</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; <span style="color: #0000ff;">'tag__in'</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$first_tag</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; <span style="color: #0000ff;">'post__not_in'</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; <span style="color: #0000ff;">'showposts'</span><span style="color: #339933;">=&gt;</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; <span style="color: #0000ff;">'caller_get_posts'</span><span style="color: #339933;">=&gt;</span><span style="color: #cc66cc;">1</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&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: #000088;">$args</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #b1b100;">if</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: #009900;">&#123;</span><br />
&nbsp; &nbsp; <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: #000000; font-weight: bold;">?&gt;</span><br />
<br />
&lt;a title=&quot;Permanent Link to <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; rel=&quot;bookmark&quot; 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;&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;<br />
<br />
&nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<h2>7. Die Zahl der Suchergebnisse anzeigen</h2>
<p>Öffnet die &#8220;search.php&#8221; und integriert folgenden Code:</p>
<div class="codecolorer-container html4strict dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h2.html"><span style="color: #000000; font-weight: bold;">h2</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;pagetitle&quot;</span>&gt;</span>Search Results for <span style="color: #009900;">&lt;?php <span style="color: #66cc66;">/</span>* Search Count *<span style="color: #66cc66;">/</span> $allsearch <span style="color: #66cc66;">=</span> &amp;new WP_Query<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;s=$s&amp;showposts=-1&quot;</span><span style="color: #66cc66;">&#41;</span>; $key <span style="color: #66cc66;">=</span> wp_specialchars<span style="color: #66cc66;">&#40;</span>$s, <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>; $count <span style="color: #66cc66;">=</span> $allsearch-&gt;</span>post_count; _e(''); _e('<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;search-terms&quot;</span>&gt;</span>'); echo $key; _e('<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a>&gt;</span>'); _e(' — '); echo $count . ' '; _e('articles'); wp_reset_query(); ?&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h2.html"><span style="color: #000000; font-weight: bold;">h2</span></a>&gt;</span></div></div>
<h2>8. Die Seitenzahl der Kommentare im &#8220;Title Tag&#8221; anzeigen</h2>
<p>Die &#8220;header.php&#8221; öffnen und folgenden Code zwischen das &#8220;Title Tag&#8221; einfügen.</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><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;">$cpage</span> <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">2</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><br />
<span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' - comment page '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">echo</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$cpage</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<h2>9. Die zukünftig veröffentlichten Artikel anzeigen</h2>
<p>Um den Lesern einen kleinen Einblick über kommende Überschriften zu ermöglichen, kopiere folgenden Code und füge ihn an gewünschter Stelle ein.</p>
<div class="codecolorer-container html4strict dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Zukünftige Artikel:<br />
<br />
&nbsp;<span style="color: #009900;">&lt;?php query_posts<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'showposts=10&amp;post_status=future'</span><span style="color: #66cc66;">&#41;</span>; ?&gt;</span><br />
&nbsp;<span style="color: #009900;">&lt;?php if <span style="color: #66cc66;">&#40;</span> have_posts<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> : while <span style="color: #66cc66;">&#40;</span> have_posts<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> : the_post<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; ?&gt;</span><br />
<br />
<span style="color: #009900;">&lt;?php the_title<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; ?&gt;</span> <span style="color: #009900;">&lt;?php the_time<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'j. F Y'</span><span style="color: #66cc66;">&#41;</span>; ?&gt;</span><br />
<br />
&nbsp;<span style="color: #009900;">&lt;?php endwhile; else: ?&gt;</span><br />
<br />
Keine zukünftigen Artikel gespeichert.<br />
<br />
<span style="color: #009900;">&lt;?php endif; ?&gt;</span></div></div>
<h2>10. Artikel zufällig anordnen</h2>
<p>Artikel zufällig anzuordnen hat zum Beispiel Vorteile um ältere Artikel nicht untergehen zu lassen.<br />
Den Code einfach vor den Loop einfügen.</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">query_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'orderby=rand'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">//the Loop here...</span></div></div>
<h2>11. Zählt die Wörter eines Artikels und zeigt sie an</h2>
<p>Öffne &#8220;single.php&#8221; und integriere den Code wo dieser angezeigt werden soll.</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000000; font-weight: bold;">function</span> count_words<span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000088;">$words</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000088;">$str</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/eregi_replace"><span style="color: #990000;">eregi_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; +&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$str</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000088;">$array</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$str</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">&lt;</span> <a href="http://www.php.net/count"><span style="color: #990000;">count</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$array</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><br />
&nbsp;<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/eregi"><span style="color: #990000;">eregi</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;[0-9A-Za-zÀ-ÖØ-öø-ÿ]&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$array</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$words</span><span style="color: #339933;">++;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">return</span> <span style="color: #000088;">$words</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span><br />
<br />
&nbsp;Wortzahl: <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> count_words<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<h2>12. Wortzähler für WordPress</h2>
<p>Hier noch eine weitere Möglichkeit einen Wortzähler in den Blog zu integrieren.<br />
In eurer &#8220;functions.php&#8221; fügt ihr diesen Code hinzu:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000000; font-weight: bold;">function</span> wcount<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <a href="http://www.php.net/ob_start"><span style="color: #990000;">ob_start</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/ob_get_clean"><span style="color: #990000;">ob_get_clean</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> <a href="http://www.php.net/sizeof"><span style="color: #990000;">sizeof</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>Um an gewünschter Stelle die gezählten Wörter eures Artikels anzuzeigen, kopiert in der jeweiligen Datei diesen Code:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> wcount<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></div></div>
<h2>13. Kategorien von der Suche ausschließen</h2>
<p>In &#8220;search.php&#8221; eures Themes folgenden Code vor den Loop einfügen.<br />
Dieser Code wird Kategorien mit den IDs 1,2,3 von der Suche ausschließen.<br />
Natürlich nicht von der Google Suche, sondern der internen WordPress Suche auf eurem Blog.</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> is_search<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> &nbsp;<span style="color: #339933;">:</span><br />
<span style="color: #000088;">$paged</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>get_query_var<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'paged'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> ? get_query_var<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'paged'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span><br />
query_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;s=<span style="color: #006699; font-weight: bold;">$s</span>&amp;paged=<span style="color: #006699; font-weight: bold;">$paged</span>&amp;cat=-1,-2,-3&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br />
<br />
//the Loop here...</div></div>
<h2>14. Bestimmte Kategorien aus dem RSS Feed ausschließen</h2>
<p>Die &#8220;functions.php&#8221; eures Themes öffnen. Falls sie nicht existiert, dann erstellt eine.<br />
Dieser Code schließt bestimmt Kategorien aus. Kopiert ihr einfach in die &#8220;functions.php&#8221;. Um eine bestimmte Kategorie auszuschließen benötigt ihr ihre ID.</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000000; font-weight: bold;">function</span> myFilter<span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">is_feed</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cat'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'-5'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//Don't forget to change the category ID =^o^=</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$query</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pre_get_posts'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'myFilter'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<h2>15. Die Zahl eurer Twitter Follower anzeigen lassen</h2>
<p>Diesen Code einfach irgendwo in eurem WordPress Blog integrieren, er wird an der Stelle die Zahl eurer Follower anzeigen.<br />
In der letzten Zeile des Codes müsst ihr noch die &#8220;YourUserID&#8221; durch eure ersetzen.</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000000; font-weight: bold;">function</span> string_getInsertedString<span style="color: #009900;">&#40;</span><span style="color: #000088;">$long_string</span><span style="color: #339933;">,</span><span style="color: #000088;">$short_string</span><span style="color: #339933;">,</span><span style="color: #000088;">$is_html</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;">&#123;</span><br />
&nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$short_string</span><span style="color: #339933;">&gt;=</span><a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$long_string</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$insertion_length</span><span style="color: #339933;">=</span><a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$long_string</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$short_string</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span><a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$short_string</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;++</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$long_string</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">!=</span><span style="color: #000088;">$short_string</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #b1b100;">break</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #000088;">$inserted_string</span><span style="color: #339933;">=</span><a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$long_string</span><span style="color: #339933;">,</span><span style="color: #000088;">$i</span><span style="color: #339933;">,</span><span style="color: #000088;">$insertion_length</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$is_html</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$inserted_string</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$insertion_length</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'&lt;'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$inserted_string</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'&lt;'</span><span style="color: #339933;">.</span><a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$inserted_string</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #000088;">$insertion_length</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$inserted_string</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> DOMElement_getOuterHTML<span style="color: #009900;">&#40;</span><span style="color: #000088;">$document</span><span style="color: #339933;">,</span><span style="color: #000088;">$element</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #000088;">$html</span><span style="color: #339933;">=</span><span style="color: #000088;">$document</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">saveHTML</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$element</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">parentNode</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">removeChild</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$element</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$html2</span><span style="color: #339933;">=</span><span style="color: #000088;">$document</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">saveHTML</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #b1b100;">return</span> string_getInsertedString<span style="color: #009900;">&#40;</span><span style="color: #000088;">$html</span><span style="color: #339933;">,</span><span style="color: #000088;">$html2</span><span style="color: #339933;">,</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> getFollowers<span style="color: #009900;">&#40;</span><span style="color: #000088;">$username</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #000088;">$x</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/file_get_contents"><span style="color: #990000;">file_get_contents</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;http://twitter.com/&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$username</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$doc</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> DomDocument<span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #339933;">@</span><span style="color: #000088;">$doc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">loadHTML</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$ele</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$doc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'follower_count'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$innerHTML</span><span style="color: #339933;">=</span><a href="http://www.php.net/preg_replace"><span style="color: #990000;">preg_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/^&lt; [^&gt;]*&gt;(.*)&lt; [^&gt;]*&gt;$/'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\\</span>1&quot;</span><span style="color: #339933;">,</span>DOMElement_getOuterHTML<span style="color: #009900;">&#40;</span><span style="color: #000088;">$doc</span><span style="color: #339933;">,</span><span style="color: #000088;">$ele</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$innerHTML</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> getFollowers<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;YourUserID&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; followers&quot;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br />
&lt;/strlen&gt;</div></div>
<h2>16. Den letzten Twitter Eintrag auf eurem Blog anzeigen</h2>
<p>Einfach den Code an gewünschter Stelle einfügen. Vielleicht in der Sidebar.php?<br />
Den &#8220;TwitterUsername&#8221; müsst ihr natürlich noch durch euren ersetzen.</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<br />
<span style="color: #000088;">$username</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;TwitterUsername&quot;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$prefix</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&lt;h2&gt;Mein letzter Tweet:&quot;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$suffix</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$feed</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;http://search.twitter.com/search.atom?q=from:&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$username</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&amp;rpp=1&quot;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> parse_feed<span style="color: #009900;">&#40;</span><span style="color: #000088;">$feed</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$stepOne</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&lt;content type=<span style="color: #000099; font-weight: bold;">\&quot;</span>html<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$feed</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$stepTwo</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&lt;/content&gt;&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$stepOne</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$tweet</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$stepTwo</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$tweet</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&lt; &quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&lt; &quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tweet</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$tweet</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&gt;&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&gt;&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tweet</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$tweet</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000088;">$twitterFeed</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/file_get_contents"><span style="color: #990000;">file_get_contents</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$feed</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">echo</span> <a href="http://www.php.net/stripslashes"><span style="color: #990000;">stripslashes</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$prefix</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> parse_feed<span style="color: #009900;">&#40;</span><span style="color: #000088;">$twitterFeed</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <a href="http://www.php.net/stripslashes"><span style="color: #990000;">stripslashes</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$suffix</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<h2>17. Social Buttons im Blog einfügen</h2>
<p><strong>Facebook Button</strong></p>
<div class="codecolorer-container html4strict dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.facebook.com/sharer.php?u=&lt;?php the_permalink();?&gt;</span></span><span style="color: #ddbb00;">&amp;t=&lt;?php the_title();</span> ?&gt;&quot;&gt;Share on Facebook<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span></div></div>
<p><strong>Digg it!</strong></p>
<div class="codecolorer-container html4strict dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.digg.com/submit?phase=2&amp;url=&lt;?php the_permalink();?&gt;</span></span>&quot;&gt;Digg It<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span></div></div>
<p><strong>Stumbleupon</strong></p>
<div class="codecolorer-container html4strict dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.stumbleupon.com/submit?url=&lt;?php the_permalink(); ?&gt;</span></span><span style="color: #ddbb00;">&amp;title=&lt;?php the_title();</span> ?&gt;&quot;&gt;Stumble upon it<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span></div></div>
<p><strong>Zu Del.ici.ous hinzufügen</strong></p>
<div class="codecolorer-container html4strict dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://delicious.com/post?url=&lt;?php the_permalink();?&gt;</span></span><span style="color: #ddbb00;">&amp;title=&lt;?php the_title();</span>?&gt;&quot;&gt;Add to delicious<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span></div></div>
<p><strong>Technorati</strong></p>
<div class="codecolorer-container html4strict dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://technorati.com/faves?sub=addfavbtn&amp;add=&lt;?php the_permalink();?&gt;</span></span>&quot;&gt;Share on technorati<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span></div></div>
<p><strong>Twitter</strong></p>
<div class="codecolorer-container html4strict dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://twitter.com/home?status=Currently reading &lt;?php the_permalink(); ?&gt;</span></span>&quot;&gt;Tweet this<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span></div></div>
<h2>18. Eine LogIn Box für den WordPress Blog</h2>
<p>Wenn man WordPress als CMS benutzt und sich mehrere Benutzer anmelden wollen, ist es oft sehr sinnvoll eine LogIn Box zu erstellen.<br />
Hier der Code für eine Login Box zum Beispiel in der Sidebar oder im Header, oder einfach auf einer extra Login Seite &#8230;</p>
<p>Den folgenden Code einfach kopieren und an der Stelle einfügen, wo eure Loginbox erscheinen soll.<br />
Dann müsst ihr noch in der letzten Zeile eure URL hinzufügen.</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #009900;">&#40;</span>current_user_can<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'level_0'</span><span style="color: #009900;">&#41;</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><br />
&lt;h2&gt;Login&lt;/h2&gt;<br />
&lt;form action=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'home'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/wp-login.php&quot; method=&quot;post&quot;&gt;<br />
&lt;input type=&quot;text&quot; name=&quot;log&quot; id=&quot;log&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> wp_specialchars<span style="color: #009900;">&#40;</span><a href="http://www.php.net/stripslashes"><span style="color: #990000;">stripslashes</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$user_login</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> ?<span style="color: #339933;">/&gt;</span><span style="color: #0000ff;">&quot; size=&quot;</span><span style="color: #cc66cc;">20</span><span style="color: #0000ff;">&quot; /&gt;<br />
&lt;input type=&quot;</span>password<span style="color: #0000ff;">&quot; name=&quot;</span>pwd<span style="color: #0000ff;">&quot; id=&quot;</span>pwd<span style="color: #0000ff;">&quot; size=&quot;</span><span style="color: #cc66cc;">20</span><span style="color: #0000ff;">&quot; /&gt;<br />
&lt;input type=&quot;</span>submit<span style="color: #0000ff;">&quot; name=&quot;</span>submit<span style="color: #0000ff;">&quot; value=&quot;</span>Send<span style="color: #0000ff;">&quot; class=&quot;</span>button<span style="color: #0000ff;">&quot; /&gt;<br />
&nbsp; &nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp;&lt;label for=&quot;</span>rememberme<span style="color: #0000ff;">&quot;&gt;&lt;input name=&quot;</span>rememberme<span style="color: #0000ff;">&quot; id=&quot;</span>rememberme<span style="color: #0000ff;">&quot; type=&quot;</span>checkbox<span style="color: #0000ff;">&quot; checked=&quot;</span>checked<span style="color: #0000ff;">&quot; value=&quot;</span>forever<span style="color: #0000ff;">&quot; /&gt; Remember me&lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp;&lt;input type=&quot;</span>hidden<span style="color: #0000ff;">&quot; name=&quot;</span>redirect_to<span style="color: #0000ff;">&quot; value=&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> ?<span style="color: #339933;">/&gt;</span><span style="color: #0000ff;">&quot; /&gt;<br />
&nbsp; &nbsp; &lt;/p&gt;<br />
&lt;/form&gt;<br />
&lt;a href=&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'home'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/wp-login.php?action=lostpassword&quot;&gt;Recover password&lt;/a&gt;<br />
<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><br />
&lt;h2&gt;Logout&lt;/h2&gt;<br />
&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> wp_logout_url<span style="color: #009900;">&#40;</span><a href="http://www.php.net/urlencode"><span style="color: #990000;">urlencode</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</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>&quot;&gt;logout&lt;/a&gt;&lt;br /&gt;<br />
&lt;a href=&quot;http://XXX/wp-admin/&quot;&gt;admin&lt;/a&gt;<br />
<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></div></div>
<h2>P.S.:</h2>
<p>Hmm, sind doch nur 18. Codes geworden, weil zwei von denen komisch angezeigt wurden.<br />
Hier noch die Links zu den Codes die ich nicht einfügen konnte (Warum auch immer):</p>
<p> -> <a href="http://www.wprecipes.com/how-to-enlight-searched-text-in-search-results" title="Suchtext hervorheben">Den gesuchten Text von Suchmaschinen im Artikel hervorheben</a></p>
<p>-> <a href="http://www.wprecipes.com/how-to-wish-your-reader-a-merry-christmas" title="Willkommensmeldung WordPress">Willkommensmeldung zu einem bestimmten Datum anzeigen</a></p>
<p><strong>Wünsche viel Spaß beim Coden <img src='http://romanharcke.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </strong><em></p>
<p></em></p>
<p>Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/ahnliche-artikel-anzeigen-ohne-plugin-wordpress/' rel='bookmark' title='Ähnliche Artikel anzeigen ohne Plugin (WordPress)'>Ähnliche Artikel anzeigen ohne Plugin (WordPress)</a></li>
<li><a href='http://romanharcke.de/wordpress-loop-er-stellt-sich-ausfuhrlich-vor/' rel='bookmark' title='WordPress Loop – Er stellt sich ausführlich vor!'>WordPress Loop – Er stellt sich ausführlich vor!</a></li>
<li><a href='http://romanharcke.de/facebook-gefallt-mir-button-wordpress/' rel='bookmark' title='FaceBook &#8220;Gefällt mir&#8221; Button für WordPress'>FaceBook &#8220;Gefällt mir&#8221; Button für WordPress</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://romanharcke.de/20-wordpress-hacks/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WP [wp-Remix] &#8211; Im Menü Kategorien statt Seiten anzeigen</title>
		<link>http://romanharcke.de/wordpress-wp-remix-menu-kategorien-statt-seiten/</link>
		<comments>http://romanharcke.de/wordpress-wp-remix-menu-kategorien-statt-seiten/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 11:14:03 +0000</pubDate>
		<dc:creator>Roman</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[aktuelle kategorie anzeigen wordpress]]></category>
		<category><![CDATA[Anleitung]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[column menu]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[header.php]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Kategorie]]></category>
		<category><![CDATA[Menüleiste]]></category>
		<category><![CDATA[remix seite]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[wordpress kategorie ins menü]]></category>
		<category><![CDATA[wordpress kategorien als menü]]></category>
		<category><![CDATA[wordpress kategorien in menü]]></category>
		<category><![CDATA[wordpress kategorien menü]]></category>
		<category><![CDATA[wpremix3]]></category>

		<guid isPermaLink="false">http://romanharcke.de/?p=155</guid>
		<description><![CDATA[Um im aktuellen WordPress Theme Remix 3.0 die Archivseiten der jeweiligen Kategorien im Menü anzeigen zu können, müsst ihr die header.php Datei modifizieren. Welche header.php Datei benutze ich? Um in WP Remix 3.0 zu sehen welche header.php Datei ihr benutzt, schaut einfach im Dashboard unter &#8220;Seiten&#8221; und &#8220;Bearbeiten&#8221; im Editor die einzelnen Seiten an. Dort steht unter &#8220;Remix &#8211; Add Template File&#8221; der aktuell verwendete header für diese Seite. Es gibt vier verschiedene Header zur Auswahl ( &#8220;header&#8221;, &#8220;header1&#8243;, &#8220;header2&#8243;, &#8220;header3&#8243; ). Merkt euch also die genaue Bezeichnung, um den entsprechenden im nächsten Schritt wiederzufinden. Runterladen der header.php Leider kann man in WP Remix 3.0 nicht unter &#8220;Darstellung&#8221; >> &#8220;Editor&#8221; auf die header.php zugreifen, also muss sie lokal auf dem Computer gespeichert werden. Die geschieht einfach über euer FTP-Programm. Die verschiedenen header.php Dateien befinden sich in folgendem Verzeichnis: /wp-content/themes/wpremix3/includes/header Speichert die entsprechende Datei also auf dem Desktop. Modifizieren der header.php um statt der Seiten, die Kategorien im Menü anzuzeigen Öffnet die header.php Datei mit einem Programm wie Adobe Dreamweaver (Testversion hier downloaden), vermeidet die Benutzung vom Windows &#8220;Editor&#8221; oder sonstigem, da dieser beim Speichern die Formatierung der Datei beschädigen könnte. Scrollt in der header.php nach ganz unten, dort findet sich [...]
Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/wordpress-menu-seiten-kategorien/' rel='bookmark' title='WordPress Menü &#8211; Seiten und Kategorien gleichzeitig'>WordPress Menü &#8211; Seiten und Kategorien gleichzeitig</a></li>
<li><a href='http://romanharcke.de/wp-remix-search-box-und-rss-feed-in-menu/' rel='bookmark' title='WP Remix &#8211; Search Box und RSS Feed in Menü'>WP Remix &#8211; Search Box und RSS Feed in Menü</a></li>
<li><a href='http://romanharcke.de/wordpress-lange-des-auszugs-andern/' rel='bookmark' title='WordPress &#8211; Länge des Auszugs ändern'>WordPress &#8211; Länge des Auszugs ändern</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Um im aktuellen WordPress Theme Remix 3.0 die Archivseiten der jeweiligen Kategorien im Menü anzeigen zu können, müsst ihr die header.php Datei modifizieren.</p>
<p>
<h2>Welche header.php Datei benutze ich?</h2>
</p>
</p>
<p>Um in WP Remix 3.0 zu sehen welche header.php Datei ihr benutzt, schaut einfach im Dashboard unter &#8220;Seiten&#8221; und &#8220;Bearbeiten&#8221; im Editor die einzelnen Seiten an. Dort steht unter &#8220;Remix &#8211; Add Template File&#8221; der aktuell verwendete header für diese Seite.<br />
Es gibt vier verschiedene Header zur Auswahl ( &#8220;header&#8221;, &#8220;header1&#8243;, &#8220;header2&#8243;, &#8220;header3&#8243; ).<br />
Merkt euch also die genaue Bezeichnung, um den entsprechenden im nächsten Schritt wiederzufinden.</p>
</p>
<p>
<h2>Runterladen der header.php</h2>
</p>
</p>
<p>Leider kann man in WP Remix 3.0 <em>nicht</em> unter &#8220;Darstellung&#8221; >> &#8220;Editor&#8221; auf die header.php zugreifen, also muss sie lokal auf dem Computer gespeichert werden.<br />
Die geschieht einfach über euer FTP-Programm. Die verschiedenen header.php Dateien befinden sich in folgendem Verzeichnis:</p>
<blockquote><p>/wp-content/themes/wpremix3/includes/header</p></blockquote>
<p>Speichert die entsprechende Datei also auf dem Desktop.</p>
</p>
<p>
<h2>Modifizieren der header.php um statt der Seiten, die Kategorien im Menü anzuzeigen</h2>
</p>
<p>Öffnet die header.php Datei mit einem Programm wie Adobe Dreamweaver <a title="Download Adobe Dreamweaver" href="http://adobe-dreamweaver.softonic.de/">(Testversion hier downloaden)</a>, vermeidet die Benutzung vom Windows &#8220;Editor&#8221; oder sonstigem, da dieser beim Speichern die Formatierung der Datei beschädigen könnte.</p>
</p>
<p>Scrollt in der header.php nach ganz unten, dort findet sich folgender Eintrag:</p>
</p>
<p><div class="codecolorer-container html4strict dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;nav&quot;</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;navmenu-h&quot;</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;?php </span><br />
<span style="color: #009900;">&nbsp; &nbsp; &nbsp; &nbsp; wp_list_pages<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'sort_column=menu_order&amp;title_li='</span><span style="color: #66cc66;">&#41;</span>;</span><br />
<span style="color: #009900;">&nbsp; &nbsp; &nbsp; &nbsp; ?&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;rss&quot;</span>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php bloginfo('rss2_url'); ?&gt;</span></span>&quot;&gt;RSS FEED<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span></div></div>
</p>
<p>Die für uns wichtige Zeile ist:</p>
<div class="codecolorer-container html4strict dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">wp_list_pages('sort_column=menu_order<span style="color: #ddbb00;">&amp;title_li=');</span></div></div>
</p>
<p>Diese wird durch folgende ersetzt:</p>
<div class="codecolorer-container html4strict dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">wp_list_categories('title_li=');</div></div>
</p>
<p>Die Datei kann nun gespeichert und wieder in &#8220;<em>/wp-content/themes/wpremix3/includes/header&#8221; </em>hochgeladen werden. Die alte Datei vielleicht vorher sichern, bevor ihr sie überschreibt.</p>
</p>
<p>Nun sortiert die header.php nicht mehr die Seiten eures WordPress Blogs, sondern zeigt eure Kategorien im Menü an.</p></p>
<p>Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/wordpress-menu-seiten-kategorien/' rel='bookmark' title='WordPress Menü &#8211; Seiten und Kategorien gleichzeitig'>WordPress Menü &#8211; Seiten und Kategorien gleichzeitig</a></li>
<li><a href='http://romanharcke.de/wp-remix-search-box-und-rss-feed-in-menu/' rel='bookmark' title='WP Remix &#8211; Search Box und RSS Feed in Menü'>WP Remix &#8211; Search Box und RSS Feed in Menü</a></li>
<li><a href='http://romanharcke.de/wordpress-lange-des-auszugs-andern/' rel='bookmark' title='WordPress &#8211; Länge des Auszugs ändern'>WordPress &#8211; Länge des Auszugs ändern</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://romanharcke.de/wordpress-wp-remix-menu-kategorien-statt-seiten/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WordPress Blog erstellen und ins Rollen bringen</title>
		<link>http://romanharcke.de/wordpress-blog-erstellen-und-ins-rollen-bringen/</link>
		<comments>http://romanharcke.de/wordpress-blog-erstellen-und-ins-rollen-bringen/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 20:40:07 +0000</pubDate>
		<dc:creator>Roman</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Anleitung]]></category>
		<category><![CDATA[artikel]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[themen]]></category>

		<guid isPermaLink="false">http://romanharcke.de/?p=105</guid>
		<description><![CDATA[Der Zweck dieses Artikels ist, drei unterschiedliche Weisen zu umreißen, einen WordPress Blog zu erstellen und aktiv zu halten. WordPress ist eine freie Blogging-Software mit vielen Möglichkeiten und wird von einer großen Community von Benutzern und Entwicklern unterstützt. Ein &#8220;Blog&#8221; wird vom Begriff „Weblog“ (Netzprotokoll) abgekürzt, das eine Form von Onlinetagebuch oder Journal ist. Seit ihrem Beginn vor ein paar Jahren, haben Blogs zahlreiche Verwendungen gefunden. Um nur mal ein paar zu nennen: - Leute, die ihre Gedanken und Aktivitäten online stellen - Autoren, die Aktualisierungen über ihre Interessen und Leidenschaft geben - Leute, die mit Freunden über längere Distanz auf den neuesten Stand bleiben wollen - Berufs-Blogger, die bestimmte Nischenprodukte vorstellen und aktualisieren - internationale Körperschaften (MNC) wie Microsoft &#38; General Motors benutzen Blogs als Vertriebswerkzeug Wie eine Webseite hat ein Blog globale Reichweite. Allerdings ist es weit billiger, schneller und zweifellos leichter, ein Blog zu erhalten, als eine traditionelle Webseite. Der Inhalt eines Blog kann leicht aktualisiert werden, indem man kurze oder lange Artikel (üblicherweise als Blog-Posts bekannt) durch eine benutzerfreundliche graphische Schnittstelle einreicht. Da der Inhalt eines Blog regelmäßig aktualisiert wird, ziehen sie natürlich beide Arten von Besuchern auf sich &#8211; menschliche Leser, ebenso wie auf frischen [...]
Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/dofollow-wordpress-plugin/' rel='bookmark' title='DoFollow in WordPress ohne Plugin'>DoFollow in WordPress ohne Plugin</a></li>
<li><a href='http://romanharcke.de/wordpress-lokal-installieren-xampp/' rel='bookmark' title='WordPress lokal installieren &#8211; XAMPP'>WordPress lokal installieren &#8211; XAMPP</a></li>
<li><a href='http://romanharcke.de/interessante-wordpress-funktionen-fur-die-functions-php/' rel='bookmark' title='Interessante WordPress Funktionen für die functions.php'>Interessante WordPress Funktionen für die functions.php</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Der Zweck dieses Artikels ist, drei unterschiedliche Weisen zu umreißen, einen WordPress Blog zu erstellen und aktiv zu halten. WordPress ist eine freie Blogging-Software mit vielen Möglichkeiten und wird von einer großen Community von Benutzern und Entwicklern unterstützt.</p>
<p>Ein &#8220;Blog&#8221; wird vom Begriff „Weblog“ (Netzprotokoll) abgekürzt, das eine Form von Onlinetagebuch oder Journal ist.</p>
<p>Seit ihrem Beginn vor ein paar Jahren, haben Blogs zahlreiche Verwendungen gefunden.<br />
Um nur mal ein paar zu nennen:</p>
<p>- Leute, die ihre Gedanken und Aktivitäten online stellen<br />
- Autoren, die Aktualisierungen über ihre Interessen und Leidenschaft geben<br />
- Leute, die mit Freunden über längere Distanz auf den neuesten Stand bleiben wollen<br />
- Berufs-Blogger, die bestimmte Nischenprodukte vorstellen und aktualisieren<br />
- internationale Körperschaften (MNC) wie Microsoft &amp; General Motors benutzen Blogs als Vertriebswerkzeug<br />
Wie eine Webseite hat ein Blog globale Reichweite. Allerdings ist es weit billiger, schneller und zweifellos leichter, ein Blog zu erhalten, als eine traditionelle Webseite. Der Inhalt eines Blog kann leicht aktualisiert werden, indem man kurze oder lange Artikel (üblicherweise als Blog-Posts bekannt) durch eine benutzerfreundliche graphische Schnittstelle einreicht. Da der Inhalt eines Blog regelmäßig aktualisiert wird, ziehen sie natürlich beide Arten von Besuchern auf sich &#8211; menschliche Leser, ebenso wie auf frischen Inhalt hungrige Suchmaschinen an.</p>
<p>Um ein Blog einzurichten, benötigen wir eine Art von Blogging-Software oder Plattform. Es gibt freie Software wie <strong>Blogger</strong> und <strong>WordPress</strong> und kostenpflichtige Plattformen wie <strong>Moveable Type</strong> und <strong>Typepad</strong> gezahlt.</p>
<p><strong>Blogger</strong> ist im Besitz von Google. Es ist frei und vielleicht der leichteste Weg, einen Blog zu erstellen, und eure erste Seite steht innerhalb weniger Minuten! Allerdings sind die Funktionen etwas beschränkt.</p>
<p>Damit ist WordPress eine gute Alternative wenn ihr nach kostenloser Blogging-Software sucht. Da es eine „Open Source Software“ ist, wird es folglich von einer riesigen Gemeinschaft von Benutzern und Entwicklern gestützt, die sowohl neuen als auch erfahrenen Bloggern hilft. WordPress ist nicht nur Feature reich &#8211; es stützt Kategorien, Seiten und Trackbacks, um nur ein paar zu nennen. Darüberhinaus wird es immer wieder durch seine Kernsoftware (Core Sotfware) aktualisiert, ebenso wie durch Plugins die Bonus-Software-Bausteine sind, die die basische Funktionalität von WordPress erweitern. Besucht für mehr Information <a href="http://wordpress.org/">WordPress.org</a>.</p>
<p><strong>Hier sind 3 unterschiedliche Weisen, einen WordPress Blog einzurichten und zum laufen zu bringen:</strong></p>
<p>1) Über WordPress.com</p>
<p>2) Über WordPress.org</p>
<p>3) Über CPANELs Fantastico</p>
<p>&nbsp;</p>
<h2>1) ÜBER WORDPRESS.COM</h2>
<p>Wie bei <strong>Blogger</strong> könnt ihr euer <strong>WordPress Blog</strong> und euren ersten Blog-Post innerhalb von Minuten erstellen. Dieser Webseite ist für Leute geeignet, die einen Geschmack von <strong>WordPress.com</strong> bekommen möchten, ohne sich die etwas komlizierte Installation von <strong>WordPress.org</strong> anzutuen <em>(steht im Abschnitt unten)</em>.<br />
Wenn dies die ersten Versuche mit WordPress sind und ihr euren <strong>WordPress Blog</strong> aus den Untiefen der Internetwelt erwecken wollt, solltet ihr WordPress.com auf jeden Fall antesten.</p>
<p>Einen WordPress.com Blog zu erstellen total einfach.<br />
Geht auf <a href="http://wordpress.com/">WordPress.com</a>, klickt die Schaltfläche &#8220;Get a WordPress Blog now &gt;&gt;&#8221; oder etwas ähnliches und folgt einfach den Anweisungen. Und schon habt ihr euren ersten Blog eingerichtet. Dauert alles wirklich nur ein paar Minuten. Eine e-Mail Adresse müsst ihr angeben und einen WordPress.com Login erstellen.</p>
<p>In diesem Fall wird euer WordPress Blog auf WordPress.com völlig frei ausgerichtet werden. Deswegen braucht ihr keinen eigenen Host-Service. Der einzige Nachteil ist, dass es Beschränkungen gibt. Â Ihr könnt keine eigenen Themen oder Plugins installieren.</p>
<h2> </h2>
<h2>2) ÜBER WORDPRESS.ORG</h2>
<p>An Stelle euen Blog auf WordPress.com zu erstellen, könnt ihr WordPress auf eurem eigenen Host-Service oder Webspace installieren. Â Allerdings erfordert die Installation eine MYSQL-Datenbank und euer Server muss mindestens PHP 5 unterstützen. Die grafische Benutzeroberfläche von <strong>WordPress.org</strong> und euer Blog selbst läuft nämlich über PHP. So ist eine hohe Dynamik gegeben.</p>
<p>Um einen <strong>WordPress.org Blog</strong> selbst einzurichten, benötigt es folgende 3 Schritte:</p>
<p><strong>Schritt 1</strong>: Besucht <a href="http://wordpress.org/">WordPress.org</a> und downloadet die kostenlosen WordPress-Installationsdateien. Da die Dateien in einem komprimierten Format sind, lasst euer Entpackungsprogramm (wie Winzip oder Winrar) laufen um die Dateien auf eure Festplatte zu entpacken.<br />
<strong>Schritt 2:</strong> Lasst euer FTP-Programm laufen und programmiert euren FTP-Account entsprechend eurem Webspace. So könnt ihr auf einfache Weise auf die Daten zugreifen. Später benötigt man diesen FTP-Account um WordPress Themes und Plugins für euren Blog hochzuladen. Exportiert dann die WordPress Installationsdateien auf die Domain und erstellt einen Ordner, in dem ihr euren WordPress Blog installieren wollt. Standard ist hier meist „/websites/“Name eurer Domain“/wordpress/“. Eure Domain muss natürlich dann auf den jeweiligen Pfad eurer Installation konfiguriert werden.<br />
<strong>Schritt 3:</strong> Dieser Schritt wird herausfordernd für den Non-Technik-Typ. Wenn Schritt 2 gut überstanden wurde, klappt dieser Schritt jedoch auch.<br />
Ihr loggt euch ins CPANEL eures Webspace Hosts ein und konfiguriert eure MYSQL-Datenbank. Nachdem dies gemacht worden ist, müsst ihr einige Dateien konfigurieren, um eure Installation fertig zu stellen.<br />
Bei vielen Host-Services wird eine komfortable InstallationÂ angeboten. Ich habe diesen Blog zum Beispiel bei „Domainfactory“. Dort kann ich über den Browser ganz einfach meine gewünschte Programme auswählen und es wird automatisch installiert. Alle benötigten Daten gebe ich online ein. Ich konfiguriere ein Benutzerprofil samt Passwort und kann mich darüber nachfolgend in den frisch erstellten Blog einloggen. Es müssen also keine Datenbanken oder Dateien angepasst werden.</p>
<p>Um auf euen Blog zuzugreifen und mit dem Bloggen anzufangen, navigiert ihr über euren Browser zu folgender URL: &#8220;http://euerDomainName/wp-admin.php“<br />
Wie ihr sehen könnt, ist dies zwar die normale, aber relativ umständliche Weise einen eigenen Blog zu erstellen. Sucht also vielleicht nach Webspace-Hosts die diesen Service als Express Installation anbieten.<br />
Allerdings lohnt sich die Anstrengung, da ihr alle Aspekte von WordPress benutzen könnt. Im Gegensatz zu einem WordPress.com Blog könnt ihr hier eure eigenen Themes und Plugins installieren, von denen im Internet sehr viele auch kostenlos angeboten werden. Alle Seiten, bzw Artikel können selbst konfiguriert werden. Es kann also Code hinzugefügt werden, CSS Dateien angepasst und zum Beispiel Google AdSense auf eurem Blog eingefügt werden, um etwas Profit, etc. zu verdienen.</p>
<h2> </h2>
<h2>3) ÜBER FANTASTICO</h2>
<p>Wie schon im 2.) Schritt erwähnt, kann WordPress.org auch einfacher installiert werden. Wieder installiert ihr WordPress auf eurem eigenen Netzgastgeber (Host) aber diesmal durch FANTASTICO. In diesem Fall, müsst ihr euer eigenes Konto bei dem Webspace Anbieter haben und die Benutzeroberfläche des Anbieters muss über eine Version von &#8220;CPANEL&#8221; verfügen, das &#8220;FANTASTICO&#8221; einschließt. FANTASTICO ist ein fortschrittliches Installationsprogramm, das eine 1-Klick WordPress-Installation automatisiert! (Eigentlich werden ein paar Klicks benötigt.)</p>
<p>Mit FANTASTICO werden alle 3 Schritte für euch automatisiert.<br />
Alles das ihr machen müsst ist einige Daten ins CPANEL eures Host-Services einzugeben.<br />
Klickt im nächsten Fenster auf &#8220;WordPress&#8221; und klickt dann auf &#8220;Neue Installation&#8221;. FANTASTICO wird ein Formular öffnen und ihr füllt ein paar Dinge aus, zum Beispiel welche Domain und in welchen Ordner euer WordPress Blog installiert werden soll . Ebenfalls werden in dem Schritt das Benutzerprofil erstellt, also Benutzername und euer Login-Passwort. Sobald ihr die Information eingetippt und somit alle Daten geliefert habt, wird FANTASTICO in ein paar Sekunden euren ersten WordPress Blog installieren!</p>
<p>Wie ist das möglich? Die Installationsdateien sind schon auf dem Server eures Internet-Hosters. Dies gewinnt natürlich Zeit, da ihr sie nicht von WordPress.org downloaden, sie entpacken und auf euren Webspace exportieren müsst. Gleichfalls, wird die MYSQL-Databank automatisch erstellt und für euch konfiguriert!<br />
Also informiert euch vor einer Blog-Installation, ob euer Webspace Anbieter PHP und FANTASTICO unterstützt. Dann entfällt die komplizierte Konfiguration der „wp-admin.php“.<br />
Jetzt einfach, wie schon weiter oben beschrieben, die Installationsseite eures WordPressBlogs „wp-admin.php“ aufrufen und dort mit dem vorher erstellten Benutzerprofil einloggen. Nun habt ihr die volle Kontrolle über euren WordPress-Blog und könnt die ersten Artikel schreiben.<br />
Ich ändere als erstes immer das Design des Blogs „Darstellung&gt;&gt;Theme“. Sucht euch über die integrierte Installationsseite von WordPress ein schönes Theme aus.</p>
<p>Weiterhin könnt ihr nun Google AdSense, oder Schwestergesellschafts-Programme, wie Amazon.com leicht hinzuzufügen. Einfach mal informieren. Mit einem erfolgreichen Blog kann man monatlich etwas an Werbeeinnahmen produzieren, was man allerdings nicht übertreiben sollte!</p>
<p>Um euren Blog erfolgreich bei Google zu listen und Besucher anzuziehen, lest doch einfach meinen Artikel über dieses Thema.<br />
Die <strong>Grundregel für Traffic</strong> ist allerdings wirklich ausführliche Artikel über ein ganz bestimmtes Thema zu schreiben. Dieser Artikel ist natürlich für euch Leser bestimmt, jedoch auch um meine frisch aufgesetzte Webseite etwas zu pushen. 1400 Wörter sollten da erstmal reichen! Verwendet in euren Artikeln grundsätzlich mehrfach die Keywords des entsprechenden Themas, schreibt gute und informative Artikel. So werden viele Benutzer euren Artikel lesen und eventuell weiterempfehlen.</p>
<p>Bleibt mir nur noch euch frohes Bloggen zu wünschen.<br />
Kommentare sind natürlich erwünscht, Blogger wünschen sich nichts mehr als Feedback <img src='http://romanharcke.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/dofollow-wordpress-plugin/' rel='bookmark' title='DoFollow in WordPress ohne Plugin'>DoFollow in WordPress ohne Plugin</a></li>
<li><a href='http://romanharcke.de/wordpress-lokal-installieren-xampp/' rel='bookmark' title='WordPress lokal installieren &#8211; XAMPP'>WordPress lokal installieren &#8211; XAMPP</a></li>
<li><a href='http://romanharcke.de/interessante-wordpress-funktionen-fur-die-functions-php/' rel='bookmark' title='Interessante WordPress Funktionen für die functions.php'>Interessante WordPress Funktionen für die functions.php</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://romanharcke.de/wordpress-blog-erstellen-und-ins-rollen-bringen/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>nic.de.vu versagt!</title>
		<link>http://romanharcke.de/nicdevu-versagt/</link>
		<comments>http://romanharcke.de/nicdevu-versagt/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 16:17:31 +0000</pubDate>
		<dc:creator>Roman</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Anleitung]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[column menu]]></category>
		<category><![CDATA[header.php]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Kategorie]]></category>
		<category><![CDATA[Menüleiste]]></category>
		<category><![CDATA[nic.de.vu wordpress]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://surfopi.wordpress.com/?p=719</guid>
		<description><![CDATA[Über diese Webseite ist es möglich kostenlose Domain zu ergattern. Naja, was ich sagen möchte ist, dass dieser Service sehr oft ausfällt und daher mein Hauptlink des öfteren nicht geht (so wie jetzt gerade!). Mein Blog ist natürlich nicht offline, sondern einfach anders zu erreichen. Falls ihr also des öfteren hier vorbei schaut, zieht doch bitte den oberen Link in eure Favoriten. http://surfopi.wordpress.com http://bl0gger.de.vu Ähnliche Artikel: PageRank Update – 29.05.2009 WordPress &#8211; Kommentar Einstellungen ausgebaut ACHTUNG – SchuelerVZ FAKE
Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/pagerank-update/' rel='bookmark' title='PageRank Update – 29.05.2009'>PageRank Update – 29.05.2009</a></li>
<li><a href='http://romanharcke.de/wordpress-kommentar-einstellungen-ausgebaut/' rel='bookmark' title='WordPress &#8211; Kommentar Einstellungen ausgebaut'>WordPress &#8211; Kommentar Einstellungen ausgebaut</a></li>
<li><a href='http://romanharcke.de/achtung-schuelervz-fake/' rel='bookmark' title='ACHTUNG – SchuelerVZ FAKE'>ACHTUNG – SchuelerVZ FAKE</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Über diese Webseite ist es möglich kostenlose Domain zu ergattern.</p>
<p>Naja, was ich sagen möchte ist, dass dieser Service sehr oft ausfällt und daher mein Hauptlink des öfteren nicht geht (so wie jetzt gerade!).<br />
Mein Blog ist natürlich nicht offline, sondern einfach anders zu erreichen.</p>
<p>Falls ihr also des öfteren hier vorbei schaut, zieht doch bitte den oberen Link in eure Favoriten.</p>
<p><a href="http://surfopi.wordpress.com">http://surfopi.wordpress.com</a></p>
<p><a href="http://bl0gger.de.vu">http://bl0gger.de.vu</a></p>
<p>Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/pagerank-update/' rel='bookmark' title='PageRank Update – 29.05.2009'>PageRank Update – 29.05.2009</a></li>
<li><a href='http://romanharcke.de/wordpress-kommentar-einstellungen-ausgebaut/' rel='bookmark' title='WordPress &#8211; Kommentar Einstellungen ausgebaut'>WordPress &#8211; Kommentar Einstellungen ausgebaut</a></li>
<li><a href='http://romanharcke.de/achtung-schuelervz-fake/' rel='bookmark' title='ACHTUNG – SchuelerVZ FAKE'>ACHTUNG – SchuelerVZ FAKE</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://romanharcke.de/nicdevu-versagt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

