background preloader

Stupid WordPress Tricks

Stupid WordPress Tricks
One of the most popular articles here at Perishable Press is my January 2005 post, Stupid htaccess Tricks. In that article, I bring together an extensive collection of awesome copy-&-paste HTAccess code snippets. Four years later, people continue to tell me how much they enjoy and use the content as a bookmarked reference for many of their HTAccess needs. The article was even published in a book on Joomla! This is very inspiring to me, so I have decided to create a similar post for all of the useful WordPress code snippets, tips and tricks that I have collected while working on Digging into WordPress, the new book by co-author Chris Coyier and myself that really “digs in” to all of the awesome ways to get the most out of WordPress. If you are one of the millions of people who use WordPress, this article will help you improve the appearance, functionality, and performance of your WordPress-powered websites. Table of Contents WordPress Shortcodes ↑ ..which will output the following code: <! Related:  Trucs & Astuces

10 NEW WordPress Wanted Hacks and Powerful Techniques » DevSnipp by Noura Yehia WordPress is becoming so powerful that you can use it to do whatever comes in your mind. User love it for its flexibility, you have plugins to enhance its power and you can hack your theme code to add unique functionality. In this article, we’ll show you 10 new powerful WordPress hacks, tricks and plug-ins with a good explanation, so you understand how it works and modify it to your needs. 1. Post Image Feature (the_post_thumbnail) the_post_thumbnail is one of my favorite additions to WordPress 2.9, a new thumbnail feature for themes where you will be able to easily upload a post thumbnail. To add support for the post image feature in a theme, You only need one line of code to turn this feature in your theme. add_theme_support( 'post-thumbnails' ); After that, you’ll need to call the image somewhere within The Loop in your template files. The previous code calls for medium-sized images in your template files. 2. 3. 4. /** * Close comments on an old post. 5. 6. 7. 8. 9. 10.

WordPress 3.7 : Les mises à jours automatiques Je ne fais jamais d’annonce de sortie des versions de WordPress, d’autres sites et twitter le font très bien, mais là, j’avais envie de vous parler un peu des mises à jour automatiques et de leur paramétrage. De plus, 2 nouvelles defines sont apparues, ce qui rends mon e-book sur les constantes déjà obsolète ! Configurer les mises à jour automatique en arrière-plan « En arrière-plan », c’est bien sûr sans votre aide que WordPress pourra se mettre à jour, c’est tout l’intérêt de la chose. Pas de panique justement, par défaut seules ces mises à jours mineures (x.x.x, version avec 3 niveaux de chiffres) et les traductions sont mises à jour en arrière-plan. Dans WordPress 3.7, il existe quatre types de mises à jour automatiques de fond : Les mises à jour du core,Les mises à jour de plugins,Les mises à jour de thème,Les mises à jour de fichiers de traduction. Mises à jour du core Elles sont subdivisées en trois types : Des filtres finement réglés Mises à jour des Plugins & Thèmes Lire la suite

WordPress Custom Field Template Plugin Tutorial 1/13/2011 – New and improved function used for retrieving custom field data for the current post called base_get_all_custom_fields(). This function will run a database query to get all custom fields attached to the current page, post or post type and store them in an array. WordPress is great for dynamically managing the content of a website, but sometimes you encounter situations that require advanced management to handle different sections of a single page. It’s would be great if we could manage separate chunks of content with more than one WYSIWYG. The best solution I’ve found for this situation is the Custom Field Template plugin. Setup Your Template Download and activate Custom Field TemplateGo to Settings > Custom Field TemplateCustomize Your Template. Template Code Add this under Settings > Custom Field Template > Custom Field Template Options Box Use The get_custom_field() Function to Get Custom Fields Individually Open up your theme’s functions.php file. Block #1 Block #2 if( !

Installing WordPress Languages: English • Español • Deutsch • বাংলা • Français • Italiano • Nederlands • のインストール 日本語 한국어 • Português • Português do Brasil • Русский • Slovenčina • Српски • ไทย • 中文(简体) • 中文(繁體) • (Add your language) WordPress is well-known for its ease of installation. Under most circumstances, installing WordPress is a very simple process and takes less than five minutes to complete. The following installation guide will help you, whether you go for the Famous 5 Minute Installation, or require the more detailed installation guide. Things to Know Before Installing WordPress Before you begin the install, there are a few things you need to have and do. These are: Things You Need to Do to Install WordPress Begin your installation by: Checking to ensure that you and your web host have the minimum requirements to run WordPress. Famous 5-Minute Installation Here's the quick version of the instructions for those who are already comfortable with performing such installations. That's it! Using Plesk a. b.

50 Ways to Take Your Blog to the Next Level | chrisbrogan.com Blogging is as varied in its applications as using the telephone or taking a picture. The tool doesn’t predict the output. You might be using your blog to post recipes, or to inform the local community about information you find elsewhere on the web. Maybe you’re just trying your hand at writing, and the web is as good a place as any. If you’re looking to go beyond that, however, you’ll need to take steps to improve your blog from at least five different perspectives. 50 Ways to Take Your Blog to the Next Level Make Your Goal and Target Audience Crystal Clear My point with this entire post, but most especially this section is to ask you to admit what your real goals are with your blog. If your goal is to be an entertainment or news blog, be very clear that it’s that and not a “fun” blog. Beauty Is More Than Skin Deep Consider the design elements of your blog. Get your own unique URL. Make Your Content Top Notch Growing quality blog posts isn’t magic. Put your blog posts on a diet.

28 Free Wordpress Photo Gallery Themes | TutZone A Photoblog (or photolog, or phlog) is a form of photo sharing and publishing in the format of a blog. It differs from a blog through the predominant use of and focus on photographs rather than text. Photo blogs are designed primarily to showcase photographs or logos or even artworks. They are easy to set up and help the photographers and designers from complex HTML and PHP coding. The popularity of photoblogs have gone beyond expectations over the last few years. Fotofolio It is a wordpress theme for photographer either any visual works portfolio (graphic designer, drawer, architect, etc). Viewport Viewport is a free WordPress theme featuring a clean and simple layout with sliding ‘panels’ displaying images to represent posts. WP Foto Theme Wp Foto theme is single layout theme designed for photo blogger. Grace – PhotoBlog Theme Grace is a stylish, minimalistic photoblog theme for WordPress and it’s completely FREE! PhotoView Work-a-holic Gallery Photo Clip Zack-990 Linquist Free Photo Gallery Grain

WordPress Optimization There are many reasons why you may want to optimize your WordPress blog. Primarily, you want your site to load quickly. That of course encompasses a number of other things such as wanting to make sure your site can handle large volumes of traffic without choking and making sure your site's processes aren't being killed due to using too many server resources. While doing this, there are a number of different avenues of attack. You can adjust the configuration WordPress runs in. What's slowing me down? A slow site boils down to three reasons: Too much traffic Bad theme Bad Plugin While you may hear people saying you should use as few plugins as possible, this really isn't the case. Using a good theme is even more challenging. Remember, it's not just the plugin or the theme or the traffic, but the combination there in. Do I need Caching plugins? The number one question people have is do they need to use caching and/or a caching plugin. Which PHP do I use? CGI FastCGI mod_php (5.2 only)

The Comprehensive Guide for a Powerful CMS using WordPress – Part one: 101 Techniques for a Powerful CMS using WordPress - Noupe Design Blog May 05 2009 This is the first article in the three-part series, “The Comprehensive Guide for a Powerful CMS using WordPress”. Throughout this article, we’ll be focus on many WordPress Theme hacks, ideas, tips and useful tutorials you need to have ready in hand when developing WordPress websites. The Comprehensive Guide for a Powerful CMS using WordPress – Part 2 The Comprehensive Guide for a Powerful CMS using WordPress – Part 3 There are some technical stuff we have to get out of the way first. WordPress CMS Hacks and Tricks 1. By default, a WordPress home page shows chronological blog post entries — with the most recent post at the top. How To » In your admin area, just go to Setting » Reading. Points to take care » First problem you may run into when you make a static page your home page is that the link to that page now appears in the main site navigation. 2. Adding too many pages to a WordPress blog that has a navigation bar in the header can really make your WordPress blog a mess. 3.

New WordPress Keyboard Shortcuts | TutZone (Build 20100722155716) WordPress Keyboard shortcuts are a good option to save your time by allowing you to perform your actions quickly. These shortcuts make job of administration a lot easier and more user friendly. If you know more shortcuts other than which are listed below, please feel free to share. I’ve listed the shortcuts in two categories, one which works in HTML editor and other which work in Visual editor. Hope you find them handy. These Keyboard Shortcuts will work on the HTML Editor: Blockquote: Alt+SHIFT+q Bold: Alt+SHIFT+b Code: Alt+SHIFT+c Insert date/time: Alt+SHIFT+s Insert IMG URL: ALT-SHIFT-m Italics: Alt+SHIFT+i Line Break: SHIFT+Enter Link: Alt+SHIFT+a List Item (li): Alt+SHIFT+l Ordered List (ol): Alt+SHIFT+o Publish the Post: Alt+SHIFT+p Read More: Alt+SHIFT+t Redo: CTRL+y Strikethrough: Alt+SHIFT+d Undo: CTRL+z Unordered List (ul): Alt+SHIFT+u These Keyboard Shortcuts will work on the Visual Editor: Address: CTRL+9 Advanced Editor (Kitchen Sink): Alt+SHIFT+z Align Center: Alt+SHIFT+c Format: CTRL+8

Related: