'

How well Alister Cameron nailed down in 2008 – The future of WordPress Themes

Looking behind, in the past, it’s so intriguing. What big names, involved in the develop of WordPress since the beginning, said of the future? What did they think it was going to happen? Not many of them expressed reliable previsions, I may say (from my comfy chair in the 2012 – admittedly quite unfair). You can read tons of comments [...more]

WordPress, how to customize a Widget in the Dashboard

WordPress how to customize a Widget in the Dashboard

Here’s a trick I’ve just discovered and I’d like to share with others. When you enter in the Back End of a WordPress website the Dashboard is there to welcome you. The screen contains few widgets, preformatted with news and feed from the WordPress’ network. I guess few of us pay actually attention to those details since we’re usually too [...more]

How to implement LESS in WordPress, first approach

How to implement LESS in Wordpress, first approach

I recently discovered LESS, as defined by its creator “The dynamic stylesheet language”. A method to write CSS using variables, functions and improved classes. I fell immediately in love with it and I pondered about how to implement LESS into my WordPress development and workflow. In fact I want my new themes to be responsive and if I’m right in [...more]

You don’t need TimThumb, use add_image_size for Thumbnails

matrioska

How to use add_image_size and the_post_thumbnail in our themes. Being TimThumb still an excellent plugin, it’s time to give him a break: we have better ways to manage thumbnails in WordPress. No doubt that TimThumb is a wonderful script. It allowed me to avoid the tangle to re-upload pictures for old articles when switching to a new theme. I thought [...more]

Sanitize the Google Analytics Tracking Code

Stay Safe with the Google Analytics Tracking Code

Is it a safe practice to let users copy and paste any kind of Javascript, assuming they’ll just use a tracking code? How can you validate such a code and keep it safe from malicious scripts? I decided to take a different approach, I accept (and validate) only an ID. The last day I had a thought, perhaps naive, but [...more]

Functionality Plugins vs a Framework’s Library

Just read an interesting article on WP-Candy about a method to easily porting functionality from theme to theme, extracting those single features and coding them into plugins that add each a single precise function. I thought others may have considered to get inspired by that article, so here my two cents. You can think of it as a portable functions.php [...more]

Introducing Loop Magic

Loop Magic is an approach to the WordPress loop. It has the purpose to reduce duplications of the code, keeping the theme slim and simple. It accounts for all the different loops a theme may need to perform, keeping the control room in one unique location. This should ensure better management. WordPress is organized in several key files, each with [...more]

Google Syntax Highlighter Reloaded

Not happy with methods and plugins to highlight codes, I’m presenting a solution to load the scripts only where necessary, aiming to deliver soon a proper plugin for WordPress. As quick note, I realized that the task may need a proper plugin. I’m working on it and I’ll publish something about in the next days. Stay tuned. After few test, [...more]

WordPress, save an image as featured

Copenhagen Harbour, a sunny day

A step by step guide to the post thumbnail for WordPress. More appropriately the Featured Image. Just recently, I published few resources and articles about how to enhance the Post Thumbnail feature, via the functions.php file. Still a consistent part of visitors seem to look for a more simple, straightforward approach. Let’s see how to activate and use the Featured [...more]

WordPress, showing a post thumbnail (Featured Image), or picking up the first picture in the body of the post

WordPress, showing a post thumbnail (Featured Image), or picking up the first picture in the body of the post, Timthumb folder

How to retrieve the post’s thumbnail, no matter what. If a Featured Image has been set, that will be used. If not, the first picture inserted in the body of the post will be used instead. If still any picture isn’t available, we have two options: show a default picture, or entirely skip the code for the post’s thumbnail. With [...more]

Page 1 of 212