Archive for March, 2007

A Rant about the WordPress Default Kubrick Theme

It looks crisp and clean, it works well as a blog layout and appears to faultlessly embody WordPress. If all you want to do is use it, the Default (Kubrick) theme which comes with WordPress is ideal. But if you want to tailor it, beware... ...

Special Layout for one Category

I want to set up a template specifically for the Growing a Website category, which shows items in date order (oldest first) rather than reverse date order (newest first). First, I need to create a category template with the name category-n.php (where n is the numeric id of the particular category, found by looking at the Categories, within Admin).  It's probably easiest to copy category.php to start with. I've done that, and checked that my category is definitely using this template. Now, to modify it to provide the different layout that I want, it seems important to understand The Loop.  It also seems important to understand the WordPress functions.  After some searching and false starts, I found one function which appeared to do, quite simply, what I wanted - queryposts().  And, when I used the Default theme, adding the simple line query_posts($query_string . "&order=ASC"); immediately after the get_header() function, I achieved exactly what I wanted - have a look at the Growing a Website category now. 

WordPress Functions

Getting to grips with WordPress functions seems to be the only real way into understanding WordPress enough to be comfortable creating and modifying templates, as I want to do. The Function Reference seems a handy link to remember but the Search function rarely seems to find it (perhaps because ...