Category Archives: WordPress

WordPress Post Thumbnails: Migrating from Custom Fields to the Featured Image API

I had post thumbnails on this blog a long time before the feature became a part of the WordPress core. Some of you out there may have, too. The technique that was generally used before the friendly “Featured Image” box, and its associated theme API, was added to WordPress, we generally just pasting image URLs into custom fields and outputted them into an image tag in the theme. Basically, like I recommended in this old post from 2008.

When WordPress 2.9 was released, bringing with it an “official” way to handle thumbnails, I was a little bit annoyed. I had tons of posts where I had existing thumbnails that would have to be somehow updated, or else I would have to come up with some clever way to be backwards-compatible. So I just put it out of my mind and left things the way they were…until this year.

Redesigning gave me an excuse to modernize a lot of the stuff going on behind-the-scenes, and one of the things I improved was the handling of post thumbnails. The solution was easy: write a function to handle two methods of applying a thumbnail, and check both places for a thumbnail. The code looks something like this:

Continue reading →

Launch: A Free WordPress Tumblog Theme

Looking for a stylish microblogging theme for WordPress, so you can mix in some Tumblr-style posts with your longer writings? Themezilla’s “Launch” theme is a fresh choice. It supports the post formats API, and even includes the PSD source files if you want to…

Crowd Favorite’s WordPress Post Formats Admin UI

Back in WordPress 3.1, a new feature called Post Formats was added to enable theme developers to more easily denote different types of posts in order to make “tumblog” themes. But the feature is lacking as it stands today. The UI is simply not…

Easily Embed Whole Tweets in Your Blog Posts With Tweetable 1.2.4

Have you ever wanted to embed an entire tweet into a WordPress post for some reason? Maybe you were doing a short write-up about a recent news story, and wanted to quote someone’s amusing tweet on the matter. You could just use a simple…

The Hidden All Settings Screen in WordPress

WordPress uses a universal system known as wp_options to store data values for core functions as well as plugins. If you modify an option in the Settings section, it’s processed and stored in the wp_options database table. Plugins usually operate in the same way,…

WooThemes Launches Free E-Commerce Plugin WooCommerce

WooThemes recently announced the launch of their free WordPress e-commerce plugin, WooCommerce, along with a few themes with built-in integration. This is one of our biggest release to date and it’s absolutely free. WooCommerce is an all-new plugin application and library of integrated themes for…

How to Add A Floating Social Media Widget Box to Your Blog

Now that most blogs are starting to pare-down their social media buttons and go with the dynamic widgets offered by the three or four largest social media sites, you’ve probably seen a few sites with a floating box that hovers along the left side,…

WordPress Admins Can Post JavaScript in Post Comments

Here’s an interesting fact about WordPress: users with Administrator or Editor privileges are allowed to post unsanitized JavaScript or markup in Post comments. I discovered this by accident when I was leaving a Facebook API example for a commentator, and posted a code snippet…

Missing the Favorites Menu in WordPress? Add a Makeshift Replacement.

In WordPress 3.2, the favorite actions menu was removed during the latest UI refresh. If you’re like me, you had used its hooks to add your own links to frequently-used sections of the admin. I had even made a plugin that allowed me to…

How to Defeat Cyrillic Spam in WordPress

Lately, I have been getting a lot of Cyrillic comment spam. It tends to slip past Akismet, as well as the built-in WordPress spam filters. They’re always spam, never legit comments. (As this is an English-language blog, there wouldn’t be much point for somebody…