Matt Brett's logoMatt Brett

Development Archive

7 articles

WordPress Post Thumbnails Revisited

Shortly after the release of WordPress 2.9, I published my technique for bulletproof post thumbnails. Since then, it's evolved yet simplified into a more robust solution, specifically for use in WordPress themes. The problem, was that each image uploaded was generating a new set of images in various sizes, on top of the three that WordPress creates by default. This resulted in 6 or 7 images, instead of just a handful. While this isn't really a huge deal, it means you're going to be using more space on your server, and the uploads directory will get a bit unruly.

FAQ: “How do you build your WordPress themes?”

This is probably the single most frequently asked question that arrives in my inbox, or elsewhere. And for good reason, I suppose. Seeing how I've been building sites on top of WordPress exclusively for about 3 years now. There are many different routes you can take when building a theme, and I've pretty much streamlined my method over the past couple years. Granted, there are always exceptions and I've found that I can't work from a base template. Instead, I build "themes" from the ground-up, but with a little help. Here's how...

Here, Have My Bare Bones Stylesheet

A few weeks ago, I finally got around to doing something I've been meaning to get to for ages. I created a bare bones stylesheet that I can use as a starting point for new projects. I established a set of common selectors months ago and found myself spending (or rather, wasting) time at the beginning of the CSS phase of every project re-writing virtually the same CSS. It only made sense to create a template for myself to save time, but you know how it is. "Create Bare Bones Stylesheet" sat as an unmarked to-do in Basecamp forever.