Category Archives: Codecraft

Add New Headers to WordPress Plugins or Themes

I’ve had a few patches committed to WordPress core in the last few versions, and have sadly neglected to do writeups about them so that others could take advantage of the new features. I hope to remedy that in the next few posts. First off, WordPress 2.9 has a new feature that allows you to [...]

Virtual Multiblog helper app

Hackadelic has released a (beta) WordPress plugin designed to automate using Virtual Multiblog. This is still in development, but the initial test I did looks promising. Basically the plugin creates an interface in the WP admin for creating new virtual installs. If you’re interested in playing with unfinished software, go check out the Hackadelic Multiblog [...]

Strider Core — coming soon

I’m working on an integrated core system for WordPress plugins — including common code and automatic “best version” detection of more than one plugin uses the same core.

Hit a Moving Target in your WordPress Plugin

In recent changes to WordPress code, users are more than ever able to customize folder and file locations. [Edit: Refers to WordPress 2.6] The wp-config.php file can now be located one directory up from the one containing WordPress. The wp-content folder can be moved arbitrarily, as can (separately) the plugins folder. What’s a poor plugin [...]

Virtual Multiblog — how to use unique headers on blogs running the same theme

One of the most common questions I get regarding the Virtual Multiblog system for WordPress comes from people wanting to have multiple blogs running on the same theme, but with a different header for each blog. It can be done, and it’s fairly easy to do. Once you have it set up, you could use [...]

WordPress Constants

In the course of working on WordPress, and plugins and such for WordPress, I frequently find myself at a loss to remember the name of constants provided by the system. Hey, isn’t there a constant for such-and-such directory? I did a bit of grepping and parsing just now, and in the hopes that it might [...]

Use Custom Actions in Your WordPress Plugins

If you’ve been using WordPress for any amount of time, you’ve probably come across a plugin that asks you to add something to your template. The instructions will say something like: Insert the following into your theme files where you want the plugin’s widget to appear: <?php my_plugin_widget() ?> The slightly more intelligent instructions will [...]

More than a mere WordPress plugin — Automatic Timezone

Otto has released his Automatic Timezone Plugin as part of the current WordPress plugin competition. In addition to being a handy plugin, it comes with a significant bonus for plugin authors. In addition to its basic function, the code is designed to serve as a tutorial of sorts, showing authors how to use some very [...]