How To Create An Archives Page
Posted By: BioTecK on
Tuesday 6 May 2008 with
2 Comments
Having an archives page for your WordPress blog is something very important. In an archive page you can archive links listing by categories, months, year and pages.
Most free WordPress themes already have an extra page template for an archive page. Just look in your theme’s folder for an php file called archives.php. This is different then your default archive template which is called archive.php (without the “s”).
But if you have a theme which doesn’t have an archive page, you can make one your own very easy when you follow this steps. I take my own archive page as an example.
- Make a copy of your index.php and call it archives.php. This is just to preserve your theme structure!
- Open the file and type this at the top of the Archives.php
- Now remove the original loop code in the index.php.
- Add the category listing by inserting this code:
<h2>Archives by Categorie:</h2>
<ul><?php list_cats(0, '', 'name', 'ASC', '/', true, 0, 1); ?></ul> - Add the month listing by inserting this code:
<h2>Archives by Month:</h2>
<ul><?php wp_get_archives('type=monthly'); ?></ul> - Add the page listing by inserting this code:
<h2>Archives by Pages:</h2>
<ul><?php wp_list_pages('title_li'); ?></ul> - Save the archives.php file, upload it to your theme’s folder (wp-content/themes/themename/).
- To use your archives page you have to create a new page and select your newly upload Archives page template for that page!

Hi, thanks for dropping by and commenting. It is always appreciated. Cool post, I had a hard time figuring out how to make an archive.
Pixel Shoppes last blog post..Vacation Rentals
Hello Pizel Shoppe,
Glad that I could help you!! Making an archives page is very easy as you can see!
Site Sponsors
Twitter Updates
Twitter Updates
Site Info
Get FireFox now!
Categories
Tags