Datum ohne Snippet
Einfach in den Text einfügen. © Copyright 2012 – <script>document.write(new Date().getFullYear());</script>
Einfach in den Text einfügen. © Copyright 2012 – <script>document.write(new Date().getFullYear());</script>
[Snippet] Adding your custom taxonomy to post/page list in WordPress WordPress Mapping URL to a File Introducing WordPress 3 Custom Taxonomies Using manage_posts_columns in WordPress Add Custom Column To WordPress Post Manage Page Add a Custom Column in Posts and … Weiterlesen →
Update 2012-06-18: Eigentlich ist die Lösung, Pierre-Henri sei Dank, über preg_match zu erreichen. strrpos() – Findet das letzte Vorkommen eines Zeichens innerhalb einer Zeichenkette stripos() – Findet das erste Vorkommen eines Strings, unabhängig von Groß- und Kleinschreibung strripos() – Findet … Weiterlesen →
Screencast #91: The WordPress Loop Zwei Loops auf der Startseite: WordPress Custom Loops youtu.be/kWa-u0kAzgI Adding PHP conditionals inside The Loop PHP – While Loops (Conditional Loops) PHP – Nested Conditional Loops Dann paar Links: www.kristarella.com/2010/02/wordpress-custom-loops… themeshaper.com/forums/topic/index-loop-latest-pos…
Kostet Geld (20 Euro im Monat), ist aber saugut erklärt.
regexp-evaluator.de/tutorial/php-funktionen/preg-r… Der hier scheint ganz großartig: www.danielfett.de/internet-und-opensource,artikel,… www.schattenbaum.net/php/ereg.php www.topsoft.at/pstrainer/pstrainer.php
Plugin URI: www.thepathwebdesign.com/articles/thepath-tabbed-w… Description: Plugin for displaying Recent Posts, Popular Posts and Featured Posts. This plugin is great if you have limited space in your sidebar (or widget area). Requires WordPress.com Popular Posts and Yet Another Featured Posts Plugin to … Weiterlesen →
Adding and removing functions to/from hooks # It always works the same when you are adding and moving stuff. you add FUNCTIONS to HOOKS. think of hooks like parking spots. some are empty, some have cars on them. you can … Weiterlesen →
Dans la logique des thèmes WordPress, vous serez vous amené à visiter le code source de votre fichier single.php. Mais qui est-il ? Que fait-il ? A quoi sert-il ? Découverte de ce fichier single.php Répondons immédiatement à la question … Weiterlesen →
// Default post editor text // add_filter( 'default_content', 'diww_default_post_content' ); function diww_default_post_content( $content ) { $content = ' // Any stuff you would put into your HTML '; return $content; }
Bei Basti mal alle Fehler anzeigen lassen ist, hust, furchbar (viel). <?php // Error Reporting komplett abschalten error_reporting(0); // Nur einfache Fehler melden error_reporting(E_ERROR | E_WARNING | E_PARSE); // E_NOTICE ist sinnvoll um uninitialisierte oder // falsch geschriebene Variablen zu … Weiterlesen →
(Quelle: computeraxe.com/paths-building-wordpress-themes-pl…) When tinkering with the code that runs WordPress it’s very important to get the correct path to a file. Of course it is or else the files can’t be found and your new functionality won’t work. According to … Weiterlesen →
Folgendes in die functions.php des Themes schreiben: <?php //Das hier sagt "Bau irgendwas in den Head ein" add_action('wp_head', 'irgendwas'); //Und hier wird irgendwas definiert function irgendwas() { ?> //irgendwas hier einsetzen <?php } ?> Irgendwas ist natürlich durch irgendwas zu … Weiterlesen →
<?php // Custom-Login nach Frank Bueltge bueltge.de/wordpress-27-login-design-anpassen/846/ // modifiziert nach themeshaper.com/forums/topic/bloginfotemplate_dire… function gr_custom_login() { echo '<link rel="stylesheet" type="text/css" href="' . 'gr-01.de/ci/wp/gr-login.css" />'; } add_action('login_head', 'gr_custom_login'); ?>
Die functions.php des aktiven Themes der WordPress-Installation öffnen, in deren Head der Google-Analaytics-Code erscheinen soll. Wenn die Datei noch keine Befehle enthält sieht sie so aus: [php]<? ?>[/php] Jede PHP-Datei fängt mit „<?“ an und hört mit „?>“ auf. Davor … Weiterlesen →