background preloader

Wordpress %%µ!**]=)

Facebook Twitter

Afin que vous puissiez découvrir les avantages de wordpress;
sous les amandiers fleurissent les mondes en sourdine!

Astuces utiles avec wp-config de WordPress. WordPress CMS › Plate-forme de publication › WordPress Geekeries. Les plugins pour bien commencer : l’expérience utilisateur. Tout savoir sur la gestion des miniatures (thumbnails) avec WordPress. Depuis la version 2.9 de WordPress, les miniatures d’articles ont fait leur apparition sous la forme d’un module « Image à la une » dans l’éditeur. Ces miniatures nécessitent que le thème prenne en charge une telle fonctionnalité ce qui est encore loin d’être le cas. Je vous propose donc de suivre ce tutoriel pour rendre compatible votre thème et de bénéficier ainsi d’une fonctionnalité au combien utile.

La plupart des blogs actuels affichent une miniature pour accrocher le lecteur à côté du titre et de la description d’un article. C’est le cas sur WordPress Channel et sur un nombre incalculable de blogs. Activer la prise en charge des miniatures d’articles Pour activer la prise en charge des miniatures, rendez-vous dans le module Apparence puis Éditeur.

Editez ensuite le fichier functions.php et rajoutez les lignes de code suivantes : if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' ); } Choisissez un fichier image à définir comme une image à la une Ou. Getting Started With WordPress Shortcodes. Twenty Eleven Theme. Twenty Eleven is the default theme for WordPress in 2011. There are tons of really cool improvements and features packed into it — more Post Formats, beautiful new header images, alternate color schemes and layouts, even custom link colors. All those features add up to the best part of Twenty Eleven: just how customizable it is. It looks great as a blog, a showcase of all your posts, and even a tumblelog or photolog. Post Formats Twenty Eleven features seven Post Formats that help the look of your blog posts better match what you’re publishing.

Alongside the Standard Format (for traditional blog posts and longer articles) are six additional Formats; Aside, Link, Gallery, Status, Quote, Video, and Image. The Aside Format is for shorter posts of about 1 paragraph. The Gallery Format is meant for posts using the Gallery shortcode. The Status Format is for short personal updates. If you have a post that’s almost entirely a quote, the Quote Format will make those quotes stand out. Pull Quotes. Handy WordPress Code Snippets for Your Themes Part 2. Ive mentioned before abuot the importance of having an army of useful code snippets and functions you can use when coding your WordPress themes, I found this really cool website which lists loads of them so check it out.

Today’s post is a roundup of some of the most handy ones I could find. Pagination without a Plugin This snippet creates a classic paging navigation like the one seen in WP-PageNavi, which give a better overview for the user. It’s easy to implement and gives you total control over the output. Then add this to your theme within the loop : You can use the following CSS to customise the look : Limit Number of Words in the Excerpt This snippet let’s you limit the allowed number of words used in the exerpt. Then add this to your theme within the loop, change 41 to the number of words you wish to use : Add custom post type to feed If you’re using custom post types on your WordPress site, you have to manually add it to the main RSS feed. Pull in the tags related to a category. How to Display Recent Posts in WordPress. Displaying Recent posts often helps your users to visit them easily specially on the sidebar of a single post page.

But in some designing processes people want to display recent posts in many different ways. In this post, we will show you various different ways you can display the recent posts in WordPress. Displaying Recent Posts in a List Format The list format is mostly used in sidebars of WordPress pages. You can display the recent posts by simply pasting the following code in a template file of your choosing for example sidebar.php: You can change the number 10 to the number of posts you like to display. If your theme support Widgets, then there is an easier option for you.

Displaying Recent Posts with Summary Some people like to display recent posts with a title and a short description. The first way is: <ul> <? And you make sure that the excerpt is a short description of the post. You may change the 250 to set the character limit of your desire. Displaying Recent Posts with Full Content. 45+ Fresh Wordpress Tutorials, Techniques and Hacks. In this article we have collected 45 fresh WordPress tutorials and techniques, with some hacks, guides and best practices thrown in for good measure.

Everyone, not just developers, should take something from this round-up. The growth and popularity of WordPress continues to spiral to a seemingly endless end. It continually proves itself time time and again that it has very few limitations, and is rapidly pushing itself to being, if not the best, but certainly the most versatile CMS available. Out of the box it is certainly not perfect, but in the hands of the huge WP community, it might just be. How To Create a WordPress Theme: The Ultimate WordPress Theme Tutorial In detailed 11 individual lessons this tutorial will show you how to build a powerful, up-to-date, SEO friendly WordPress theme from scratch. Custom WordPress Homepage with Customizable Widgets How to Build a Custom WordPress Theme from Scratch WordPress Theme from Scratch How To Design A Clean and Minimal Portfolio Website.

How to Create a Theme Development Environment for a Live WordPress Site – Inspect Element. 11th January, 2010 Tom Kenny Tutorials Any good website owner knows that they need to be constantly looking at ways to improve their site even through small little tweaks. If you’re using WordPress you’ll notice that it isn’t easy to create a development version without creating a separate installation. Of course, you can make changes directly on a live WordPress site but that isn’t recommended for anything other than minor tweaks.

With the help of an excellent plugin for WordPress called Theme switch and preview, this tutorial will allow you to easily switch between the live site and development versions using two different themes on the same installation of WordPress. We’ll do this by creating a bar at the top of the page which will clearly show you if you’re viewing the live theme (what everyone else sees) or the development theme with a link to switch between the two. Step 1: Install Theme Switcher WordPress Plugin Step 2: Create a Copy of the Current Theme <? <? <? Additional Styling. 5 Ways To Include Template Files In WordPress. As long as you work with WordPress, you’ll realize that some code is repeated itself many times, like the loop.

The new Twenty Ten theme in WordPress 3.0 has put loop code in into a loop.php file to make it separated, and when it’s needed, just include it into theme file. Why don’t we follow that? Separating a repeatitive code into a file is a good way to organize and manage code. It keeps our code cleaner, easier to read. 1.

The first way to include a template file into current file of course is built-in PHP instructions: include and require: include TEMPLATEPATH . Or include(TEMPLATEPATH . (We can use it as PHP instruction or as function) This method is fastest way because it does the job as simple as possible. 2. load_template() load_template() is just the WordPress version of require()! Load_template(TEMPLATEPATH . 3. locate_template() To check file existence, we can use locate_template(). Locate_template($template_names, $load); 4. get_query_template() They can be used like this:

10 Exceptional WordPress Hacks. Advertisement One of the reasons people love WordPress so much is its great flexibility. You can change the software’s appearance with themes. You can enhance its functionality with plug-ins. And, last but not least, you can totally unleash WordPress’ power with hacks. Some time ago, we wrote a post showing 10 Killer WordPress Hacks1. Today, let’s do it again with 10 new and totally killer WordPress hacks to make your blog stand out from the crowd.

As usual, we won’t just list the hacks alone. You may be interested in the following related posts: 1. The problem. The solution. Code explanation. Using the PHP function file_get_contents(), we can get it and assign it to the $tinyurl variable. Source: How to: Automatically provide TinyURLs for your WordPress blog posts6 2. The problem.

The solution. <div id="zukunft"><div id="zukunft_header"><p>Future events</p></div><? Once you’ve saved the file, your upcoming posts will be displayed on your blog. Code explanation. How to: List future posts7 3. Main Page. WordPress Francophone. 10 Useful WordPress Loop Hacks. The loop is a very important aspect of WordPress blogs. In fact, the loop is what allows you to get posts from your WordPress database and print them on the screen. A set of useful and user-friendly functions, the loop is incredibly powerful. With it, you can get a single post, a list of posts ordered by date, title or category, a list of posts written by a specific author and much more.

In this article, we’ll show you 10 useful things you can do with the WordPress loop to make your blog even more powerful than it is right now. You may be interested in the following related posts: 1. Image source: Shutterstock The problem. The solution. <? Code explanation. As a result, the “WHERE” clause contained in the filter_where() function is added to the end of the SQL query contained in the post_where() function, which means that the loop will return posts published only between the two dates specified in the filter_where() function. Source 2. The problem. The solution. Code explanation. 3. <? 4. 5. <? 4 Ways to Loop with WordPress. At the heart of the WordPress theme template is the venerable WordPress loop. When you’re looking at your index.php file, for example, the loop is the part that typically begins with if(have_posts()) and contains all the tags and markup used to generate the page.

The default loop works perfectly well for most single-loop themes, but for more advanced designs with stuff like multiple and custom loops, more looping power is needed. Fortunately, WordPress provides plenty of flexibility with four ways to loop: Each of these looping methods is useful in a variety of situations. They share a lot of the same underlying functionality, and the query parameters are essentially the same. The Default Loop The default WordPress loop looks something like this: <?

So what makes it “default”? Based on the query that is sent, the default loop will display a certain number of posts from a certain category from a certain date, and so on. Loop with query_posts() When to use? Loop with WP_Query() <? <? <? Function Reference/query posts. Languages: English • Italiano • 日本語 • 中文(简体) • Português do Brasil • (Add your language) Description Note: This function isn't meant to be used by plugins or themes. As explained later, there are better, more performant options to alter the main query. query_posts() is overly simplistic and problematic way to modify main query of a page by replacing it with new instance of the query.

It is inefficient (re-runs SQL queries) and will outright fail in some circumstances (especially often when dealing with posts pagination). Any modern WP code should use more reliable methods, like making use of pre_get_posts hook, for this purpose. query_posts() is a way to alter the main query that WordPress uses to display posts. It should be noted that using this to replace the main query on a page can increase page loading times, in worst case scenarios more than doubling the amount of work needed or more.

For general post queries, use WP_Query or get_posts query_posts( 'posts_per_page=5' ); Caveats Usage <? The Loop in Action. The Loop in Action Languages: English • Español • 日本語 • 中文(简体) • Українська • Русский • (Add your language) Introduction "The Loop" is the main process of WordPress. You use The Loop in your template files to show posts to visitors. You could make templates without The Loop, but you could only display data from one post. Before The Loop goes into action, WordPress verifies that all the files it needs are present.

If the user didn't ask for a specific post, category, page, or date, WordPress uses the previously collected default values to determine which posts to prepare for the user. After all this is done, WordPress connects to the database, retrieves the specified information, and stores the results in a variable. By default, if the visitor did not select a specific post, page, category, or date, WordPress uses index.php to display everything.

The World's Simplest Index Page The Default Loop Begin The Loop First, it checks whether any posts were discovered with the have_posts() function. <! Super Loop: Exclude Specific Categories and Display any Number of Posts. Readers occasionally ask for help with their WordPress loops. Usually, these requests involve modifying the loop with some customized functionality. Frequently, such customization involves one of these popular behaviors:Exclude a specific categoryExclude multiple categoriesDisplay only one post or excerptDisplay some fixed number of postsPlay nice with additional loops on the same page In this article, I present the swiss-army knife of WordPress loops. This highly versatile, “super” loop is standard WordPress code, easily implemented, and fully equipped to handle all of the custom behaviors mentioned above.

Further, the PHP employed is self-contained, making it ultra-easy to pimp it up tough with your own (X)HTML markup. This tight little loop is perfect for “latest-post” excerpts, “aside” posts, news/headlines, site updates, urgent messages, and so much more. The Complete Code As is our custom here at Perishable Press, we present the full code offering right up front. The Breakdown Usage. Top 10 Content Slider Plugins for Wordpress.

The use of sliders may be ubiquitous, but how people use them is changing. While many still use the all-encompassing slider front-and-center on their home page, others find niche uses like dynamically showcasing products or blog content. When it comes to WordPress, there are plenty of plugins available to cater to these different uses. However, there are some shared features that any good slider should include. The biggest ones are ensuring that sliders are responsive and work well on mobile devices. You’ll also want to use a plugin that lets you customize the order and size of each slide. Beyond that, there are a ton of extra bells and whistles to be had. Here are ten WordPress slideshow plugins that you can download for free. Video Slider & Slider Carousel If you’re looking for a way to showcase video content, check out Video Slider.

The plugin also accepts videos from a variety of sources, including locally-hosted MP4 files, YouTube, Vevo, and Vimeo. Soliloquy Slider Plugin MetaSlider. Défilement infini sur WordPress avec Infinite Scroll. Custom Menus. If you have a theme that supports the Custom Menus feature, you can create and arrange a group of navigation links for your visitors to find the important parts of your site faster. Most Custom Menus will show in the header area at the top of your site (the main navigation area), though this location can vary from theme to theme.

With some themes, you may have the option to create and display multiple custom menus in different places on your site, such as the footer or special sidebar areas. Creating a custom menu allows you to do the following things: Change the order of pages in your menu, or delete them! This video shows the basic steps for creating your first custom menu, and you can read more about each feature (plus advanced tricks) below. To create a custom menu, go to Appearance → Menus in your dashboard. To create a new menu, click the create a new menu link, then just type in a Menu Name (to help you remember what it is), and click the Create Menu button. ↑ Table of Contents ↑ Jetpack by WordPress.com. The Welcomizer. 125 High Quality Free WordPress Themes Of All Time. Premium WordPress Themes | Elegant Themes. Comment utiliser les « shortcodes » de WordPress | Themes et Extensions WordPress - LabWP.com ;)

Shortcodes Ultimate. » WordPress 2.5 Shortcodes » BlueDog. 10 Awesome Shortcodes For Your WordPress Blog. Shortcode API.