Okay, there are plenty of places online with instructions on randomizing posts in WordPress; even WordPress tells how. But here's my version along with the code I used. Basically, I randomized the loop, and this required replacing the standard loop like this: Replace… with… That worked for me. (note: setup_postdata() prepares the $post array as [...]

Sometimes curly quotes get copied and pasted into the title of our blog and WordPress just can't handle it. The problem lies in the permalinks and manually editing the permalink to get rid of curly quotes fixes it (but what a pain). In my search for an automated solution I discovered no hooks into this [...]

Right…I must have forgotten to install sendmail, because mail wasn't working for WordPress. First, to verify that sendmail wasn't working I ran this PHP script (thanks to phpeasystep.com) That confirmed it. And the fix was easy: Doing this exposed a flaw in my hosts file and ZYXware.com had the answer sudo gedit /etc/hosts … 127.0.0.1 [...]

I couldn't embed thumbnail sizes on my new WordPress install on my new Ubuntu server; I could only embed the original size (which was 3072×2048). The options to embed other sizes were just grayed out. It turns out that the default LAMP install doesn't include php-gd, the graphics library that creates thumbnails. Well… I guess [...]

I've heard it said that if you copy from only one source then it's called plagiarism, but if you copy from multiple sources then it's called research. Well, by researching Jeff Atwood's Coding Horror blog I found a great, simple way to frame code on Everything is Crap. First, the CSS: Then the Plugins… Raw [...]

After flirting with Windows as a WordPress server we've realized that, since we went to the trouble of learning Linux, it's now easier to use Linux. So, Everything is Crap is back to Ubuntu and it's delicious. Would you like an Ubuntu? You might want some milk to help wash it down.

So, Windows doesn't work well for WordPress. The more plug-ins I install, the more I realize that the world of WordPress is still a Linux-based world. We'll keep Everything is Crap on Windows because our needs are simple for this blog. But, in the future, all my WordPress are belong to Ubuntu. But, because Everything [...]

I hit another snag moving WordPress to Windows 2003/IIS6; media uploads don't work. (Interestingly, this doesn't seem to be a problem with Windows 2008/IIS7.) The fix involves creating a temp folder, as Joseph Scott's blog explains: Edit upload_tmp_dir option in php.ini. In my case I created an uploads folder in the wwwroot: upload_tmp_dir = "c:inetpubwwwrootuploads" [...]

One of the most famous pains-in-the-neck associated with installing WordPress is getting the Apache mod_rewrite to work. It's not automatic. I've talked about mod_rewrite already in a previous post, but I recently moved to a Windows WordPress installation, and that changes things. In Windows Server 2008/IIS7, WordPress tells you what you need to do. If [...]

Now that I know how to do it, I'm getting fed up with LAMP as a web platform. I much prefer Windows. (What can I say? I'm a Windows guy!) And I recently stumbled into the Microsoft Web Platform Installer. It makes installing WordPress embarrassingly simple. Just run the installer and it does everything for [...]