Adding a description to your categories

Robbert mailed me today asking with which template tags I used to make the description show up on my category pages. Well, first of all, you can add a description to your categories under Manage -> Categories: If you press the edit button there you can edit them like this: The description is what we’ll…

noindex,follow your WordPress search result pages

The webmaster guidelines advise you to prevent your search result pages from being indexed, WordPress doesn’t do that by default (yet), so I’ve written a small noindex-search plugin which takes care of that by adding a meta robots noindex,follow tag to search result pages.

Cave your trolls!

Henk van Ess recently asked me to help him in developing an idea he had called “Cave Your Trolls“. The idea is that troll commenters are “caved”, meaning they can only see their comment themselves, and no-one else can. They think their comment is left there and rejoice, but no one else has to bother…

Upgrading and Installing WordPress from Subversion

WordPress 2.2.2 was released this morning (upgrade, really, do), and for the first time since I moved to my new server (about which I will post more soon), I had the fun of updating all my WordPress blogs. Normally, updating WordPress wasn’t any fun, as it meant copying all sorts of files all over the…

WordPress version detection

Sometimes you’re browsing around and wondering whether a blog is a WordPress or not (at least I am)… So I created a small script that detects that, and show the version of the WordPress as well. A useful tool for all you blackhats out there too perhaps? Go grab the Show WordPress version Greasemonkey script!…

WordPress theming: pushing trackbacks down

I was playing around with my comments section as I wanted to style trackbacks differently from “normal” comments, and while playing around, I decided to just bump them down. The problem with the trackbacks was that they were interfering with the comment discussion. And as I want to keep that discussion as lively as possible,…

Permalink Redirect Plugin for WordPress

And yet another WordPress plugin fell out of my hands. This one checks the current URL against the permalink WordPress has defined for the post, page or category you’re in, and redirects to that permalink if they don’t match. This prevents subcategories from being linked to directly without the main category in the URL, so…

Serving XHTML as application/xhtml+xml

When you’re coding XHTML, you should deliver it as application/xhtml+xml. The problem is however, that once you do that, IE 6 & 7 break horribly… For your pages to render properly in those browsers, you’d need to set the mime type to text/html. Some very bright people have thought this problem in the past and…

Showing subcategories on WordPress category pages

I wanted to show the subcategories for a given category on it’s category page in the sidebar, but somehow the code for this wasn’t readily available. Basically you need to check whether there are any children, and if there are, list the categories with the current category as a parent or grandparent. The following code…