How to fix WordPress automatic upgrades and plugin installs on XAMPP
If you’ve ever had problems with WordPress automatic updates on a local install of XAMPP this should fix it (note that I’ve tested it on OSX but it should work for Windows/Linux but the details will be different). For a long time I just did the updates/installs by manually installing because the automatic upgrades never worked or it would ask for my ftp details. And no matter what ftp details I entered it would never connect. Same for plugin installs or updates. Turns out that it has nothing to do with ftp settings, it was a simple file permissions conflict. XAMPP was running its local Apache as user ‘nobody’ while the files on my hard disk were owned by my local user ‘ian’. When WordPress came across this conflict it...
How to create a single wp-config file for local and remote WordPress development
If you are developing WordPress sites, themes or plugins, you probably know that setting up a local development environment can speed things up immensely. The easiest way is to use XAMPP or MAMP. I prefer XAMPP by the way as it is available on Windows, Mac OSX and Linux. Installing XAMPP gets you most of the way to headache free WordPress development, the rest is setting up your local server/virtual servers so that it as closely mirrors your remote set-up as possible. However, some settings like blog address are held in the database which makes mirroring local development and remote production servers a little tricky. If you just backed up the database on the remote set-up and imported it to your local XAMPP server through phpMyAdmin then WordPress will still...
Next WordBench Osaka at messaliberty
WordPress studying session WordBench will be held at messaliberty. Please join if you’re in Kansai area! See more detail here: WordBench 大阪 » Blog Archive » 2010年新年会を1月31日(日)開催
Localizing dates in WordPress themes
Our theme on the English side and the Japanese side are the same. And by that I mean, we only have one copy of the theme files that is used for both sides. For this to work, it has to be fully localised and independant. One thing that is quite different in the two languages is the formatting of dates. A date like Dec 13th 2009 might be formatted as 2009年12月13日 Chapp worked from a theme that had the date formats hard coded into the theme. As in: <?php the_time('F jS, Y'); ?> If we left that in, the Japanese side’s dates wouldn’t be right, but if we took out the ‘F jS, Y’ part, it defaulted to outputting the time. As a workaround, we used: <?php the_date(); ?> which does fetch and use the right formatted date...
Thoughts on the GPL and WordPress themes
Why the GPL doesn’t matter WordCamp Kyoto 2009 was a great experience. One presentation by Digital Cube provoked a discussion about GPL amongst a small group of attendees, myself included. The major worry about releasing themes or plugins as GPL is that after all the work and effort at producing it, someone you sell it to is going to turn around and re-release it either at a discount or for free. Leaving you, the original developer, feeling cheated. The GPL definitely allows this. But it doesn’t much matter if you understand the concept of competitive advantage. Let me explain: GPL theme/code + something = what you are selling That something is called your competitive advantage. If your competitive advantage is not compelling enough, then you...

