More and more blogs feature an archive page where they display all of their posts. There are two good reasons to do it—the first is SEO and second is your visitors. With an archive page, any search engine crawler is able to easily index all your posts. When I find a blog of my choice, I'm used to browsing through their archive page to get a quick view of what might interest me.
In this recipe, you shall learn how to create an useful archive page for your WordPress theme, by using the page template technique.
As I just said, we shall be using a page template to create an archive page, for which you have to understand the page template concept—explained in the previous recipe.
I'm using the WordPress default theme in the following example, so you might have to adapt the HTML markup a bit to make it fit your own theme.