<?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 Harckeheader | Roman Harcke</title>
	<atom:link href="http://romanharcke.de/tag/header/feed/" rel="self" type="application/rss+xml" />
	<link>http://romanharcke.de</link>
	<description>WordPress, Fotografie und natürlich Themen meines Studiums</description>
	<lastBuildDate>Tue, 14 Feb 2012 10:29:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Interessante WordPress Funktionen für die functions.php</title>
		<link>http://romanharcke.de/interessante-wordpress-funktionen-fur-die-functions-php/</link>
		<comments>http://romanharcke.de/interessante-wordpress-funktionen-fur-die-functions-php/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 13:41:23 +0000</pubDate>
		<dc:creator>Roman</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[artikel]]></category>
		<category><![CDATA[favicon in wordpress einbinden artikelseiten]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[kommentar wordpress functions.php]]></category>
		<category><![CDATA[mystery man gravatar]]></category>
		<category><![CDATA[wordpress function.php]]></category>
		<category><![CDATA[wordpress funktionen hinzufügen]]></category>
		<category><![CDATA[wordpress link nur auf auszug zeigen]]></category>
		<category><![CDATA[wordpress wo finde ich functions.php]]></category>

		<guid isPermaLink="false">http://romanharcke.de/interessante-wordpress-funktionen-fur-die-functions-php/</guid>
		<description><![CDATA[In diesem Artikel werde ich einige WordPress Funktionen erläutern, die euch und eurer Webseite helfen das Bloggen etwas zu erleichtern. Alle hier aufgeführten Code Schnipsel werden in die functions.php Datei eingefügt. In euren WordPress Theme Ordner findet Ihr diese Datei, in der alle Funktionen eures WordPress Themes aufgelistet sind. Meistens ist es sinnvoller, neue Funktionen in die functions.php Datei einzufügen, als direkt in die Artikelseiten. Die functions.php Datei funktioniert eigentlich wie ein Plugin in euren Theme Ordner. Modifizierungen an dieser Datei erlauben euch die WordPress Core Features zu überschreiben, ohne grundlegende WordPress Dateien zu verändern. Wenn diese Datei korrekt eingesetzt wird, kann sie Wunder bewirken. Außerdem beinhaltet sie alle Änderungen und Funktionen eures WordPress Themes in einer Datei, was wiederum Überblick und Ordnung verschafft. Falls später einmal weitere Funktionen zu eurem WordPress Theme hinzugefügt werden sollen, könnt ihr einfach die functions.php Datei öffnen und z.B. einen der folgenden Codeschnipsel einfügen. Nun will ich euch nicht länger die unglaublichen und höchst funktionellen Tricks für eure WordPress functions.php Datei vorenthalten. Noch einmal: alle ich hier aufgeführten Codeschnipsel funktionieren nur, wenn sie in die functions.php Datei in euren WordPress Theme eingefügt werden. 1. Google Analytics hinzufügen Den unten aufgeführten Codeschnipsel einfach in eure [...]
Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/wordpress-eigene-login-seite-gestalten/' rel='bookmark' title='WordPress &#8211; Eigene Login Seite gestalten'>WordPress &#8211; Eigene Login Seite gestalten</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>
<li><a href='http://romanharcke.de/dofollow-wordpress-plugin/' rel='bookmark' title='DoFollow in WordPress ohne Plugin'>DoFollow in WordPress ohne Plugin</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In diesem Artikel werde ich einige WordPress Funktionen erläutern, die euch und eurer Webseite helfen das Bloggen etwas zu erleichtern.</p>
<p>Alle hier aufgeführten Code Schnipsel werden in die functions.php Datei eingefügt. In euren WordPress Theme Ordner findet Ihr diese Datei, in der alle Funktionen eures WordPress Themes aufgelistet sind. Meistens ist es sinnvoller, neue Funktionen in die functions.php Datei einzufügen, als direkt in die Artikelseiten.</p>
<p>Die functions.php Datei funktioniert eigentlich wie ein Plugin in euren Theme Ordner. Modifizierungen an dieser Datei erlauben euch die WordPress Core Features zu überschreiben, ohne grundlegende WordPress Dateien zu verändern. Wenn diese Datei korrekt eingesetzt wird, kann sie Wunder bewirken. Außerdem beinhaltet sie alle Änderungen und Funktionen eures WordPress Themes in einer Datei, was wiederum Überblick und Ordnung verschafft. Falls später einmal weitere Funktionen zu eurem WordPress Theme hinzugefügt werden sollen, könnt ihr einfach die functions.php Datei öffnen und z.B. einen der folgenden Codeschnipsel einfügen.</p>
<p>Nun will ich euch nicht länger die unglaublichen und höchst funktionellen Tricks für eure WordPress functions.php Datei vorenthalten.</p>
<p>Noch einmal: alle ich hier aufgeführten Codeschnipsel funktionieren nur, wenn sie in die functions.php Datei in euren WordPress Theme eingefügt werden.</p>
<h2>1. Google Analytics hinzufügen</h2>
<p>Den unten aufgeführten Codeschnipsel einfach in eure functions.php Datei einfügen und euren Google Analytics Code hinzufügen. Diesen Codeschnipsel fügt hier einmal hin zu und müsst euch nie wieder Gedanken darüber machen. Dieser Codeschnipsel fügt eine Aktionen in den wp_footer ein, sodass auf allen euren Seiten automatisch der Google Analytics Code eingefügt wird.</p>
<blockquote><p>&lt;?php<br />
add_action(&#8216;wp_footer&#8217;, &#8216;add_googleanalytics&#8217;);<br />
function add_googleanalytics() { ?&gt;<br />
// Google Analytics Code einfügen<br />
&lt;?php } ?&gt;</p></blockquote>
<p>Weitere Informationen findet Ihr hier: <a href="http://www.wpbeginner.com/beginners-guide/how-to-install-google-analytics-in-wordpress/" target="_blank">Beginner’s Guide to Installing Google Analytics in WordPress</a></p>
<h2>2. Ein FavIcon zu eurem Blog hinzufügen</h2>
<p>Jeder Blog verdient seine eigene Identität. Gerade deshalb finde ich es wichtig, dass jeder Blog sein eigenes FavIcon hat. Ein FavIcon ist das kleine Icon links neben der URL. Falls die URL in den Browser gezogen wird und somit ein Shortcut erstellt wird, erscheint das FavIcon in der Browserleiste. Das FavIcon muss nicht zwingend in die functions.php Datei eingefügt werden, sondern findet auch seinen Platz in der header.php Datei. Hier nun aber den Code für eure functions.php:</p>
<blockquote><p>// FavIcon hinzufügen<br />
function blog_favicon() {<br />
echo &#8216;&lt;link rel=&#8221;Shortcut Icon&#8221; type=&#8221;image/x-icon&#8221; href=&#8221;&#8216;.get_bloginfo(&#8216;wpurl&#8217;).&#8217;/favicon.ico&#8221; /&gt;&#8217;;<br />
}<br />
add_action(&#8216;wp_head&#8217;, &#8216;blog_favicon&#8217;);</p></blockquote>
<p>Damit euer favicon im Blog angezeigt wird, ladet einfach die .ico Datei in das Stammverzeichnis eurer Webseite. Der Pfad zu der .ico Datei kann natürlich angepasst werden.</p>
<h2>3. WordPress Version Nummer entfernen</h2>
<p>Um die maximale Sicherheit eures WordPress Blocks zu garantieren, sollte ihr immer die neuste Version installiert haben. Somit ist gewährleistet, dass alle bekannten Sicherheitslücken geschlossen sind. Die WordPress Versionnummer findet sich im WordPress header, im RSS Feed, und an vielen anderen Stellen. Es ist schlau die WordPress Versionnummer zu entfernen, denn falls man die Version kennt, können leichter Angriffe auf euren WordPress Blog durchgeführt werden.</p>
<p>Hier nun also der Codeschnipsel um die WordPress Version aus eurem Blog zu entfernen:</p>
<blockquote><p>function wpbeginner_remove_version() {<br />
return &#8221;;<br />
}<br />
add_filter(&#8216;the_generator&#8217;, &#8216;wpbeginner_remove_version&#8217;);</p></blockquote>
<h2>4. Gravatar Logo bei Kommentaren ersetzen</h2>
<p>Warum sollt Ihr euch die Möglichkeiten gehen lassen, euren Blog ein Stück persönlicher zu gestalten? Mit diesen Codeschnipsel ist das möglich! Standardmäßig hatte WordPress bei den Kommentaren immer ein kleines Vorschaubild eingefügt, entweder den Mystery Man, oder den Gravatar. Diese Logos können durch eigene ersetzt werden.<br />
Alles was ihr tun müsst ist folgenden Codeschnipsel in die functions.php Datei einzufügen:</p>
<blockquote><p>add_filter( &#8216;avatar_defaults&#8217;, &#8216;newgravatar&#8217; );</p>
<p>function newgravatar ($avatar_defaults) {<br />
$myavatar = get_bloginfo(&#8216;template_directory&#8217;) . &#8216;/images/Eigenes_Logo.gif&#8217;;<br />
$avatar_defaults[$myavatar] = &#8220;WPBeginner&#8221;;<br />
return $avatar_defaults;<br />
}</p></blockquote>
<p>Natürlich sollt ihr nicht vergessen euer eigenes Logo für die Kommentare auf eurer Westseite bereitzustellen. Der Pfad zu dem Kommentarlogo befindet sich in Rootordner unter &#8220;/images/Eigenes_Logo.gif&#8221;. Habt ihr das Logo hochgeladen, könnt ihr es unter Einstellungen -&gt; Diskussion auswählen.</p>
<h2>5. Auszug Links editieren</h2>
<p>Meistens erscheinen auf eurer Blogseite, in den Suchergebnissen, oder in den einzelnen Kategorieseiten die Artikel als kleine Auszüge. Die Artikel so anzuzeigen ist sehr hilfreich, da dem Besucher somit eine größere Auswahl zur Verfügung gestellt wird und er sich einen Überblick verschaffen kann.</p>
<p>Leider fügen viele WordPress Themes unter den Auszug keinen ersichtlichen Link zu dem weiterführenden Artikel. In vielen Fällen sieht der Link eher unscheinbar aus: [...]</p>
<p>Mit diesen Codeschnipsel ist es möglich den Link beliebig abzuändern:</p>
<blockquote><p>// custom excerpt ellipses for 2.9<br />
function custom_excerpt_more($more) {<br />
return &#8216;…&#8217;;<br />
}<br />
add_filter(&#8216;excerpt_more&#8217;, &#8216;custom_excerpt_more&#8217;);</p>
<p>/* custom excerpt ellipses for 2.8-<br />
function custom_excerpt_more($excerpt) {<br />
return str_replace(&#8216;[...]&#8216;, &#8216;…&#8217;, $excerpt);<br />
}<br />
add_filter(&#8216;wp_trim_excerpt&#8217;, &#8216;custom_excerpt_more&#8217;);<br />
*/</p></blockquote>
<h2>6. Die Länge des Auszuges beliebig festlegen</h2>
<p>Standardmäßig ist der Auszug in WordPress festgelegt auf 55 Wörter. Manchmal möchte man jedoch die Auszüge etwas länger anzeigen und somit dem Besucher einen tieferen Einblick in den Artikel gewähren.<br />
Um die maximale Wortanzahl für den Auszug festzulegen, fügt ihr folgenden Codeschnipsel in die functions.php Datei ein:</p>
<blockquote><p>function new_excerpt_length($length) {<br />
return 100;<br />
}<br />
add_filter(&#8216;excerpt_length&#8217;, &#8216;new_excerpt_length&#8217;);</p></blockquote>
<p>In diesem Codeschnipsel wird der Auszug auf 100 Wörter limitiert. Diese Anzahl kann natürlich nach Belieben geändert werden.</p>
<p>Ich hoffe ich konnte euch hiermit einige tolle Funktionen für euren WordPress Blog zeigen. Ich versuche eigentlich immer Plugins zu vermeiden und die Funktionen direkt in die functions.php Datei einzufügen. Denn meistens sind die Plugins mit weiteren unnützen Funktionen überladen und verlangsamen somit nur euren WordPress Blog.</p>
<p>Viel Spaß damit!</p>
<p>Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/wordpress-eigene-login-seite-gestalten/' rel='bookmark' title='WordPress &#8211; Eigene Login Seite gestalten'>WordPress &#8211; Eigene Login Seite gestalten</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>
<li><a href='http://romanharcke.de/dofollow-wordpress-plugin/' rel='bookmark' title='DoFollow in WordPress ohne Plugin'>DoFollow in WordPress ohne Plugin</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://romanharcke.de/interessante-wordpress-funktionen-fur-die-functions-php/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WordPress 3.0 wurde veröffentlicht</title>
		<link>http://romanharcke.de/wordpress-3-0-wurde-veroffentlicht/</link>
		<comments>http://romanharcke.de/wordpress-3-0-wurde-veroffentlicht/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 18:19:44 +0000</pubDate>
		<dc:creator>Roman</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[artikel]]></category>
		<category><![CDATA[header]]></category>

		<guid isPermaLink="false">http://romanharcke.de/?p=2846</guid>
		<description><![CDATA[WordPress 3.0 wurde veröffentlicht! Hinter diesem Update steht ein halbes Jahr Arbeit von insgesamt 218 Mitarbeitern und steht nun zum Download, oder als Update im Dashboard bereit. Mit dem WordPress 3.0 Update kam ein ganz neues Theme &#8220;Twenty Ten&#8221; hinzu. Außerdem verhelfen neue APIs relativ einfach neue Hintergründe, headers, shortlinks, Menüs (ohne Dateien zu editieren) und verschiedene Artikeltypen zu erstellen. Weiterhin wurde die WordPress MU und das normale WordPress zusammengefügt, sodass neue Multi-Seiten ohne große Probleme über das gleiche Dashboard administriert werden können. Eine weitere Funktion ist ein Hover Interface, das auf jedem Screen HilfeTexte einblenden kann, weiterhin wurden 1,217 BugFixes gefixt und viele weitere Features hinzugefügt. Zum Beispiel eine mir sehr willkommende Funktion, dass mehrere Updates von Plugins auf einmal bearbeitet werden können. Endlich kann man sich die ewige Klickerei ersparen. //EDIT: Mein Blog läuft übrigens schon mit dem aktuellen WordPress 3.0 Update &#8211; Alles hat wunderbar geklappt. Ich kann euch das Update nur empfehlen, es ist wunderbar! Schaut euch am Besten einfach das Video an, hier natürlich in HD bereitgestellt. Weiterhin gibt es hier noch ein Video indem Matt Mullenweg (der Gründer von WordPress und Automattic) weitere Features erklärt, über Pläne für die Zukunft und die WordPress Philosophie [...]
Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/wordpress-2-8-4-veroffentlicht/' rel='bookmark' title='WordPress 2.8.4 veröffentlicht'>WordPress 2.8.4 veröffentlicht</a></li>
<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/artikel-aus-einer-bestimmen-kategorie-darstellen-wordpress/' rel='bookmark' title='Artikel aus einer bestimmen Kategorie darstellen &#8211; WordPress'>Artikel aus einer bestimmen Kategorie darstellen &#8211; WordPress</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a title="wordpress 3.0" href="http://wordpress.org/download/" target="_blank">WordPress 3.0</a> wurde veröffentlicht! Hinter diesem <strong>Update</strong> steht ein halbes Jahr Arbeit von insgesamt 218 Mitarbeitern und steht nun zum <a href="http://wordpress.org/download/" target="_blank">Download</a>, oder als <strong>Update</strong> im Dashboard bereit.</p>
<p>Mit dem <strong>WordPress 3.0 Updat</strong>e kam ein ganz neues<strong> Theme &#8220;Twenty Ten&#8221;</strong> hinzu. Außerdem verhelfen neue APIs relativ einfach neue Hintergründe, headers, shortlinks, Menüs (ohne Dateien zu editieren) und verschiedene Artikeltypen zu erstellen.</p>
<p>Weiterhin wurde die <strong>WordPress MU und das normale WordPress zusammengefügt</strong>, sodass neue Multi-Seiten ohne große Probleme über das gleiche Dashboard administriert werden können.</p>
<p>Eine weitere Funktion ist ein Hover Interface, das auf jedem Screen <strong>HilfeTexte</strong> einblenden kann, weiterhin wurden <strong>1,217 BugFixes </strong>gefixt und viele weitere Features hinzugefügt.</p>
<p>Zum Beispiel eine mir sehr willkommende Funktion, dass <strong>mehrere Updates von Plugins</strong> auf einmal bearbeitet werden können. Endlich kann man sich die ewige Klickerei ersparen.</p>
<blockquote><p><strong>//EDIT</strong>: Mein Blog läuft übrigens schon mit dem aktuellen <strong>WordPress 3.0 Update</strong> &#8211; Alles hat wunderbar geklappt. Ich kann euch das Update nur empfehlen, es ist wunderbar!</p></blockquote>
<p>Schaut euch am Besten einfach das Video an, hier natürlich in HD bereitgestellt.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="360" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="flashvars" value="guid=BQtfIEY1&amp;width=640&amp;height=360&amp;locksize=no&amp;dynamicseek=false&amp;qc_publisherId=p-18-mFEk4J448M" /><param name="src" value="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?ver=1.21" /><param name="wmode" value="transparent" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="360" src="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?ver=1.21" allowfullscreen="true" wmode="transparent" flashvars="guid=BQtfIEY1&amp;width=640&amp;height=360&amp;locksize=no&amp;dynamicseek=false&amp;qc_publisherId=p-18-mFEk4J448M"></embed></object></p>
<p>Weiterhin gibt es hier noch ein Video indem Matt Mullenweg (der Gründer von WordPress und Automattic) weitere Features erklärt, über Pläne für die Zukunft und die WordPress Philosophie spricht.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="360" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="flashvars" value="guid=xj8pDCM4&amp;width=640&amp;height=360&amp;locksize=no&amp;dynamicseek=false&amp;qc_publisherId=p-18-mFEk4J448M" /><param name="src" value="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?ver=1.21" /><param name="wmode" value="transparent" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="360" src="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?ver=1.21" allowfullscreen="true" wmode="transparent" flashvars="guid=xj8pDCM4&amp;width=640&amp;height=360&amp;locksize=no&amp;dynamicseek=false&amp;qc_publisherId=p-18-mFEk4J448M"></embed></object></p>
<p><a href="http://wordpress.org/development/2010/06/thelonious/">WordPress › Blog » WordPress 3.0 “Thelonious”</a>.</p>
<p>Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/wordpress-2-8-4-veroffentlicht/' rel='bookmark' title='WordPress 2.8.4 veröffentlicht'>WordPress 2.8.4 veröffentlicht</a></li>
<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/artikel-aus-einer-bestimmen-kategorie-darstellen-wordpress/' rel='bookmark' title='Artikel aus einer bestimmen Kategorie darstellen &#8211; WordPress'>Artikel aus einer bestimmen Kategorie darstellen &#8211; WordPress</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://romanharcke.de/wordpress-3-0-wurde-veroffentlicht/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Custom-Logo im Dashboard</title>
		<link>http://romanharcke.de/wordpress-custom-logo-im-dashboard/</link>
		<comments>http://romanharcke.de/wordpress-custom-logo-im-dashboard/#comments</comments>
		<pubDate>Wed, 12 May 2010 11:04:47 +0000</pubDate>
		<dc:creator>Roman</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[eigenes logo für wordpress anmedung]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[harcke]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[romanharcke.de]]></category>

		<guid isPermaLink="false">http://romanharcke.de/?p=2687</guid>
		<description><![CDATA[Eigenes Logo im Dashboard Normalerweise wird im Dashboard, oben links neben dem Namen des Blogs ein kleines Logo mit dem &#8220;W&#8221; angezeigt. Wenn man schon einmal dabei ist seinen Blog etwas persönlicher zu gestalten, darf man auch nicht das Dashboard vergessen. Dort verbringt man schließlich auch recht viel Zeit. Gestaltet euch ein eigenes Logo mit 30Pixel * 31Pixel und ladet es in das Theme Verzeichnis unter &#8220;/images/custom-logo.gif&#8221;. Die Dateiversion ist natürlich egal, ändert den Code dann entsprechend ab. Also hier der PHP-Code, um ein eigenes Logo dem aktuellen Theme hinzuzufügen. add_action&#40;'admin_head', 'my_custom_logo'&#41;; function my_custom_logo&#40;&#41; &#123; &#160; &#160;echo ' &#160; &#160; &#160; &#60;style type=&#34;text/css&#34;&#62; &#160; &#160; &#160; &#160; &#160;#header-logo { background-image: url('.get_bloginfo&#40;'template_directory'&#41;.'/images/custom-logo.gif) ; } &#160; &#160; &#160; &#60;/style&#62; &#160; &#160;'; &#125; So könnte das aussehen: Ähnliche Artikel: WordPress &#8211; Eigene Login Seite gestalten Interessante WordPress Funktionen für die functions.php FaceBook &#8220;Gefällt mir&#8221; Button für WordPress
Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/wordpress-eigene-login-seite-gestalten/' rel='bookmark' title='WordPress &#8211; Eigene Login Seite gestalten'>WordPress &#8211; Eigene Login Seite gestalten</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>
<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>Eigenes Logo im Dashboard</h2>
<p>Normalerweise wird im Dashboard, oben links neben dem Namen des Blogs ein kleines Logo mit dem &#8220;W&#8221; angezeigt. Wenn man schon einmal dabei ist seinen Blog etwas <a href="http://romanharcke.de/wordpress-eigene-login-seite-gestalten/">persönlicher zu gestalten</a>, darf man auch nicht das Dashboard vergessen. Dort verbringt man schließlich auch recht viel Zeit.<br />
Gestaltet euch ein eigenes Logo mit 30Pixel * 31Pixel und ladet es in das Theme Verzeichnis unter &#8220;/images/custom-logo.gif&#8221;. Die Dateiversion ist natürlich egal, ändert den Code dann entsprechend ab.</p>
<p>Also hier der PHP-Code, um ein eigenes Logo dem aktuellen Theme hinzuzufü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">add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'admin_head'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'my_custom_logo'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> my_custom_logo<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp;<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'<br />
&nbsp; &nbsp; &nbsp; &lt;style type=&quot;text/css&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#header-logo { background-image: url('</span><span style="color: #339933;">.</span>get_bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_directory'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/images/custom-logo.gif) ; }<br />
&nbsp; &nbsp; &nbsp; &lt;/style&gt;<br />
&nbsp; &nbsp;'</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></div>
<h3>So könnte das aussehen:</h3>
<div id="attachment_2690" class="wp-caption alignnone" style="width: 213px"><a href="http://romanharcke.de/wp-content/uploads/2010/05/custom-logo.jpg"><img src="http://romanharcke.de/wp-content/uploads/2010/05/custom-logo.jpg" alt="custom-logo" title="custom-logo" width="203" height="167" class="size-full wp-image-2690" /></a><p class="wp-caption-text">custom-logo</p></div>
<p>Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/wordpress-eigene-login-seite-gestalten/' rel='bookmark' title='WordPress &#8211; Eigene Login Seite gestalten'>WordPress &#8211; Eigene Login Seite gestalten</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>
<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/wordpress-custom-logo-im-dashboard/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 Remix &#8211; Search Box und RSS Feed in Menü</title>
		<link>http://romanharcke.de/wp-remix-search-box-und-rss-feed-in-menu/</link>
		<comments>http://romanharcke.de/wp-remix-search-box-und-rss-feed-in-menu/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 21:58:29 +0000</pubDate>
		<dc:creator>Roman</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[column menu]]></category>
		<category><![CDATA[harcke]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[header.php]]></category>
		<category><![CDATA[romanharcke.de]]></category>
		<category><![CDATA[wordpress suchfunktion in menü]]></category>
		<category><![CDATA[wpremix3]]></category>

		<guid isPermaLink="false">http://romanharcke.de/?p=443</guid>
		<description><![CDATA[Erklärung um in WP Remix die Suche mit ins Menü zu integrieren und neben dem RSS Feed zu platzieren. Ebenfalls kann man ganz einfach das RSS Feed durch die Searchbox ersetzen. Hier nun der benötigte Code für die Suchfunktion in WP Remix: &#60;div id=&#34;search&#34; style=&#34;[HIER KANN DIE POSITION PER CSS ANGEPASST WERDEN]&#34;&#62; &#160; &#160;&#60;?php get_search_form&#40;&#41;; ?&#62; &#60;/div&#62; Dieser Code kann nun an die gewünschte Stelle im Menü eingesetzt werden. Ihr könnt ihn auch in die Sidebar integrieren, aber jetzt zeige ich wie man die Suchfunktion ins Menü integriert. 1. Öffnet eure header.php Datei Diese befindet sich auf eurem Webspace unter: &#8220;/wordpress/wp-content/themes/wpremix3/includes/header&#8221; 2. Editieren der header.php Scrollt nach unten zu dieser Stelle: &#60;!--Dropdown navigation --&#62; &#60;div id=&#34;nav&#34;&#62; &#160; &#60;ul id=&#34;navmenu-h&#34;&#62; &#160; &#160; &#60;?php &#160; &#160; &#160; &#160; wp_list_pages&#40;'sort_column=menu_order&#38;title_li='&#41;; &#160; &#160; &#160; &#160; ?&#62; &#160; &#160; &#160; &#160; &#160; &#160; &#60;?php &#160; &#160; &#160; &#160; wp_list_categories&#40;'title_li=&#38;exclude=1'&#41;; &#160; &#160; &#160; &#160; ?&#62; &#160; &#60;/ul&#62; &#160; &#160; &#60;div class=&#34;rss&#34;&#62;&#60;a href=&#34;&#60;?php bloginfo('rss2_url'); ?&#62;&#34;&#62;RSS FEED&#60;/a&#62;&#60;/div&#62; &#60;/div&#62; &#60;!--Dropdown navigation #end --&#62; 2.1 Wenn ihr nun die Suchbox vor das RSS Feed setzen wollt, fügt ihr den obrigen Code der Suchfunktion vor das RSS-Feed Div ein: Hier sieht man jedoch, dass die Suchbox eine meiner Menüpunkte überdeckt. Darauf [...]
Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/wordpress-wp-remix-menu-kategorien-statt-seiten/' rel='bookmark' title='WP [wp-Remix] &#8211; Im Menü Kategorien statt Seiten anzeigen'>WP [wp-Remix] &#8211; Im Menü Kategorien statt Seiten anzeigen</a></li>
<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/quick-edit-button-fur-wordpress-artikel/' rel='bookmark' title='Quick Edit Button für WordPress Artikel'>Quick Edit Button für WordPress Artikel</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><strong>Erklärung um in WP Remix die Suche mit ins Menü zu integrieren und neben dem RSS Feed zu platzieren. Ebenfalls kann man ganz einfach das RSS Feed durch die Searchbox ersetzen. </strong></p>
<h4>Hier nun der benötigte Code für die Suchfunktion in WP Remix:</h4>
<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;search&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;[HIER KANN DIE POSITION PER CSS ANGEPASST WERDEN]&quot;</span>&gt;</span> <br />
&nbsp; &nbsp;<span style="color: #009900;">&lt;?php get_search_form<span style="color: #66cc66;">&#40;</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/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span></div></div>
<p>Dieser Code kann nun an die gewünschte Stelle im Menü eingesetzt werden.<br />
Ihr könnt ihn auch in die Sidebar integrieren, aber jetzt zeige ich wie man die Suchfunktion ins Menü integriert. </p>
<h5>1. Öffnet eure header.php Datei</h5>
<p>Diese befindet sich auf eurem Webspace unter: </p>
<blockquote><p>&#8220;/wordpress/wp-content/themes/wpremix3/includes/header&#8221;</p></blockquote>
<h4>2. Editieren der header.php</h4>
<p>Scrollt nach unten zu dieser Stelle:</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: #808080; font-style: italic;">&lt;!--Dropdown navigation --&gt;</span><br />
<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;<br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;?php </span><br />
<span style="color: #009900;">&nbsp; &nbsp; &nbsp; &nbsp; wp_list_categories<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'title_li=&amp;exclude=1'</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; <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><br />
<span style="color: #808080; font-style: italic;">&lt;!--Dropdown navigation #end --&gt;</span></div></div>
<h5>2.1 Wenn ihr nun die Suchbox vor das RSS Feed setzen wollt, fügt ihr den obrigen Code der Suchfunktion vor das RSS-Feed Div ein:</h5>
<p>Hier sieht man jedoch, dass die Suchbox eine meiner Menüpunkte überdeckt. Darauf sollte also geachtet werden!</p>
<p><a href="http://romanharcke.de/wp-content/uploads/2009/07/suchfunktion_rssfeed_menue.jpg"><img src="http://romanharcke.de/wp-content/uploads/2009/07/suchfunktion_rssfeed_menue.jpg" alt="suchfunktion_rssfeed_menue" title="suchfunktion_rssfeed_menue" width="488" height="35" class="alignnone size-full wp-image-444" /></a></p>
<p>Der Code sieht dann so aus:</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: #808080; font-style: italic;">&lt;!--Dropdown navigation --&gt;</span><br />
<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;<br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;?php </span><br />
<span style="color: #009900;">&nbsp; &nbsp; &nbsp; &nbsp; wp_list_categories<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'title_li=&amp;exclude=1'</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; <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;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;search&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;position:absolute;right:90px;top:-19px;height:20px;&quot;</span>&gt;</span> <span style="color: #009900;">&lt;?php get_search_form<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; ?&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 />
&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><br />
<span style="color: #808080; font-style: italic;">&lt;!--Dropdown navigation #end --&gt;</span></div></div>
<h5>2.2 Wenn ihr den RSS Feed durch die Searchbox ersetzen wollt, ersetzt ihr folglich einfach diesen Code Abschnitt. </h5>
<p>Allerdings sollte die Suchbox per CSS an den Header angepasst werden. Ich habe hier die Suchfunktion über das Attribut &#8220;right:1px&#8221; möglichst weit nach rechts gesetzt. Das kann natürlich alles nach Wünschen angepasst werden.</p>
<p><a href="http://romanharcke.de/wp-content/uploads/2009/07/suchbox_wpremix.jpg"><img src="http://romanharcke.de/wp-content/uploads/2009/07/suchbox_wpremix.jpg" alt="suchbox_wpremix" title="suchbox_wpremix" width="488" height="35" class="alignnone size-full wp-image-445" /></a></p>
<p>Der Code sieht dann so aussehen:</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: #808080; font-style: italic;">&lt;!--Dropdown navigation --&gt;</span><br />
<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;<br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;?php </span><br />
<span style="color: #009900;">&nbsp; &nbsp; &nbsp; &nbsp; wp_list_categories<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'title_li=&amp;exclude=1'</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; <br />
&nbsp; <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;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;search&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;position:absolute;right:1px;top:-19px;height:20px;&quot;</span>&gt;</span> <span style="color: #009900;">&lt;?php get_search_form<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; ?&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><br />
<span style="color: #808080; font-style: italic;">&lt;!--Dropdown navigation #end --&gt;</span></div></div>
<p>Für Verbesserungsvorschläge bin ich natürlich immer offen. Man kann ja nie genug wissen <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/wordpress-wp-remix-menu-kategorien-statt-seiten/' rel='bookmark' title='WP [wp-Remix] &#8211; Im Menü Kategorien statt Seiten anzeigen'>WP [wp-Remix] &#8211; Im Menü Kategorien statt Seiten anzeigen</a></li>
<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/quick-edit-button-fur-wordpress-artikel/' rel='bookmark' title='Quick Edit Button für WordPress Artikel'>Quick Edit Button für WordPress Artikel</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://romanharcke.de/wp-remix-search-box-und-rss-feed-in-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Menü &#8211; Seiten und Kategorien gleichzeitig</title>
		<link>http://romanharcke.de/wordpress-menu-seiten-kategorien/</link>
		<comments>http://romanharcke.de/wordpress-menu-seiten-kategorien/#comments</comments>
		<pubDate>Sun, 12 Jul 2009 21:42:45 +0000</pubDate>
		<dc:creator>Roman</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[artikel]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[column menu]]></category>
		<category><![CDATA[gleichzeitig roman]]></category>
		<category><![CDATA[harcke]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[header.php]]></category>
		<category><![CDATA[Kategorie]]></category>
		<category><![CDATA[Menüleiste]]></category>
		<category><![CDATA[menu wordpress nebeneinander]]></category>
		<category><![CDATA[roman kategorien]]></category>
		<category><![CDATA[romanharcke.de]]></category>
		<category><![CDATA[wordpress erklärung kategorie seite artikel]]></category>
		<category><![CDATA[wordpress kategorie als blog-seite anlegen]]></category>
		<category><![CDATA[wordpress kategorie als menüpunkt]]></category>
		<category><![CDATA[wordpress kategorie als seite]]></category>
		<category><![CDATA[wordpress kategorie menü]]></category>
		<category><![CDATA[wordpress kategorie seite]]></category>
		<category><![CDATA[wordpress mehrere kategorien auf einmal anlegen]]></category>
		<category><![CDATA[wordpress menü seiten kategorien]]></category>
		<category><![CDATA[wordpress seiten kategorien]]></category>
		<category><![CDATA[wordpress seiten menü]]></category>
		<category><![CDATA[wp_list_pages kategorien]]></category>

		<guid isPermaLink="false">http://romanharcke.de/?p=323</guid>
		<description><![CDATA[Endlich habe ich eine Lösung gefunden um die Seiten des Blogs und die Kategorien gleichzeitig in der Menüleiste anzuzeigen. Wahlweise in einer Zeile, oder in zwei einzelnen Menüspalten &#8211; eine für die Blog-Seiten und eine für die Blog-Kategorien. Hier stelle ich drei verschiedene Lösungsansätze vor. Die Daten müssten natürlich mit euren ersetzt werden, aber das ist denke ich kein Problem. Sonst schreibt mir einfach einen Kommentar. Alle Arbeiten werden an der entsprechenden header.php vorgenommen. Aufpassen: Manche WordPress Themes haben mehrere Header zur Auswahl, also findet heraus welchen ihr benutzen wollt. 1.) Hier mein ursprüngliches Menü, indem die Seiten aufgelistet werden: &#60;div id=&#34;nav&#34;&#62; &#160; &#60;ul id=&#34;navmenu-h&#34;&#62; &#160; &#160; &#160; &#160;&#60;?php &#160; &#160; &#160; &#160; &#160; &#160; wp_list_pages&#40;'sort_column=menu_order&#38;title_li='&#41;; &#160; &#160; &#160; ?&#62; &#160; &#60;/ul&#62; &#60;/div&#62; CODE-ERKLÄRUNG: &#8220;wp_list_pages&#8221; ruft die Seiten ab &#8220;sort_column=menu_order&#8221; ordnet meine Seiten nach den im Dashboard verteilten Reihenfolgen mit &#8220;titel_li=&#8221; könnte ich eine Überschrift für einen Menüpunkt erstellen, der alle Seiten beinhaltet 2.) Das modifizierte Menü, in dem zwei Menüleisten untereinander angezeigt werden. Eine Spalte listet die Seiten, die untere listet die Kategorien: &#60;div id=&#34;nav&#34;&#62; &#160; &#60;ul id=&#34;navmenu-h&#34;&#62; &#160; &#160; &#60;?php &#160; &#160; &#160; &#160; &#160;wp_list_pages&#40;'sort_column=menu_order&#38;title_li='&#41;; &#160; &#160; ?&#62; &#160; &#60;/ul&#62; &#60;/div&#62; &#60;div id=&#34;nav&#34;&#62; &#160; &#60;ul id=&#34;navmenu-h&#34;&#62; &#160; &#160; [...]
Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/wordpress-wp-remix-menu-kategorien-statt-seiten/' rel='bookmark' title='WP [wp-Remix] &#8211; Im Menü Kategorien statt Seiten anzeigen'>WP [wp-Remix] &#8211; Im Menü Kategorien statt Seiten anzeigen</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/kategorien-vom-blog-ausschliesen/' rel='bookmark' title='Kategorien vom Blog ausschließen'>Kategorien vom Blog ausschließen</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><strong>Endlich habe ich eine Lösung gefunden um die Seiten des Blogs und die Kategorien gleichzeitig in der Menüleiste anzuzeigen.<br />
Wahlweise in einer Zeile, oder in zwei einzelnen Menüspalten &#8211; eine für die Blog-Seiten und eine für die Blog-Kategorien.</strong></p>
<p>Hier stelle ich drei verschiedene Lösungsansätze vor. Die Daten müssten natürlich mit euren ersetzt werden, aber das ist denke ich kein Problem. Sonst schreibt mir einfach einen Kommentar.</p>
<p>Alle Arbeiten werden an der entsprechenden header.php vorgenommen.<br />
Aufpassen: Manche WordPress Themes haben mehrere Header zur Auswahl, also findet heraus welchen ihr benutzen wollt.</p>
<h4>1.) Hier mein ursprüngliches Menü, indem die Seiten aufgelistet werden:</h4>
<p><a href="http://romanharcke.de/wp-content/uploads/2009/07/menu_standard.jpg"><img class="alignnone size-full wp-image-324" title="menu_standard_wp-remix" src="http://romanharcke.de/wp-content/uploads/2009/07/menu_standard.jpg" alt="menu_standard_wp-remix" width="302" height="34" /></a></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; &nbsp; &nbsp;<span style="color: #009900;">&lt;?php</span><br />
<span style="color: #009900;">&nbsp; &nbsp; &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; ?&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 />
<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>CODE-ERKLÄRUNG:</p>
<ul>
<li>&#8220;wp_list_pages&#8221; ruft die Seiten ab</li>
<li>&#8220;sort_column=menu_order&#8221; ordnet meine Seiten nach den im Dashboard verteilten Reihenfolgen</li>
<li>mit &#8220;titel_li=&#8221; könnte ich eine Überschrift für einen Menüpunkt erstellen, der alle Seiten beinhaltet</li>
</ul>
<h4>2.) Das modifizierte Menü, in dem zwei Menüleisten untereinander angezeigt werden.</h4>
<p>Eine Spalte listet die Seiten, die untere listet die Kategorien:</p>
<p><a href="http://romanharcke.de/wp-content/uploads/2009/07/menu_edit_2_spalten.jpg"><img class="alignnone size-full wp-image-328" title="menu_edit_2_spalten" src="http://romanharcke.de/wp-content/uploads/2009/07/menu_edit_2_spalten.jpg" alt="menu_edit_2_spalten" width="303" height="67" /></a></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; &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; ?&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 />
<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><br />
<br />
<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; &nbsp;<span style="color: #009900;">&lt;?php</span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp;wp_list_categories<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'title_li=&amp;exclude=1'</span><span style="color: #66cc66;">&#41;</span>;</span><br />
<span style="color: #009900;"> &nbsp; &nbsp; ?&gt;</span><br />
&nbsp; &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 />
<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>CODE_ERKLÄRUNG:</p>
<ul>
<li>&#8220;wp_list_categories&#8221; listet die Kategorien</li>
<li>&#8220;exclude=1&#8243; schließt z.B. eine Kategorie (Allgemeines) mit der ID=1 aus</li>
</ul>
<h4>3.) Menü mit Seiten und Kategorien in einer Spalte:</h4>
<p><a href="http://romanharcke.de/wp-content/uploads/2009/07/menu_1_spalte.jpg"><img src="http://romanharcke.de/wp-content/uploads/2009/07/menu_1_spalte.jpg" alt="menu_1_spalte" title="menu_1_spalte" width="474" height="34" class="alignnone size-full wp-image-337" /></a></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; ?&gt;</span><br />
&nbsp;<br />
&nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;?php </span><br />
<span style="color: #009900;">&nbsp; &nbsp; &nbsp; &nbsp; wp_list_categories<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'title_li=&amp;exclude=1'</span><span style="color: #66cc66;">&#41;</span>;</span><br />
<span style="color: #009900;">&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 />
<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>ERKLÄRUNG:</p>
<p>Wie bei HTML Code auch, könnt ihr hier zwei PHP Befehle ein &#8220;div id=nav&#8221; platzieren.<br />
Der Code erscheint natürlich nebeneinander.</p>
<p>Hoffe euch konnte der Artikel helfen, denn ich hab mich Ewigkeiten durch das Netz gewühlt, aber keine richtige Möglichkeit gefunden Kategorien neben Seiten im Menü aufzulisten.<br />
Bis ich mich einfach mal selbst drangesetzt habe und siehe da, man sollte viel mehr ausprobieren &#8211; es funktioniert ja tadellos <img src='http://romanharcke.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Mit dieser Methode ist es auch möglich nur einzelne Kategorien im Menü darzustellen.<br />
Über die Funktion &#8220;exclude=&#8221; könnt ihr alle ausschließen die ihr nicht darstellen wollt. </p>
<p>Habt ihr noch Verbesserungsvorschläge? Andere Möglichkeiten? Dann teilt sie mir über die Kommentarbox doch einfach mit.</p>
<p>Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/wordpress-wp-remix-menu-kategorien-statt-seiten/' rel='bookmark' title='WP [wp-Remix] &#8211; Im Menü Kategorien statt Seiten anzeigen'>WP [wp-Remix] &#8211; Im Menü Kategorien statt Seiten anzeigen</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/kategorien-vom-blog-ausschliesen/' rel='bookmark' title='Kategorien vom Blog ausschließen'>Kategorien vom Blog ausschließen</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://romanharcke.de/wordpress-menu-seiten-kategorien/feed/</wfw:commentRss>
		<slash:comments>8</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>Beste WordPress Plugins für erfolgreiche WordPress Blogs</title>
		<link>http://romanharcke.de/beste-wordpress-plugins-fuer-wordpress-blogger/</link>
		<comments>http://romanharcke.de/beste-wordpress-plugins-fuer-wordpress-blogger/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 17:58:59 +0000</pubDate>
		<dc:creator>Roman</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[artikel]]></category>
		<category><![CDATA[besten wordpress blogs]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[harcke]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[romanharcke.de]]></category>
		<category><![CDATA[wordpress best automatic hyperlinks plugin]]></category>

		<guid isPermaLink="false">http://romanharcke.de/?p=94</guid>
		<description><![CDATA[&#160; Ich bin wohl nicht der Einzige im Internet, der ständig auf der Suche nach den besten WordPress-Plugins für seinen WordPress-Blog ist? Wenn dem so ist, dann kannst du gerne weiterlesen, denn diese WordPress-Plugins gehören zu den Besten und nützlichsten überhaupt. Alle WordPress Blogger sollten einige dieser Plugins für ihren Blog oder Blogs verwenden. Ich bin mir sicher, dass unter den hier aufgelisteten WordPress Plug-Ins sicher einiges zu finden ist. So, doch nun zu der Liste der tollsten Plugins für deinen WordPress Blog. # 1. Akismet &#8211; - http://wordpress.org/extend/plugins/akismet/ Akismet gleicht eingehende Kommentare mit dem Akismet Web-Service ab und überprüft dabei (höchst effizient) ob es sich um Spam-Mails handelt. Die abgefangenen Spam-Kommentare können im Dashboard unter &#8220;Kommentare&#8221; eingesehen werden. Außerdem zeigt das Plugin einen neuen Menüpunkt &#8220;Akismet-Statistik&#8221; unter &#8220;Übersicht&#8221;. Dort sammelt das Plugin alle Informationen und zeigt Spam-Abfang-Stats an. Wohl eher eine kleine Spielerei&#8230; # 2. All In One SEO &#8211; - http://wordpress.org/extend/plugins/all-in-one-seo-pack/ Das &#8220;All in One SEO Pack&#8221; optimiert den WordPress Blog für Suchmaschinen (Search Engine Optimization/SEO). Mittlerweile wohl fast ein Muss für jeden WordPress Blog. Man sollte jedoch darauf achten, dass nicht mehrere SEO Plugins nebeneinander benutzt werden. Zuviele Meta-Tags im Header findet Google nicht so toll! # [...]
Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/ping-dienste-deutsch-wordpress-blog/' rel='bookmark' title='Beste Ping Dienste für (deutsche) Blogs'>Beste Ping Dienste für (deutsche) Blogs</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>
<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>
</ol>]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<div><img hspace="10" alt="WordPress Plugins" vspace="10" align="right" src="http://romanharcke.de/wp-content/uploads/2009/08/wordpress_plugins.jpg" width="188" height="186" />Ich bin wohl nicht der Einzige im Internet, der ständig auf der Suche nach den besten <strong>WordPress-Plugins</strong> für seinen <strong>WordPress-Blog</strong> ist?<br />
Wenn dem so ist, dann kannst du gerne weiterlesen, denn diese  <strong>WordPress-Plugins</strong> gehören zu den Besten und nützlichsten überhaupt.</div>
<p></p>
<div>Alle <strong>WordPress Blogger</strong> sollten einige dieser Plugins für ihren <strong>Blog</strong> oder <strong>Blogs</strong> verwenden. <!-- P-->Ich bin mir sicher, dass unter den hier aufgelisteten <strong>WordPress Plug-Ins</strong> sicher einiges zu finden ist.</div>
<div>So, doch nun zu der Liste der tollsten <strong>Plugins</strong> für deinen <strong>WordPress Blog.</strong><!-- P--></div>
<p></p>
<div></p>
<ul>
<li style="list-style: none"></li>
<li><span style="TEXT-DECORATION: underline"><strong># 1. Akismet</strong></span> &#8211; <!-- p-->- <a title="Akismet Spamschutz WordPress Blog plugin" href="http://wordpress.org/extend/plugins/akismet/" target="_blank">http://wordpress.org/extend/plugins/akismet/</a> <!-- p--><br />
Akismet gleicht eingehende Kommentare mit dem Akismet Web-Service ab und überprüft dabei (höchst effizient) ob es sich um Spam-Mails handelt. Die abgefangenen Spam-Kommentare können im Dashboard unter &#8220;Kommentare&#8221; eingesehen werden. Außerdem zeigt das Plugin einen neuen Menüpunkt &#8220;Akismet-Statistik&#8221; unter &#8220;Übersicht&#8221;. Dort sammelt das Plugin alle Informationen und zeigt Spam-Abfang-Stats an. Wohl eher eine kleine Spielerei&#8230; <!-- p--></li>
<li><span style="TEXT-DECORATION: underline"><strong># 2. All In One SEO</strong></span> &#8211; <!-- p-->- <a title="SEO plugin wordpress" href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/" target="_blank">http://wordpress.org/extend/plugins/all-in-one-seo-pack/</a> <!-- p--><br />
Das &#8220;All in One SEO Pack&#8221; optimiert den WordPress Blog für Suchmaschinen (Search Engine Optimization/SEO). Mittlerweile wohl fast ein Muss für jeden WordPress Blog. Man sollte jedoch darauf achten, dass nicht mehrere SEO Plugins nebeneinander benutzt werden. Zuviele Meta-Tags im Header findet Google nicht so toll!<!-- p--></li>
<li><span style="TEXT-DECORATION: underline"><strong># 3. Broken Link Checker</strong></span> &#8211; <!-- p-->- <a title="broken link checker plugin wordpress blog" href="http://wordpress.org/extend/plugins/broken-link-checker/" target="_blank">http://wordpress.org/extend/plugins/broken-link-checker/</a> <!-- p--><br />
Dieses Plugin wird den Blog nach defekten Links absuchen und listet eventuelle kaputte oder nicht mehr verfügbare Links auf.<!-- p--></li>
<li><span style="TEXT-DECORATION: underline"><strong># 4. WordPress Datenbank-Back Up</strong></span> &#8211; <!-- p-->- <a title="datenbank backup wordpress plugin blog" href="http://wordpress.org/extend/plugins/wp-db-backup/" target="_blank">http://wordpress.org/extend/plugins/wp-db-backup/</a> <!-- p--><br />
Mit WP-DB-Backup könnt ihr einfach ein Backup der WordPress Datenbank erstellen. Ebenfalls können auch andere Backup-Tabellen in dieselbe Datenbank integriert werden. <!-- P--></li>
<li><span style="TEXT-DECORATION: underline"><strong># 5. Exec-PHP</strong></span> &#8211; <a title="php in wordpress blog plugin" href="http://wordpress.org/extend/plugins/exec-php/" target="_blank">http://wordpress.org/extend/plugins/exec-php/</a> <!-- p--><br />
Das Exec-PHP Plugin ermöglicht PHP-Code in Beiträgen, Seiten und Text-Widgets. Hierdurch ist eine weitaus größere Individualisierung deines Themes ermöglicht.<!-- P--></li>
<li><span style="TEXT-DECORATION: underline"><strong># 6. Google XML-Sitemaps</strong></span> &#8211; <!-- p-->- <a title="Google Sitemaps für WordPress blog erstellen plugin" href="http://wordpress.org/extend/plugins/google-sitemap-generator/" target="_blank">http://wordpress.org/extend/plugins/google-sitemap-generator/</a> <!-- p--><br />
Dieses Plugin wird ein Google Sitemaps konforme XML-Sitemap des WordPress-Blogs erstellen. Erspart viel Arbeit und funktioniert hervorragend. Über eine Sitemap kann Google, Yahoo, Bing und andere Suchmschinen deine neuen Artikel schneller finden.<!-- p--></li>
<li><span style="TEXT-DECORATION: underline"><strong># 7. MaxBlogPress Ping Optimizer</strong></span> &#8211; <!-- p-->- <a title="MaxBlog ping optimierer wordpress plugin" href="http://wordpress.org/extend/plugins/maxblogpress-ping-optimizer/" target="_blank">http://wordpress.org/extend/plugins/maxblogpress-ping-optimizer/</a> <!-- p--><br />
Wie oft ändert man einen Artikel oder eine Seite seines WordPress Blogs? Ich ändere meine Seiten sehr häufig und jeden mal pingt mein Blog die Suchmaschinen an. Da man auf diese Weise recht schnell als Spam-Seite eingestuft wird, kommt dieses Plugin wundervoll zum Einsatz. Bei der Veröffentlichung des Artikels werden die Suchmaschinen angepingt, jedoch nicht mehr beim Editieren. Sie Crawler wurden ja schon benachrichtigt und kommen sowieso auf die Seite.</li>
<li><span style="TEXT-DECORATION: underline"><strong># 8. MaxBlogPress Favicon</strong></span> <!-- p-->- <a title="MaxBlogPress Favicon" href="http://wordpress.org/extend/plugins/maxblogpress-favicon/" target="_blank">http://wordpress.org/extend/plugins/maxblogpress-favicon/</a> <!-- p--><br />
Einfache Integration eines Favicon.ico neben der URL des WordPress Blogs. <!-- p--></li>
<li><span style="TEXT-DECORATION: underline"><strong># 9. WP-Cache</strong></span> <!-- p-->- <a title="WP-cache wordpress caching blog plugin" href="http://wordpress.org/extend/plugins/wp-cache/" target="_blank">http://wordpress.org/extend/plugins/wp-cache/</a> <!-- p--><br />
WP-Cache ist ein extrem effizientes WordPress Caching-Plugin, das die Website beschleunigt und schneller laden lässt. Bei jedem Seitenaufbau muss der Server die PHP Abfragen bearbeiten und das benötigt auf statischen Seiten unnötige Ladezeiten. Durch Cachen einer Seite wird eine Kopie der Webseite auf dem Server hinterlegt und viel Ladezeit gespart.<!-- p--></li>
<li><span style="TEXT-DECORATION: underline"><strong># 10. Auto Hyperlink URLs</strong></span> <!-- p-->- <a title="wordpress pluging auto hyperlinks url blog" href="http://wordpress.org/extend/plugins/auto-hyperlink-urls/" target="_blank">http://wordpress.org/extend/plugins/auto-hyperlink-urls/</a> <!-- p--><br />
Auto-Hyperlink-Text-URLs wandelt geschriebene Links in Artikeln und kommentieren Text in echte URLs um. In Kommentaren würde ich die automatischen Links jedoch nicht empfehlen. Sonst überwiegen irgendwann die SPAM-Kommentare.<!-- p--></li>
<li><strong><span style="TEXT-DECORATION: underline"># 11. No Ping Wait</span></strong> <!-- p-->- <a title="no ping wait wordpress plugin blog" href="http://onemansblog.com/2007/04/15/no-ping-wait-wordpress-plugin/" target="_blank">http://onemansblog.com/2007/04/15/no-ping-wait-wordpress-plugin/</a> <!-- p--><br />
Das Ziel des &#8220;<strong>No Ping Wait</strong>&#8221; Plugins ist, zu verhindern, dass WordPress Autoren nach einer Artikel-Veröffentlichung auf alle Update-Dienste warten müssen. Ist es nicht auch schon aufgefallen, dass manche &#8220;Veröffentlichen&#8221;-Vorgänge sehr viel Zeit benötigen<!-- p-->? Dieses Plugin verschiebt die Ping-Dienste zu execute-pings.php. Sehr zu empfehlen!</li>
<li><span style="TEXT-DECORATION: underline"><strong># 12. FD Feedburner Plugin</strong></span> <!-- p-->- <a title="Feedburner wordpress plugins blog" href="http://wordpress.org/extend/plugins/feedburner-plugin/" target="_blank">http://wordpress.org/extend/plugins/feedburner-plugin/</a> <!-- p--><br />
Verlinkt die wichtigsten Feeds und optional sogar die Kommentare von Feedburner.com. Den Traffic von Feeds sollte man nicht vernachlässigen.  <!-- p--></li>
<li><span style="TEXT-DECORATION: underline"><strong># 13. WordPress.com Statistik</strong></span> <!-- p-->- <a title="wordpress plugin stats seitenaufrufe blog" href="http://wordpress.org/extend/plugins/stats/" target="_blank">http://wordpress.org/extend/plugins/stats/</a> <!-- p--><br />
Listet euch Seitenaufrufe von Artikeln und Seiten, Referrern, und generelle Klicks auf. Super zur Überwachung, welche Artikel wirklich gut ankommen. Zeigt die gleiche Oberfläche wie die WordPress.com Statistiken. Schön übersichtlich.<!-- P--></li>
<li><span style="TEXT-DECORATION: underline"><strong># 14. What would Seth Godin do</strong></span> <!-- p-->- <a title="willkommensnachricht für wordpress blog plugin" href="http://wordpress.org/extend/plugins/what-would-seth-godin-do/" target="_blank">http://wordpress.org/extend/plugins/what-would-seth-godin-do/</a> <!-- p--><br />
Zeigt eine benutzerdefinierte Willkommensnachricht für neue Besucher und vieles mehr. <!-- p--></li>
<li><span style="TEXT-DECORATION: underline"><strong># 15. Popularity Contest</strong></span> <!-- p-->- <a title="popularity contest plugin wordpress blog ranking" href="http://wordpress.org/extend/plugins/popularity-contest/" target="_blank">http://wordpress.org/extend/plugins/popularity-contest/</a> <!-- p--><br />
Dieses SEO Plugin ermöglicht die Ranking-Einsicht der populärsten Beiträge und zeigt außerdem das Verhalten der Besucher in einer sehr detailierten Auflistung.</li>
</ul>
</div>
<p></p>
<div>Weitere WordPress-Plugins können auf &#8211; <a title="wordpress plugins download blog" href="http://wordpress.org/extend/plugins/" target="_blank">http://wordpress.org/extend/plugins/</a> <!-- p-->gefunden werden. Jeder WordPress Blog braucht einige Plugins, da wordpress einfach nicht an alles denken kann. Die meisten Sachen wurden sehr gut gelöst, der Rest wird von fleißigen Community Mitgliedern durch Plugins nachgeliefert.<br />
Das Schöne an einem Blog ist doch, dass man ihn nach seinen eigenen Wünschen erstellen kann.</div>
<p></p>
<div>
<p>&nbsp;</p>
<p><!-- p--></p>
</div>
<p>Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/ping-dienste-deutsch-wordpress-blog/' rel='bookmark' title='Beste Ping Dienste für (deutsche) Blogs'>Beste Ping Dienste für (deutsche) Blogs</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>
<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>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://romanharcke.de/beste-wordpress-plugins-fuer-wordpress-blogger/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Einführung in HTML (Hyper Text Markup Language)</title>
		<link>http://romanharcke.de/einfuhrung-in-html-hyper-text-markup-language/</link>
		<comments>http://romanharcke.de/einfuhrung-in-html-hyper-text-markup-language/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 14:56:20 +0000</pubDate>
		<dc:creator>Roman</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[artikel]]></category>
		<category><![CDATA[harcke]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[roman harcke]]></category>

		<guid isPermaLink="false">http://surfopi.wordpress.com/?p=429</guid>
		<description><![CDATA[1. HTML (Hyper Text Markup Language) HTML (Hypertext-Kennzeichnungssprache) ist, als sogenannte Seitenbeschreibungssprache, zuständig für die Darstellung und Vernetzung von Informationen auf Webseiten im World Wide Web. In diesem Artikel beschreibe ich die Grundlagen des HTML. 2.1 Struktureller Aufbau einer HTML-Datei Das Besondere an HTML ist, dass es selbstständig zwischen gewöhnlichen Texten und Hypertextfunktionen (Querverweise) unterscheiden kann. So ist es also möglich durch logisches Markup &#8211; d.h. spezifizierte Angaben definieren logische Bedeutungen verschiedener Textelemente &#8211; Überschriften, Absätze, Zitate,&#8230; zu definieren. Die Definition dieser logischen Markups erfolgt durch sogenannte Tags. Tags können durch verschiedene Attribute genauer definiert werden (zum Beispiel Hintergrundfarbe). Beinahe jeder Tag muss von einem Endtag abgeschlossen werden. Ausgenommen hiervon ist zum Beispiel die neue Zeile Definition. &#60;Tagname Attribut &#62; &#8230; &#60;/Tagname&#62; Ein HTML-Code Beispiel: &#60;h1&#62;Überschrift 1&#60;/h1&#62;&#60;br /&#62; &#60;address&#62;Kursiv&#60;/address&#62; Als normaler Text erscheint der HTML Code so: Überschrift 1 Kursiv Es ist jedoch zu Beachten, dass natürlich verschiedene Tags ineinander geschachtelt werden können, jedoch müssen innenliegende Tags vor den außenliegenden Tags beendet werden. Richtig: &#60;tag1&#62; &#60;tag2&#62; &#8230;.. &#60;/tag2&#62; &#60;/tag1&#62; Falsch: &#60;tag1&#62; &#60;tag2&#62; &#8230;. &#60;/tag1&#62; &#60;/tag2&#62; 2.2 Allgemeiner HTML-Aufbau Jede HTML-Datei beginnt mit dem Tag &#60;html&#62; und endet mit &#60;/html&#62;. Jede Datei wird in zwei Bereiche gegliedert: Kopf &#8211; definiert durch [...]
Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/email-button-erstellen-mit-betreff-und-text/' rel='bookmark' title='eMail Button erstellen (mit Betreff und Text)'>eMail Button erstellen (mit Betreff und Text)</a></li>
<li><a href='http://romanharcke.de/sicheres-javascript-wer-kann-es-knacken-quiz/' rel='bookmark' title='Sicheres JavaScript? Wer kann es knacken? (Quiz)'>Sicheres JavaScript? Wer kann es knacken? (Quiz)</a></li>
<li><a href='http://romanharcke.de/facebook-werbung-entfernen-greasemonkey-script/' rel='bookmark' title='FaceBook – Werbung entfernen (Greasemonkey Script)'>FaceBook – Werbung entfernen (Greasemonkey Script)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>1. HTML (Hyper Text Markup Language)</h2>
<p>HTML (Hypertext-Kennzeichnungssprache) ist, als sogenannte <strong>Seitenbeschreibungssprache</strong>, zuständig für die Darstellung und Vernetzung von Informationen auf Webseiten im World Wide Web.<strong><br />
</strong>In diesem Artikel beschreibe ich die Grundlagen des HTML.</p>
<h2>2.1 Struktureller Aufbau einer HTML-Datei</h2>
<p>Das Besondere an HTML ist, dass es selbstständig zwischen <em>gewöhnlichen Texten </em>und <em>Hypertextfunktionen (Querverweise)</em> unterscheiden kann. So ist es also möglich durch <em>logisches Markup</em> &#8211; d.h. spezifizierte Angaben definieren logische Bedeutungen verschiedener Textelemente &#8211; Überschriften, Absätze, Zitate,&#8230; zu definieren.<br />
Die Definition dieser logischen Markups erfolgt durch sogenannte <span style="color:#ff0000;"><em>Tags</em></span>.<br />
Tags können durch verschiedene <span style="color:#ccffff;">Attribute</span> genauer definiert werden (zum Beispiel Hintergrundfarbe). Beinahe jeder <span style="color:#ff0000;"><em>Tag</em></span> muss von einem <span style="color:#008000;"><em>Endtag</em></span> abgeschlossen werden. Ausgenommen hiervon ist zum Beispiel die <span style="color:#ffff00;"><em>neue Zeile</em></span> Definition.</p>
<p><span style="color:#ff0000;">&lt;Tagname </span><span style="color:#ccffff;">Attribut</span><span style="color:#ff0000;"> &gt;</span> &#8230; <span style="color:#008000;">&lt;/Tagname&gt;</span></p>
<p><span style="text-decoration:underline;">Ein HTML-Code Beispiel:</span></p>
<blockquote><p><span style="color:#ff0000;">&lt;h1&gt;</span>Überschrift 1<span style="color:#008000;">&lt;/h1&gt;</span><span style="color:#ffff00;">&lt;br /&gt;</span><br />
<span style="color:#ff0000;">&lt;address&gt;</span>Kursiv<span style="color:#008000;">&lt;/address&gt;</span></p></blockquote>
<p><span style="text-decoration:underline;">Als normaler Text erscheint der HTML Code so:</span></p>
<blockquote>
<h1>Überschrift 1</h1>
<address>Kursiv</address>
</blockquote>
<p>Es ist jedoch zu Beachten, dass natürlich verschiedene Tags ineinander geschachtelt werden können, jedoch müssen <span style="color:#ff0000;"><em>innenliegende Tags</em></span> vor den <span style="color:#008000;"><em>außenliegenden Tags</em></span> beendet werden.</p>
<p><span style="text-decoration:underline;">Richtig:</span></p>
<blockquote><p><span style="color:#008000;">&lt;tag1&gt;</span></p>
<p style="padding-left:30px;"><span style="color:#ff0000;">&lt;tag2&gt;</span></p>
<p style="padding-left:30px;">&#8230;..</p>
<p style="padding-left:30px;"><span style="color:#ff0000;">&lt;/tag2&gt;</span></p>
<p><span style="color:#008000;">&lt;/tag1&gt;</span></p></blockquote>
<p><span style="text-decoration:underline;">Falsch:</span></p>
<blockquote><p><span style="color:#008000;">&lt;tag1&gt;</span></p>
<p style="padding-left:30px;"><span style="color:#ff0000;">&lt;tag2&gt;</span></p>
<p style="padding-left:30px;">&#8230;.</p>
<p><span style="color:#008000;">&lt;/tag1&gt;</span></p>
<p style="padding-left:30px;"><span style="color:#ff0000;">&lt;/tag2&gt;</span></p>
</blockquote>
<h2>2.2 Allgemeiner HTML-Aufbau</h2>
<p>Jede HTML-Datei beginnt mit dem <em>Tag</em> <strong>&lt;html&gt;</strong> und endet mit <strong>&lt;/html&gt;</strong>. Jede Datei wird in zwei Bereiche gegliedert:</p>
<ul>
<li><span style="color:#808000;"><strong>Kopf</strong></span> &#8211; definiert durch den Tag <span style="color:#808000;"><strong>&lt;head&gt; &#8230; &lt;/head&gt;</strong></span></li>
<li><span style="color:#33cccc;"><strong>Rumpf</strong></span> &#8211; definiert durch den Tag <span style="color:#33cccc;"><strong>&lt;body&gt; &#8230; &lt;/body&gt;</strong></span></li>
</ul>
<p>Im <strong>Kopf</strong> werden Informationen für Suchmaschinen hinterlegt, die Seitenüberschrift und Schlüsselwörter.<br />
Diese Informationen werden vom Browser im Hintergrund ausgelesen.<br />
Im <strong>Rumpf</strong> wird die eigentliche Infomation gespeichert, die auf der Webseite vom Browser dargestellt wird.<br />
Hierzu zählt die Erscheinungsform, zum Beispiel die Hintergrundfarbe oder die Schriftart.</p>
<blockquote><p>&lt;html&gt;</p>
<p style="padding-left:30px;"><span style="color:#808000;">&lt;head&gt;</span></p>
<p style="padding-left:60px;"><span style="color:#808000;">&lt;title&gt;Meine bl0gger Welt&lt;/title&gt;<br />
&#8230;</span></p>
<p style="padding-left:30px;"><span style="color:#808000;">&lt;/head&gt;</span></p>
<p style="padding-left:30px;"><span style="color:#33cccc;">&lt;body&gt;</span></p>
<p style="padding-left:60px;"><span style="color:#33cccc;">&#8230; (BodyInformationen)<br />
</span></p>
<p style="padding-left:30px;"><span style="color:#33cccc;">&lt;/body&gt;</span></p>
<p>&lt;/html&gt;</p></blockquote>
<p><span style="text-decoration:underline;">EXKURS:</span></p>
<p><em><strong>Durch Rechtsklicken auf meine Webseite, kann man sich in dem Menü den &#8216;Seitenquelltext anzeigen&#8217; lassen. Hier seht ihr wie eine (sehr große) HTML-Datei aussieht. Ebenfalls seht ihr hier ganz gut, wie kompliziert die Tags geschachtelt sind.<br />
Wenn ihr diesen Quelltext in den Editor kopiert und es dann als .html Datei abspeichert, könnt ihr die Seite wieder offline anschauen. Es sind also komplett alle Informationen der Webseiten im Quelltext gespeichert.<br />
</strong></em></p>
<h2>2.2.1 Kopf (Head)</h2>
<p>Die Information im Head-Bereich kann ein Element, oder bis zu sieben Elemente beinhalten.<br />
Diese Informationen werden nicht vom Browser auf der Webseite angezeigt.</p>
<blockquote><dl>
<dt><strong></p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">title</div></div>
<p></strong></dt>
<dd>Bezeichnet den Titel der Webseite, der in der Titelleiste angezeigt wird. Auf dieser Seite sieht man in der Titelleiste jedoch überall &#8216;<a href="http://bl0gger.de.vu" target="_blank">http:bl0gger.de.vu</a>&#8216;. Der Browser sieht diese Seite allerdings als: &#8216;<a title="Probiert es aus... Es geht wieder zu diesem Artikel." href="http://surfopi.wordpress.com/2008/10/30/einfuhrung-in-…arkup-languageeinfuhrung-in-html-hyper-text-markup-language/" target="_blank">http://surfopi.wordpress.com/2008/10/30/<span title="Klicken Sie, um diesen Teil des Permalinks zu bearbeiten.">einfuhrung-in-…arkup-language</span>einfuhrung-in-html-hyper-text-markup-language/</a>&#8216;</dd>
<dt><strong></p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">meta</div></div>
<p></strong></dt>
<dd>Hier werden Meta-Tags hinterlegt, die Suchmaschinen wie Google auslesen. <span style="color:#008000;"></p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;meta name=&quot;description&quot; content=&quot;Meine Bl0gger Welt - Kurze HTML Einführung mit Anwendungsbeispielen&quot; /&amp;gt;</div></div>
<p></span></p>
</dd>
<dt><strong></p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">base</div></div>
<p></strong></dt>
<dd>Gibt entweder eine Basis-URI oder einen Basisframe an.</dd>
<dt><strong></p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">link</div></div>
<p></strong></dt>
<dd>Dient zur Angabe von logischen Beziehungen zu anderen Ressourcen. Am häufigsten zur Einbindung von <a title="Stylesheets auf Wiki" href="http://de.wikipedia.org/wiki/Stylesheet" target="_blank">Stylesheets</a> benutzt.</dd>
<dt><strong></p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">script</div></div>
<p></strong></dt>
<dd>Bindet Code in einer bestimmten Skriptsprache ein, hauptsächlich <a title="JavaScript auf Wiki" href="http://de.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a>.</dd>
<dt><strong></p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">style</div></div>
<p></strong></dt>
<dd>Enthält Stylesheet-Code, hauptsächlich CSS-Regeln. Es enthält Informationen über Textformation und Darstellung der Webseite. Der Browser liest das Stylesheet zwischen</p>
<p><span style="color:#008000;">&lt;<span class="start-tag">style</span><span class="attribute-name"> type</span>=<span class="attribute-value">&#8220;text/css&#8221;</span>&gt;</span> und <span style="color:#008000;">&lt;<span class="start-tag">/style</span>&gt;<span style="color:#339966;">.</span></span></p>
</dd>
<dt><strong></p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">object</div></div>
<p></strong></dt>
<dd>Bindet eine externe Datei ein. Browser dürfen solche Objekte im Dokumentkopf nicht darstellen.</dd>
</dl>
</blockquote>
<h2>2.2.2 Körper (Body)</h2>
<p>Hab ich eigentlich schon weiter oben beschrieben.</p>
<p>Der Bodybereich einer Webseite reicht von dem Tag <span style="color:#008000;">&lt;body&gt;</span> bis zu dem abschließenden Tag <span style="color:#008000;">&lt;/body&gt;</span><br />
Zwischen diesen Bereichen sind alle Links, Seitenverzeichnisse, Bilder und normaler Text hinterlegt.</p>
<p>Ebenfalls findet man hier definierte Bereiche der Webseite.<br />
Bei mir z.B.<span style="color:#339966;">&lt;<span class="start-tag">div</span><span class="attribute-name"> id</span>=<span class="attribute-value">&#8220;page&#8221;</span>&gt;</span> und <span style="color:#339966;">&lt;<span class="start-tag">div</span><span class="attribute-name"> id</span>=<span class="attribute-value">&#8220;header&#8221;</span>&gt;</span></p>
<p>Hier wird die komplette Seite also als &#8220;page&#8221; definiert und der nächste Bereich ist der &#8220;header&#8221;.</p>
<blockquote><p><span style="color:#800080;">&lt;<span class="start-tag">div</span></span><span class="attribute-name"> id</span>=<span class="attribute-value">&#8220;header&#8221;</span><span style="color:#800080;">&gt;<br />
&lt;<span class="start-tag">h1</span>&gt;&lt;<span class="start-tag">a</span></span><span class="attribute-name"> href</span>=<span style="color:#339966;"><span class="attribute-value">&#8220;http://surfopi.wordpress.com/&#8221;</span></span><span style="color:#800080;">&gt;</span>- Meine bl0gger Welt -<span style="color:#800080;">&lt;/<span class="end-tag">a</span>&gt;&lt;/<span class="end-tag">h1</span>&gt;<br />
&lt;<span class="start-tag">div</span></span><span class="attribute-name"> class</span>=<span style="color:#339966;"><span class="attribute-value">&#8220;description&#8221;</span></span>&gt;iPhone Testberichte Uni Segeln Umwelt Bilder<span style="color:#800080;">&lt;/<span class="end-tag">div</span>&gt;</span></p></blockquote>
<p><strong>Äußern tut sich die Information im Header-Bereich so:</strong></p>
<pre><a href="http://surfopi.files.wordpress.com/2008/10/unbenannt.jpg"><img class="size-full wp-image-435 alignleft" style="margin:8px;" title="Mein_Header" src="http://surfopi.files.wordpress.com/2008/10/unbenannt.jpg" alt="" width="272" height="50" /></a></pre>
<p>Da der Header der erste Bereich ist, wird dieser vom Browser auch als erstes dargestellt.</p>
<p>Wie die Datei weitergeht und wie der erste/aktuellste Post in HTML dargestellt wird, erfahrt ihr durch rechtsklicken und &#8220;Seitenquelltext anzeigen&#8221;.</p>
<h2>3. HTML Verlinkungen &#8211; Verweise</h2>
<p>Die wohl wichtigste Eigenschaft der HTML Documente ist die Möglichkeit mehrere HTML Documente zu vernetzen/zu verlinken (Links bzw. Hypertext References).<br />
Hier kommen ebenfalls <em>Tags</em> zum Einsatz. Meistens wird ein <em>Link, </em>der vom Betrachter aktiviert werden kann,<em> </em>unterstrichen oder in einer anderen Farbe dargestellt.<br />
Je nach verwendetem Attribut dieser Hypertext Reference wird die Datei, auf der der Link zeigt, im gleichen oder in einem neuen Fenster/Tab geöffnet. Doch Links werden nicht nur auf HTML-Documente, sondern ebenfalls auf einzelne Dateien verlinkt. Hierzu muss diese Datei allerdings auf einem Server hochgeladen sein, und somit eine feste Adresse besitzen.<br />
Um einen Link zu erstellen benutzt man den Tag <span style="color:#ff0000;"><em><strong>&lt;a&gt;</strong></em></span><strong><em><span style="color:#ff0000;">&lt;/a&gt;</span></em></strong> (wie Anker) mit dem Attribut <span style="color:#33cccc;"><em><strong>href</strong></em></span> (Hypertext Reference). Zwischen den <em>Tags</em> kann man einen <span style="color:#ffcc00;">normalen Text</span> hinterlegen, der vom Browser anstatt der Webseiten-Adresse dargestellt wird.</p>
<blockquote><p><span style="color:#ff0000;">&lt;a</span> <span style="color:#33cccc;">href=&#8221;<span style="color:#3366ff;">http://www.bl0gger.de.vu</span>&#8220;</span><span style="color:#ff0000;">&gt;</span> <span style="color:#ffcc00;">Link auf meine Webseite</span> <span style="color:#ff0000;">&lt;/a&gt;</span></p></blockquote>
<p>Die <strong><span style="color:#3366ff;">URL</span> (Uniform Resource Locator)</strong> ist eine Adresse mit allen Angaben um Ort und Namen der Datei weltweit eindeutig zu bestimmen. Keine URL gibt es zweimal! Jede referenzierte Datei weltweit ist also durch ihre URL einzigartig.</p>
<h3><strong><span style="text-decoration:underline;">Aufbau der URL:</span></strong></h3>
<p style="text-align:left;"><strong>Protokoll: </strong>Dateiname/Directory/Datei#Target<br />
Das im Internet verwendete Übertragungsprotokoll ist <em>http</em>.</p>
<p style="text-align:left;"><strong>Domainname:</strong> Eine Domain kennzeichnet ein Verzeichnis auf einen Web-Server durch einen weltweit nur einmal vergebenen Namen.</p>
<p style="text-align:left;"><strong>Directory:</strong> Bezeichnet Unterverzeichnisse auf der Domain</p>
<p style="text-align:left;"><strong>Dateiname:</strong> Bezeichnet eine Datei in einem Directory</p>
<p style="text-align:left;"><strong>#Target:</strong> Bezeichnet eine Sprungdatei in einer Datei. Zum Beispiel einem <em>Anker</em>, eine Sprungdatei. Hier springt der Browser dann zu einer bestimmten Überschrift in der HTML-Datei.</p>
<p style="text-align:right;"><span style="color:#000000;">written by Roman Harcke</span></p>
<p>Ähnliche Artikel:<ol>
<li><a href='http://romanharcke.de/email-button-erstellen-mit-betreff-und-text/' rel='bookmark' title='eMail Button erstellen (mit Betreff und Text)'>eMail Button erstellen (mit Betreff und Text)</a></li>
<li><a href='http://romanharcke.de/sicheres-javascript-wer-kann-es-knacken-quiz/' rel='bookmark' title='Sicheres JavaScript? Wer kann es knacken? (Quiz)'>Sicheres JavaScript? Wer kann es knacken? (Quiz)</a></li>
<li><a href='http://romanharcke.de/facebook-werbung-entfernen-greasemonkey-script/' rel='bookmark' title='FaceBook – Werbung entfernen (Greasemonkey Script)'>FaceBook – Werbung entfernen (Greasemonkey Script)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://romanharcke.de/einfuhrung-in-html-hyper-text-markup-language/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

