wp_enqueue_style, versioning and conditional CSS comments

Tagged WordPress

I like to enqueue my CSS styles because it has the benefit of adding a version string. A link like style.css?ver=0.7 is useful because it will force visitors to download an updated style.css when the version number is increased. Here’s what I currently use in my functions.php: (more…)

Ajax For All WordPress Blogs

Tagged WordPress plugin

This is a new plugin of mine that will turn many existing WordPress blogs and their themes into Ajax-powered blogs. The best way to see what this plugin does is to look at the live demo. (more…)

WordPress is stupid

Tagged WordPress

In case you haven’t been aware of this, WordPress core developers think that potentially breaking thousands of links on thousands of sites is an accepatable edge case. Here’s a great summary of what has been said. (more…)

Password protecting the wp-admin directory

Tagged lighttpd

Several places recommend to block the WordPress admin area with a password. While this certainly is a good idea, implementing it properly is non-trivial. (more…)

How to add support for navigation menus to your WordPress theme

Tagged WordPress

The new navigation menus system in WordPress 3.0 looks promising, but in my opinion it’s not very usable yet. Anyway, here’s one way to add navigation menus to your theme while maintaining backward compatibility:

In your theme’s functions.php add something like the following code: (more…)

WPMU fast backend switch

Tagged WordPress plugin

I recently converted several simple WordPress installs into a single WPMU install. As I use all of the blogs myself I wanted a quick way to switch between the various backends. This is probably only useful if you don’t have too many blogs and use all of them yourself. The switch links will be added to your super admin menu. (more…)

WordPress 3.0 network lighttpd rewrite rules

Tagged lighttpd

I recently installed my first WordPress network on lighttpd and was looking for rewrite rules. This post is correct except for the rewrite rule for files. I supposed it’s a change that was introduced in 3.0, or maybe earlier. Anyway, here are updated rewrite rules: (more…)

Nesting WordPress loops

Tagged WordPress

Sometimes it’s useful to put a WordPress loop inside another loop. To do this you’ll have to create a new WP_Query object, as in this example: (more…)

Visitor Movies for WordPress

Tagged WordPress plugin

Did you ever want to know what exactly your visitors are doing on your site? Watch them!

A client of mine wanted a plugin to log what users type into forms. I kind of didn’t see the point at first. But a few days later I was a little annoyed that there was apparently no free alternative to websites like clixpy, clicktale and similar services. (more…)

Convert WordPress pages to posts

Tagged WordPress Deutsch

I like WordPress, but I don’t like the WordPress page system at all. That’s why I recently converted all my plugin pages to posts. My main reasons for doing so were: (more…)