background preloader

WordPress Codex

Template Tags Languages: English • Español • Français • Italiano • 日本語 • 한국어 • Português do Brasil • Русский • ไทย • Türkçe • 中文(简体) • 中文(繁體) • (Add your language) Template tags are used within your blog's Templates to display information dynamically or otherwise customize your blog, providing the tools to make it as individual and interesting as you are. Below is a list of the general user tags available in WordPress, sorted by function-specific category. For further information on template tags and templates in general, see the following: Stepping Into Template Tags - an introduction to Template Tags. Note: If you have an interesting twist on the implementation of a template tag, you're encouraged to add to its documentation for the benefit of other WordPress users. Files Template tags files are stored in the wp-includes directory. Tags General tags wp-includes/general-template.php Author tags wp-includes/author-template.php Bookmark tags wp-includes/bookmark-template.php and wp-includes/bookmark.php

Conditional Tags Languages: English • Français • Italiano • 日本語 • Türkçe • Português do Brasil • 中文(简体) • (Add your language) Introduction The Conditional Tags can be used in your Template files to change what content is displayed and how that content is displayed on a particular page depending on what conditions that page matches. For example, you might want to display a snippet of text above the series of posts, but only on the main page of your blog. Note the close relation these tags have to WordPress Template Hierarchy. Warning: You can only use conditional query tags after the posts_selection action hook in WordPress (the wp action hook is the first one through which you can use these conditionals). However: if you have a reference to the query object (for example, from within the parse_query or pre_get_posts hooks), you can use the WP_Query conditional methods (eg: $query->is_search()) The Conditions For ... The Main Page is_home() When the main blog page is being displayed. The Front Page The Blog Page

Charger proprement Javascript dans Wordpress | Thibaut Soufflet - webdesigner [Total : 10 Moyenne : 3/5] Cet article vous sera d’une grande aide pour comprendre comment WordPress interprète les scripts JavaScript et enfin les faire fonctionner correctement. Dans quel cas êtes vous ? Cas n°1 : Vous souhaitez ajouter des scripts JavaScript à votre site WordPress. Cas n°2 : Après intégration de votre site sous WordPress, JavaScript ne semble plus se charger. Vous avez créé votre site en HTML/CSS et vous avez lié tout les scripts JavaScript dans votre page et tout fonctionnait bien avant l’intégration dans WordpPess. WordPress intègre déjà une bibliothèque jQuery Sachez d’abord que WordPress intègre d’origine une version de jQuery. L’erreur à éviter : charger la librairie jQuery et les scripts JavaScript dans le template de page Exemple (à ne pas suivre) : ….le contenu de votre page…. Dans cet exemple on demande le chargement de la bibliothèque jQuery en ligne version 1.8.2, puis l’exécution de nos 2 scripts « bootstrap.js » et « jquery.mobile.customized.min.js ».

Setting up Wordpress on Windows XP to use IIS 5.1 | Brokentoken.com I recently built a Windows XP virtual machine with the intention of doing wordpress theme development and testing on it. Getting WordPress up and running normally requires running Apache, MySQL and the wordpress binaries, but instead of running Apache, I wanted to use the version of IIS included in Windows XP. Getting everything for WordPress up and running wasn’t that difficult, but I wanted to record my steps and sources in case anyone else is considering doing the same. Also consider installing FTP with IIS so that you have a mechanism to move files in/out of the VM. I choose to go this route so I can more easily replicate my production server configuration since mapping drives and Windows networking is out of the question in an internet-facing/production scenario.PHP Installation After IIS is installed, and you are all patched up-to-date on XP, then perform the following to install and configure PHP on IIS 5.1: Congratulations! MySQL Installation phpMyAdmin Installation Final Thoughts

8 Alternatives to Google Analytics | Venveo Ever since Google Analytics launched back in 2005 it has empowered us to track almost every aspect of how our visitors interact on our sites. Google Analytics was not the first organization to offer free site performance tracking but their ability to pair this technology with their popular advertising platform AdWords instantaneously made them the 800 pound gorilla for online analytics. I've attempted to outline a couple alternatives and why you might want to choose them over (or in addition to) to Google Analytics. In Conclusion I think there are some really great players in the analytics industry other than Google Analytics. What they all can do well is measure trends for your website, and if you look at trends over time, you should notice more similarities than differences. What other alternatives to Google Analytics are our there that might be better?

WebZap - Photoshop panel plugin for web developers Plugin API Plugin API Languages: বাংলা • English • Español • Français • 日本語 • 한국어 • Português do Brasil • ไทย • 中文(简体) • Русский • (Add your language) Introduction This page documents the API (Application Programming Interface) hooks available to WordPress plugin developers, and how to use them. This article assumes you have already read Writing a Plugin, which gives an overview (and many details) of how to develop a plugin. These hooks may also be used in themes, as described here. Hooks, Actions and Filters Hooks are provided by WordPress to allow your plugin to 'hook into' the rest of WordPress; that is, to call functions in your plugin at specific times, and thereby set your plugin in motion. You can sometimes accomplish the same goal with either an action or a filter. For a thorough listing of all action and filter hooks in WP see Adam Brown's WordPress Hooks Database. Function Reference Actions Modify database data. The basic steps to make this happen (described in more detail below) are: where:

Récupérer la première image d'un article via PHP pour WordPress Si vous envisagez d’afficher une image sur votre page d’accueil ou de catégorie, mais que vous n’utilisez pas l’outil de miniatures incorporé dans WordPress et encore moins un script comme timthumb ou même un custom field alors il vous reste l’utilisation de cette fonction PHP. Testé et utilisé sur de nombreux sites personnels ! Cette fonction PHP peut être insérée notamment dans un fichier home.php ou index.php à l’intérieur d’une boucle. Elle aura pour effet de récupérer la première image présente dans votre article. Vous devez tout d’abord ajouter ces lignes de code dans le fichier functions.php : <? Vous remarquerez qu’il est possible d’indiquer une image par défaut à la ligne : $first_img = "/images/default.jpg"; Il nous faut ensuite identifier la zone où commence la boucle (loop) de WordPress puis appeler la fonction suivante : Podcast: Download (Duration: 3:23 — 0.0KB) Sur le même thème Tout savoir sur la gestion des miniatures (thumbnails) avec WordPress 7 août 2011 Dans "Design"

How to install WordPress 3.0 on XP and IIS 5.1 Manually | Domain Web Center PART I – Install PHP on IIS 5.1 (Win XP) Manually For instructions see Download file php-5.2.13-Win32.zip from Alternatively, download php-5.2.13-nts-Win32.zip (nts stands for Not-Threat-Safe) Unzip it into C:\Program Files\PHP Copy, create or edit php.ini file Either add PHPRC environment variable pointing to C:\Program Files\PHP\ Or add C:\Program Files\PHP\ to the PATH PART II – Configuring IIS to process PHP requests Download Microsoft FastCGI Extension for IIS 5.1 and 6.0 from Install fcgisetup_1.5_rtw_x86.msi Add PHP entry to IIS mapping. Go to IIS Admin – Default Web Site – Properties – Home Directory – Configuration – Mappings and add .php extension pointing to C:\WINDOWS\system32\inetsrv\fcgiext.dll and limit verbs to GET,HEAD,POST: This step is not mentioned in most manuals. PART III – Configure MySQL Database PART IV – Configure WordPress 3.0 on IIS

How to Write a Copyright Notice One of the most common questions I get asked is “Does the copyright notice in my footer look ok?” Though I’m quick to remind everyone that you don’t need to have a copyright symbol or any kind of notice on your work for it to be copyright protected, at least not since 1978 in the U.S., having a copyright footer on your site is probably a good idea just because of the large amount of confusion on this issue and it does put potential infringers on notice, reducing “innocent infringer” claims. Besides, you don’t want people believing that your work is available for copying freely if it isn’t. So what should you put in your copyright footer? The formula is actually very simple and there’s only a few things that you’ll likely want to include. So, this should only take a moment to master though it can save a lot of headaches, time and money down the road. The Four Elements Typically, a copyright notice contains four different elements, each of which are brief but important. Tying it Together Related

Learn Web Development with the Ruby on Rails Tutorial Template Hierarchy Languages: English • Français • Italiano • 日本語 • 한국어 • Русский • Español • Português do Brasil • 中文(简体) • (Add your language) Introduction WordPress Templates fit together like the pieces of a puzzle to generate the web pages on your WordPress site. Some templates (the header and footer template files for example) are used on all the web pages, while others are used only under specific conditions. What this article is about This article seeks to answer the following question: Which template file(s) will WordPress use when it displays a certain type of page? Who might find this useful Since the introduction of Themes in WordPress 1.5, Templates have become more and more configurable. Using Conditional Tags WordPress provides more than one way to match templates to query types. The Template File Hierarchy The General Idea WordPress uses the Query String — information contained within each link on your website — to decide which template or set of templates will be used to display the page. Examples

Related:  web prescence