How to add support for navigation menus to your WordPress theme

Tagged WordPress

The new navigation menus system in WordPress 3.0 looks promising, but in my opinion it’s not very usable yet. Anyway, here’s one way to add navigation menus to your theme while maintaining backward compatibility:

In your theme’s functions.php add something like the following code: (more…)

Nesting WordPress loops

Tagged WordPress

Sometimes it’s useful to put a WordPress loop inside another loop. To do this you’ll have to create a new WP_Query object, as in this example: (more…)

Creating a valid WordPress theme

Tagged WordPress Deutsch

Recently, I’ve been checking out some of the blogs that link back to me because they use one of my plugins. And it seems like a lot of them are using buggy, incorrect templates. It looks like many WordPress theme developers don’t read the theme development checklist. (more…)

WordPress 2.7 and the comment pager

Tagged WordPress

Comment paging is a great new feature in WordPress 2.7. However, how do you not display the pager when there are no previous or next comments? After digging through the code for quite a while and chatting with some people here’s a solution: (more…)