Home » Wordpress22 December 2009

WordPress: Create custom archive page

This article shows how to create a custom archive page for your wordpress blog. In the following archive page, I have displayed yearly archive, monthly archive, category wise archive and all post archive. So, the newly created archive page will be a kind of all-in-one archive page.

Here is the step-by-step guide:

1) Create a file archives.php

2) Write the following code in it.

3) Upload it (archives.php) in your current wordpress theme directory.

4) From WordPress admin panel, create a page name Archives.

5) For this page, set Template to Archives. i.e. Attributes -> Templates = Archives (In WP 2.8, you should find ‘Attributes’ under ‘Update Page’ button).

6) Publish the page and you are done.

Thanks.

Wordpress

Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed

Comments are closed.