background preloader

Template_Hierarchy.png (Image PNG, 1550x730 pixels)

Template_Hierarchy.png (Image PNG, 1550x730 pixels)

WP-PageNavi You can either install it automatically from the WordPress admin, or do it manually: Unzip the archive and put the wp-pagenavi folder into your plugins folder (/wp-content/plugins/).Activate the plugin from the Plugins menu. Usage In your theme, you need to find calls to next_posts_link() and previous_posts_link() and replace them. In the Twentyten theme, it looks like this: <div class="nav-previous"><? <div class="nav-next"><? You would replace those two lines with this: For multipart pages, you would look for code like this: and replace it with this: <? Go to WP-Admin -> Settings -> PageNavi for configuration. Changing the CSS If you need to configure the CSS style of WP-PageNavi, you can copy the pagenavi-css.css file from the plugin directory to your theme's directory and make your modifications there. Alternatively, you can uncheck the "Use pagenavi.css?"

Advanced Custom Fields Advanced Custom Fields is the perfect solution for any wordpress website which needs more flexible data like other Content Management Systems. Visually create your FieldsSelect from multiple input types (text, textarea, wysiwyg, image, file, page link, post object, relationship, select, checkbox, radio buttons, date picker, true / false, repeater, flexible content, gallery and more to come!)Assign your fields to multiple edit pages (via custom location rules)Easily load data through a simple and friendly APIUses the native WordPress custom post type for ease of use and fast processingUses the native WordPress metadata for ease of use and fast processing Field Types Tested on Mac Firefox :)Mac Safari :)Mac Chrome :)PC Safari :)PC Chrome :)PC Firefox :)iPhone Safari :)iPad Safari :)PC ie7 :S Website Documentation Bug Submission and Forum Support Please Vote and Enjoy Your votes really make a difference!

WordPress 2.2 – Modifier les widgets originaux « burninghat Lors de la conception du thème « NewBurn » pour ce blog, j’ai été confronté à un sérieux problème de conception. Je voulais qu’il soit « widget ready » MAIS les widgets d’origine (et notamment les widgets « Recherche » et « Pages ») ne me convenaient pas du tout. « Recherche » car il ne tenait pas compte du fichier « searchform.php » du thème (étonnant d’ailleurs vu que ce n’est pas le comportement original de la sidebar, c’est un truc que je ne m’explique toujours pas au niveau de WP2.2) et « Pages » car il ne permet d’exclure des pages de la liste (celle de « Navigations » dans mon cas) ou de personnaliser la moindre l’affichage du listing. Après moults recherche sur le forum de WordPress-fr et dans le Codex WordPress ainsi qu’avec l’aide de l’article de CSS4Designr, j’ai trouvé une solution qui ne me convenait guère (solution 1) et qui ne permet d’ajouter des éléments « perso » à la sidebar. Solution 1 – Editer le fichier « wp-include/widget.php« fonction originale fonction modifiée

Function Reference/the post thumbnail Function Reference/the post thumbnail Languages: English • Italiano • 日本語 • Македонски • (Add your language) Description Display the Featured Image (previously called Post Thumbnails) for the current post, as set in that post's edit screen. This tag must be used within The Loop. Use get_the_post_thumbnail($id, $size, $attr ) instead to get the featured image for any post. Use has_post_thumbnail() to check whether a Feature Image has been added to the post. To enable post thumbnails, the current theme must include add_theme_support( 'post-thumbnails' ); in its functions.php file. Usage Parameters $size (string/array) (Optional) Image size. Default: 'post-thumbnail', which theme sets using set_post_thumbnail_size. PLEASE NOTE: The crop does not work in WP 3.0+. $attr (array) (Optional) Array of attribute/value pairs. Default: None $default_attr = array( 'src' => $src, 'class' => "attachment-$size", 'alt' => trim(strip_tags( $wp_postmeta->_wp_attachment_image_alt )), ); Examples Default Usage <? <? <?

Installing WordPress in Your Language Installing WordPress in Your Language Languages: English • Bosanski • 日本語 • Português do Brasil • Slovenčina • 中文(简体) • (Add your language) Although WordPress displays in U.S. English by default, it has the built-in capability to be used in any language. The WordPress community has already translated WordPress into many languages, and there are Themes, translation files, and support available in many other languages (see WordPress in Your Language). To install an international version of WordPress, you have two choices. Follow the instructions provided for your language listed at WordPress in Your Language If specific instructions are not available, follow the instructions below to manually install language files to your Wordpress site. Manually Installing Language Files Here are the steps you will need to follow to install an international version of WordPress. Note: If you make an error in the steps or you do not specify the correct language, WordPress will default back to English.

Documentation - Events Manager for WordPress Installation and Setup For those of you new to Events Manager, we highly recommend you check out our getting started page, which gives a quick overview of how to get up and running. Your Events Once you’ve installed Events Manager, it’s time to start adding event and locations! Here’s some handy links to help you along the way. Advanced Usage Requires knowledge of HTML.There are several ways of showing your events throughout your site. Placeholders – change event page information/layoutsConditional Placeholders – placeholders that display on conditions being metShortcodes – for pages/postsEvent Search Attributes – add filters and options to shortcodesCustom Event/Location Fields – Add custom fields to your eventsOptimization Recommendation – plugin-specific tips to speed up your websiteGeneral Optimization Recommendations – more tips to speed up your websiteUpgrading to Dev-Versions – Get the latest and greatest! Developer Docs & Tutorials Finding Help

Quelques optimisations .htaccess pour Wordpress. Depuis que je suis sous WordPress, j’essai de grapiller la moindre petite optimisation possible afin que mon site soit le mieux visible et le plus navigablement possible pour mes différents lecteurs. On trouve souvent à droite à gauche deux ou trois conseils, et dans cet article je vais vous faire partager mes paramètres pour le fichier htaccess. Pour commencer, j’ai intégrer ces 4 lignes : SetEnv REGISTER_GLOBALS 0 SetEnv ZEND_OPTIMIZER 1 SetEnv MAGIC_QUOTES 0 SetEnv PHP_VER 5 Il parait que c’est dédié pour les hébergements OVH, mais les commandes restent standard sur les serveurs Apaches. On désactive la directive REGISTER_GLOBALS qui n’apporte rien à WordPress, tout comme la directive MAGIC_QUOTES avec « SetEnv MAGIC_QUOTES 0″. On active cependant le module ZEND_OPTIMIZER qui permet d’optimiser le code pHP et de mettre en cache les requêtes les plus utilisées On active aussi le PHP en version 5 qui sera bien utile pour pas mal de module WordPress.

Conditional Tags 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. 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). The Conditions For ... All of the Conditional Tags test to see whether a certain condition is met, and then returns either TRUE or FALSE. The Main Page is_home() When the main blog page is being displayed. The Front Page is_front_page() When the front of the site is displayed, whether it is posts or a Page. The Blog Page is_front_page() and is_home() There is no conditional tag for the blog page. is_admin() is_page()

Mastering WooCommerce Products Custom Fields | Remi Corson - WordPress Expert Developer WooCommerce is without any doubt the more powerful e-commerce plugin for WordPress. And what i love with WooCommerce is that there’s an API for nearly everything. Today, i decided to show you how you can customize WooCommerce dynamically, and in particular how to add custom fields to any WooCommerce products. Here is the final result of what you’ll learn to do in this post: If you want to add custom fields to product variations, click here! As you can on the screenshot above we will see how to add custom fields to the product edition page. To begin we will add custom fields to the product general tab, we will see later how to add custom fields to the other tabs, and how to create your own tabs. The right hooks The first step is to hook an action to woocommerce_product_options_general_product_data. Adding New Fields The snippet above link two custom functions to the right hooks. Text Field Type To create a text field type, you will need to use that code: Number Field Type Textarea Field Type

Using HTML5 To Transform WordPress’ TwentyTen Theme - Smashing Magazine

Related: