Tom Alby Professionell bloggen mit WordPress ISBN-10: 3-446-41354-5 ISBN-13: 978-3-446-41354-2 Weitere Informationen oder Bestellungen unter http://www.hanser.de/978-3-446-41354-2 sowie im Buchhandel.
Vorwort........................................ XV Wichtige Hinweise................................. XVII 1 Blogs, WordPress und ein Blick zurück................... 1 1.1 Was ist ein Blog überhaupt?....................... 1 1.1.1 Hauptfunktionalitäten eines Blogs............... 1 1.1.2 Vorteile eines Blogs........................ 3 1.2 Eine kurze Geschichte des Bloggens.................. 4 1.2.1 Pre-Blog.............................. 4 1.2.2 Erste Popularität......................... 5 1.2.3 Durchbruch............................ 6 1.3 Der Aufstieg von WordPress....................... 7 1.3.1 b2/cafelog............................. 7 1.3.2 WordPress-Versionen....................... 7 1.3.3 WordPress.com versus WordPress.org............. 8 2 Was Sie vorher wissen sollten........................ 11 2.1 Die ersten Schritte............................. 11 2.1.1 Bevor Sie beginnen........................ 11 2.1.2 Erfolg messen........................... 12 2.1.3 Wichtige Schritte nach der Installation............. 18 2.1.4 Rechtliches............................ 18
VI 2.1.5 Optionale Schritte........................ 20 2.1.6 Tags versus Kategorien..................... 21 2.2 Aktivität auf dem Blog.......................... 23 2.2.1 Wo bleiben die Besucher?.................... 23 2.2.2 Wie bekomme ich Kommentare?................ 25 2.3 Wie verdiene ich Geld mit meinem Blog?............... 27 2.3.1 Darf man das überhaupt?.................... 27 2.3.2 Werbung via Google AdSense.................. 28 2.3.3 Vermietung von Links...................... 31 2.3.4 Bezahlte Beiträge......................... 32 2.3.5 Werbenetzwerke......................... 35 2.4 Business-Blogs............................... 36 2.4.1 Echtheit.............................. 36 2.4.2 Kommunikation......................... 38 2.4.3 Bloggende Mitarbeiter...................... 38 3 WordPress installieren und konfigurieren................. 41 3.1 Download der aktuellen Version und Hochladen auf Ihren Server. 41 3.2 Webhosting-Paket oder eigener Server?................ 42 3.3 Installation bei einem Hosting-Paket.................. 43 3.3.1 Voraussetzungen......................... 43 3.3.2 Vorbereitungen.......................... 45 3.3.3 Installation............................. 46 3.4 Installation auf einem eigenen Server.................. 49 3.4.1 Voraussetzungen und Vorbereitungen............. 49 3.4.2 Datenbank einrichten...................... 50 3.4.3 Installation............................. 51 3.5 Fehlerbehebung.............................. 51 3.6 WordPress einrichten........................... 53 3.6.1 Einrichten der Benutzer..................... 53 3.6.2 Konfigurieren der URLs mit und ohne mod rewrite..... 54 3.6.3 Die Datei.htaccess........................ 59 3.6.4 Installation eines Themes.................... 60 3.6.5 Installation eines Plugins.................... 61
VII 4 WordPress-Basisfunktionen......................... 65 4.1 Administration (Tellerrand)....................... 65 4.2 Schreiben.................................. 67 4.2.1 Beitrag schreiben......................... 67 4.2.2 Seite schreiben.......................... 71 4.3 Verwalten................................. 73 4.3.1 Beiträge.............................. 73 4.3.2 Seiten................................ 73 4.3.3 Uploads.............................. 73 4.3.4 Kategorien............................. 73 4.3.5 Dateien............................... 73 4.3.6 Import............................... 74 4.3.7 Export............................... 75 4.3.8 Akismet-Spam.......................... 75 4.3.9 Weitere Menüpunkte....................... 77 4.4 Kommentare................................ 77 4.4.1 Kommentare (Übersicht)..................... 77 4.4.2 Moderation erwartend...................... 78 4.5 Blogroll................................... 78 4.5.1 Blogroll verwalten........................ 78 4.5.2 Link hinzufügen......................... 79 4.5.3 Links importieren......................... 80 4.5.4 Kategorien............................. 81 4.6 Themes................................... 81 4.6.1 Themes (Übersicht)........................ 81 4.6.2 Widgets.............................. 81 4.6.3 Theme-Editor........................... 81 4.6.4 Headergrafik und -farben.................... 81 4.7 Plugins................................... 82 4.7.1 Plugins (Übersicht)........................ 82 4.7.2 Plugin-Editor........................... 82 4.8 Benutzer.................................. 83 4.8.1 Autoren & Benutzer....................... 83 4.8.2 Dein Profil............................. 83
VIII 4.9 Einstellungen............................... 83 4.9.1 Allgemein............................. 83 4.9.2 Schreiben............................. 85 4.9.3 Lesen................................ 88 4.9.4 Diskussion............................. 90 4.9.5 Privatsphäre............................ 93 4.9.6 Permalinks............................ 94 4.9.7 Verschiedenes........................... 94 4.10 Weitere Menüpunkte........................... 95 5 Erweiterte Nutzung.............................. 97 5.1 WordPress als CMS nutzen....................... 97 5.1.1 Was sind Seiten?......................... 97 5.1.2 Seiten im Blog verlinken..................... 98 5.1.3 Eine Seite inkludieren...................... 99 5.2 Via E-Mail bloggen............................ 99 5.2.1 E-Mail-Adresse einrichten.................... 99 5.2.2 WordPress für E-Mail-Blogging konfigurieren........ 99 5.2.3 Cron Job einrichten........................ 100 5.3 Externe Inhalte einbinden........................ 101 5.3.1 flickr................................ 101 5.3.2 Filme von YouTube & Co einbinden.............. 102 5.3.3 RSS-Feeds............................. 103 5.4 Maintenance................................ 103 5.4.1 Sicherheit............................. 103 5.4.2 WordPress aktualisieren..................... 113 5.4.3 Backup............................... 114 5.4.4 Mit einem Blog umziehen.................... 116 5.4.5 Aufräumen............................ 117 5.5 Tools.................................... 119 5.5.1 Press it............................... 119 5.5.2 Externe Clients: vom Desktop bloggen............ 119 5.5.3 Die XML-RPC-Schnittstelle................... 120 5.6 Tipps.................................... 120 5.6.1 robots.txt einrichten....................... 120
IX 5.6.2 WordPress für mobile Browser optimieren.......... 121 5.6.3 Eigene Datenfelder nutzen................... 122 5.6.4 Feeds anpassen.......................... 123 5.6.5 Den Feed vor Content-Klau schützen?............. 126 5.6.6 Mehrere Blogs mit einer Installation.............. 126 6 Plugins und andere Erweiterungen..................... 129 6.1 Bevor Sie ein Plugin installieren..................... 129 6.2 Woher bekomme ich ein Plugin?.................... 130 6.3 Populäre Plugins............................. 131 6.3.1 Spam bekämpfen: Akismet & Co................ 131 6.3.2 Optimierung für Suchmaschinen................ 133 6.3.3 Traffic-fördernde Plugins.................... 138 6.3.4 Helferlein, die das Schreiben erleichtern............ 140 6.3.5 Statistik.............................. 141 6.3.6 del.icio.us............................. 144 6.3.7 Administration.......................... 145 6.3.8 Feeds................................ 146 6.3.9 Geld verdienen.......................... 147 6.3.10 Design............................... 150 6.4 Weitere Plugins.............................. 150 6.4.1 sendmail/php mail()-alternative............... 150 6.4.2 Für Podcaster........................... 151 6.4.3 Einen Artikel herausheben................... 151 6.4.4 Eigenen PHP-Code ausführen................. 152 6.4.5 Vorschau für Kommentare.................... 152 6.5 Plugins selber erstellen.......................... 152 6.5.1 WordPress-API.......................... 152 6.5.2 Hooks............................... 153 6.5.3 Plugins und Datenbanken.................... 156 6.5.4 Plugins anderen zur Verfügung stellen............ 156 7 Themes...................................... 159 7.1 Themes anderer nutzen und anpassen................. 159
X 7.1.1 Wo finde ich Themes?...................... 159 7.1.2 Theme-Dateien.......................... 160 7.1.3 Widgets.............................. 165 7.2 Eigene Themes erstellen......................... 169 7.2.1 Allgemeines zur Theme-Entwicklung............. 169 7.2.2 The Loop.............................. 172 7.2.3 Der Header............................ 173 7.2.4 Der Footer............................. 175 7.2.5 Widget-kompatible Sidebar................... 175 7.2.6 Die Suchergebnisseite...................... 177 7.2.7 Die 404-Seite............................ 178 7.2.8 Ein Theme anderen zur Verfügung stellen........... 179 8 Template-Tags.................................. 181 8.1 Über Tags................................. 181 8.2 Rund um den Autor........................... 181 8.2.1 the author............................. 181 8.2.2 the author description...................... 182 8.2.3 the author login......................... 184 8.2.4 the author firstname....................... 184 8.2.5 the author lastname....................... 184 8.2.6 the author nickname....................... 184 8.2.7 the author ID........................... 184 8.2.8 the author email/get the author email............ 185 8.2.9 the author url........................... 185 8.2.10 the author link.......................... 186 8.2.11 the author aim.......................... 186 8.2.12 the author yim.......................... 186 8.2.13 the author msn.......................... 186 8.2.14 the author posts......................... 186 8.2.15 the author posts link....................... 187 8.2.16 wp list authors.......................... 187 8.3 Kategorien-Tags.............................. 187 8.3.1 the category............................ 187 8.3.2 the category rss.......................... 188
XI 8.3.3 single cat title........................... 188 8.3.4 category description....................... 189 8.3.5 wp dropdown categories.................... 189 8.3.6 wp list categories......................... 191 8.3.7 get category parents....................... 193 8.3.8 get the category......................... 193 8.4 Kommentar-Tags............................. 194 8.4.1 comments number........................ 194 8.4.2 comments link.......................... 195 8.4.3 comments rss link........................ 195 8.4.4 comments popup link...................... 196 8.4.5 comments popup script..................... 197 8.4.6 comment ID............................ 197 8.4.7 comment author......................... 198 8.4.8 comment author IP....................... 198 8.4.9 comment author email..................... 199 8.4.10 comment author email link................... 199 8.4.11 comment author url....................... 199 8.4.12 comment author url link.................... 200 8.4.13 comment author link...................... 200 8.4.14 comment type........................... 200 8.4.15 comment text........................... 201 8.4.16 comment excerpt......................... 201 8.4.17 comment date........................... 201 8.4.18 comment time........................... 201 8.4.19 comment author rss....................... 202 8.4.20 comment text rss......................... 202 8.4.21 comment link rss......................... 202 8.4.22 permalink comments rss.................... 202 8.5 Datum und Zeit.............................. 203 8.5.1 the date.............................. 203 8.5.2 the date xml............................ 203 8.5.3 the time.............................. 203 8.5.4 the modified time........................ 204 8.5.5 the modified date........................ 205
XII 8.5.6 get the time............................ 205 8.5.7 single month title......................... 205 8.5.8 get calendar............................ 205 8.6 Allgemeine Tags.............................. 206 8.6.1 bloginfo()............................. 206 8.6.2 get bloginfo............................ 207 8.6.3 bloginfo rss............................ 208 8.6.4 get bloginfo rss.......................... 209 8.6.5 wp title.............................. 209 8.6.6 wp get archives.......................... 210 8.6.7 get posts.............................. 212 8.6.8 wp list pages........................... 212 8.6.9 wp dropdown pages....................... 214 8.6.10 wp loginout............................ 215 8.6.11 wp register............................ 215 8.6.12 query posts............................ 215 8.6.13 rss enclosure........................... 217 8.6.14 the search query......................... 217 8.7 Link Tags.................................. 217 8.7.1 edit post link........................... 217 8.7.2 edit comment link........................ 218 8.7.3 wp link pages........................... 218 8.7.4 get year link............................ 219 8.7.5 get month link.......................... 219 8.7.6 get day link............................ 219 8.8 Links Manager Tags............................ 219 8.8.1 wp get links, get links list, get links.............. 219 8.8.2 wp list bookmarks........................ 220 8.9 Permalink Tags.............................. 223 8.9.1 permalink anchor......................... 223 8.9.2 get permalink........................... 223 8.9.3 the permalink........................... 223 8.9.4 permalink single rss....................... 223 8.10 Post Tags.................................. 224 8.10.1 the ID............................... 224
XIII 8.10.2 the title............................... 224 8.10.3 single post title.......................... 224 8.10.4 the title rss............................ 225 8.10.5 the content............................ 225 8.10.6 the content rss.......................... 225 8.10.7 the excerpt............................. 226 8.10.8 the excerpt rss.......................... 226 8.10.9 previous post link........................ 227 8.10.10 next post link........................... 227 8.10.11 posts nav link........................... 227 8.11 Tag Tags.................................. 229 8.11.1 the tags.............................. 229 8.11.2 wp tag cloud........................... 230 8.12 Trackback Tags.............................. 232 8.12.1 trackback url........................... 232 8.12.2 trackback rdf........................... 232 8.13 Template Include Tags.......................... 232 8.13.1 get header............................. 232 8.13.2 get footer............................. 233 8.13.3 get sidebar............................. 233 8.13.4 comments template....................... 233 8.13.5 Einbindung anderer Templates................. 233 8.14 Conditional Tags............................. 233 8.14.1 Was sind Conditional Tags?................... 233 8.14.2 Übersicht über alle Conditional Tags.............. 234 9 Die Zukunft von WordPress......................... 237 Anhang: WordPress Coding Guidelines.................... 241 Anhang: Action Hooks............................... 245 Anhang: Filter Hooks............................... 251
XIV Anhang: PHP-Datumsformate.......................... 265 Anhang: WordPress-Funktionen......................... 267 Literatur....................................... 279 Stichwortverzeichnis................................ 283