Author: simonwheatley

  • Migration to bbPress – fix topic slugs

    So I’ve just had to migrate a whole load of data to bbPress, and unfortunately the fairly old migration tool I was using (while generally excellent) didn’t bring across the topic-slugs, meaning I couldn’t have pretty permalinks in bbPress. So I’ve written a quick plugin which creates the topic slugs, it does this by doing…

  • Installing ImageMagick on MacPorts and imagick on PECL

    Over the last few hours I’ve installed ImageMagick on MacPorts (super easy), and imagick on PECL (not so much). Xentek‘s post on ImageMagick and imagick was a great help, and got me past the first brick wall I hit (passing in the ImageMagick prefix to prevent it complaining about Wand-config)… but then I couldn’t get…

  • Editing many posts at once in WordPress

    Need to edit many posts at once in WordPress? Is the standard limit of 15 posts on the Posts Edit screen just not enough for you? Well, there is a hack you might be interested in. This involves editing the core WP files, so is not recommended as a permanent solution or for production sites……

  • Restoring deleted files from an SVN repository

    I’ve always idly thought that one of the brilliant things about version control was that you could recover accidentally deleted files when it became necessary. Well that scenario arose today, and I realised I had absolutely no idea how to do it.

  • Individual languages for WordPress Mu sites

    For WordCamp UK 2009, we’re having a dual language site (currently in the works, but hopefully near completion soon), where the content will be available in English or Welsh (as our host city is Cardiff). I had a scout around the various multi-language plugins, and none of them really seemed to hit the spot (mostly…

  • WordCamp UK 2009, theme translation file

    WARNING: Of interest only to those involved in translating the Wordcamp UK 2009 theme into Welsh! WordCamp UK 2009 POT file – for translating the theme into Welsh (or any other language). For more information, see the WordPress Internationalisation information.

  • Page load hooks in the WordPress admin area

    There are a number of really handy hooks, each of which are specific to a page in the WordPress admin area. You can use these action hooks to enqueue scripts on particular pages, to process form requests, etc, etc. Despite these hooks being so handy, and despite using them a great deal, every time I…

  • Problems with Time Machine endlessly preparing

    We use Time Machine with a network disk connected via AirPort Extreme for backup in our household (writeup), and it’s generally a great solution. However recently my wife’s laptop had got stuck in an endless “preparing backup” situation. There didn’t seem to be any significant details in the error log, and when I ran a…

  • Custom taxonomies in WordPress

    I’ve spent quite a bit of time over the last week getting to grips with custom taxonomies in WordPress, and I’m really pleased with what I’ve found. A taxonomy is a classification, and WordPress already has two taxonomies buil in: tags and categories. Categories lean towards a more formal taxonomy, which you might setup with…

  • PHP error logs with MacPorts on OSX

    I’ve recently had to switch laptops while my main machine is in for repair (again), and this has reminded me of an issue I seem to encounter with MacPorts PHP. I make extensive use of the PHP function error_log during development, to track variables and ensure that things within the code are as I expect.…