WordPress hacking

I’ve been hacking WordPress during my vacation. The results are now up and available here with some documentation on what was done (and how).

I’ve been on a vacation with nothing planned this week so I’ve finally had time to hack around with WordPress. The new template system offers a great platform on which building customized views is easy. I added a thumbnail (and link) to the current image in The Life of Jalo, a list of the five latest posts when viewing a single entry, a link to geocaches near us if you’re viewing a geocaching post, now playing information, and I jumped the folksonomy bandwagon. The rest of this post is fairly technical in content, so if code and web development aren’t your thing, you might want to move on.

Form elements as PHP variables

A discussion on how the requirement for brackets for form elements as a PHP array is actually quite useful.

I had already decided to test this today since I’m a lazy programmer (more on that sometime later). I’m working on creating a voting application and since I like code re-use (part of my laziness) I wanted to see how I could make form processing code that really doesn’t care how many different elements there are in the form. Eric’s wondernment on why PHP requires the brackets to be present in some form element names may also be explained a bit further.