Moving to WordPress multisite and broken images

If you notice some broken images as you look around my site, this is because I have just moved to a WordPress multisite installation. Having to update lots of blogs each time a security update comes out began to get a little tiring, and after a few hacking incidents, I have decided to bring blogs together under a single code base where I can keep a better eye on them.

Consequently, there has been and still is a bit of a learning curve for me, and I have managed to break the links to most of the images on this blog. Where the path used to be /wp-content/month/day/filename.jpg, they now seem to be /files/filename.jpg – and as you can see since the original files don’t have a consistent path, I can’t just do a find and replace… I have now enabled the “Uploads Use Yearmonth Folders” option but this isn’t retrospective. Any tips on how to fix this without some extremely complicated regular expressions and URL rewriting gratefully received!

However, less time maintaining and updating blogs will hopefully mean more time blogging…

WordPress Plugin: Flexible Upload

I have long been frustrated by the way WordPress handles image uploads. Normally I have to resize an image first, before I upload it, if I want it to span the width of a post. In K2, my current theme, this is 500px. I’ve always wished that I could just upload an image, and have it automatically resize (via GD or ImageMagick) to the right size and dump the original.

There are plugins that can do some basic image management, but from tinkering over the last few years they have been rather, well, workflow unfriendly.

This post is to test how well the Flexible Upload plugin works, which claims to allow you to set default image and thumbnail size which will be resized at upload, through WordPress’ inline uploader.

Here is a test upload with a screenshot of this post in progress:

Flexible Uploader Test

It worked! Here is a screenshot of the resizing options:

Flexible Uploader UI

And here are the display options, visible after upload:

Flexible Uploader Display Options

This is a superb plugin – just what I was after. Get the WordPress plugin Flexible Upload at Ma Tasse de Thé.