background preloader

Création de thèmes

Facebook Twitter

Powerful WordPress Tips And Tricks. 14 key WordPress functions to jump-start theme development. After a few years (or even months) of designing and developing WordPress themes, especially for clients, you start to realize that a lot of the functionality can be standardized or distilled down into a “starter theme or kit”. This helps get the development process started and moving along apace. The best first step in doing this, I’ve found, is to nail down most of the common functions and include them in the functions.php. This functions.php file will need to be extended to meet the particular theme’s needs as new projects arise, but it will provide a more than awesome starting point for development. There are about 13 key functions that I like to start out with and will add to them as needed… 1. The navigation menu feature, introduced in WordPress 3.0, allows for the intuitive creation and maintaining of navigation menus in themes.

At the very least, a standard theme will need a main navigation menu, perhaps in the header and a secondary navigation menu in the footer. <? <? 2. 3. If ( ! GenerateWP. Ajouter de multiples galeries de médias sous WordPress. La gestion des galeries photos sous WordPress est restée très sommaire dans sa gestion. Il est notamment impossible de gérer de multiples galeries associées à un article / page sous WordPress. Pourtant, il existe un moyen simple et rapide pour insérer un nombre illimité de galeries que voici.Un de mes derniers projets consistait à présenter des photos sous forme de galeries simples dans une page WordPress.

Entre l’utilisation des fonctionnalités de gestion de base fournies par WordPress et l’installation du plugin NextGen Gallery, il y a un gap comme dirait les anglais ! C’est alors que j’ai trouvé mon bonheur avec le plugin Multiple Galleries. Et oui, pas de code à copier / coller dans un fichier aujourd’hui… Cet excellent module fait une chose et il le fait très bien : il ajoute un système de case à cocher dans l’outil de gestion de galeries de WordPress. N’attendez plus et téléchargez donc ce plugin génial : Multiple Galleries Taille : 68, 4 KiB • Date : 6 novembre 2012 • Hits : 1 797.

The Complete Guide To Custom Post Types. WordPress has been gaining a foothold in the general content management system (CMS) game for a few years now, but the real breakthrough was the custom post type mechanism which allows for the creation of a wide variety of content. Let’s take a look at how this came to be and all the options that this great functionality offers. 1Some of the custom post types you can create in WordPress. What It Used To Be Like In practice, custom post types have been around for a long time, more specifically since February 17, 2005, when WordPress 1.5 added support for static pages, creating the post_type database field.

The wp_insert_post() function has been around since WordPress 1.0, so when the post_type field was implemented in 1.5, you could simply set the post_type value when inserting a post. By version 2.8, the register_post_type() function and some other helpful things were added to the nightly builds, and when 2.9 came out, the functions became available to everyone.

Creating Custom Post Types. Translate a WordPress Theme in 3 Easy Steps | Solostream. Last updated on Lately, more and more people are asking us how to translate a WordPress theme into a language other than English. And with an estimated 2 billion people now online, it’s no wonder. Fortunately, it’s a fairly straightforward process, and I’ve boiled it down into 3 simple steps. This tutorial assumes the WordPress theme to be translated has been localized using the the GNU gettext framework. In other words, the theme is ready to be translated. If your theme has not been localized, you’ll need to go through each theme file and convert all English language text into a gettext function. See here for a short description on how to do that. 1. POT stands for “Portable Object Template,” and a POT file (aka .po file) is basically a list of all the English-language text found within the files of a localized WordPress theme.

If you’re using a theme other than a Solostream theme (gasp), check with the theme author to see if they offer a POT file. 2. 3. Define ('WPLANG', 'fr_FR'); Gadgetine Wordpress Theme for Premium Magazine Preview. How to Create Simpler Login URL in WordPress for Your Clients. Rediriger vers un article au hasard dans WordPress. Creating a custom WordPress theme options page.

How to Integate Pagination in WordPress without Plugins | blogsrain. 25+ Extremely Useful Tricks for the WordPress Functions File. How To Create Custom Taxonomies In WordPress - Smashing WordPress. WordPress functions.php Snippets | WP FUNCTION ME.