O'Reilly logo

WordPress 2.8 Themes Cookbook by Lee Jordan, Nick Ohrn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating an archives page template

After learning how to create a simple page template in the recipe Creating a simple page template, you're probably brimming with ideas for custom page templates that you can provide for your theme. However, if you're going to take the time to create any page templates at all, you should make sure that you provide your users with a useful Archives template.

The Archives template can contain many things, but its main purpose is to help your users navigate around your blog in a way that makes sense to them. As such, it should almost always include a post archive by month, and a list of the categories on your blog. In this recipe, we'll be providing just that.

Getting ready

To properly use the techniques in this recipe, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required