WordPress: Adding a sidebar to your theme

In another post I discussed the idea of placing a sidebar into your theme and using it to manage the navigation menu of your site. I came to the conclusion – proposed by other people from the WordPress community as well – that you can use a sidebar for basically anything but not just a sidebar.

Although you can find this information in the Codex too, I would like to show you how easy it is to add a sidebar somewhere into your theme. You’ll see that it’s just about adding some function calls here and there – that’s it and you’ve got a new sidebar that can hold arbitrary widgets.

Continue reading →

Paginated comments with WordPress 2.7 and the Copyblogger theme

The new WordPress release 2.7 has built-in support for both comment threading and paging. Especially the latter is a cool feature: it helps fighting the problem of ever growing pages just because there’re so many comments attached to a post or a page.

Since I’m using the Copyblogger theme that currently doesn’t come with comments on several pages I changed the comment.php to use this new feature. This post documents how this worked.

Continue reading →