Does Your Blog Has An Archive Page : Essential Blog Element Series Part 2

by Gagan on July 13, 2010

An archive page is very important blog element and you should not neglect it, after the About Me page I give preference to archive page, so in my today’s article I’ll tell you what is an archive page and how to create an archive page for your site. Lets start:

What is an archive page

A single page that contains the record of all your posts arranged in the form of categories and date is called an archive page.

Importance of an Archive page

  • As an archive page consists record of all your previous posts, so it becomes easier for your readers to explore all your articles in a single page.
  • If you’ve a number of articles then you can keep your visitors on your blog for hours, just with the help of a single Archive page.
  • I’ve seen many bloggers who does not pay any attention to archive page, but I recommend you to must have an archive page so as to decrease the bounce rate.

How to create an archive page

Creating an archive page in WordPress is very easy, and there are 2 ways to do that (i) Automatically, using a plugin (ii) Manually inserting the code

If you are non Thesis theme user

  • One of my favorite plugin to create an archive page for a WordPress blog is Clean Archives, just install this plugin and your archive page is competed in no time. Click here to download Clean Archives WordPress plugin.
  • If you want to see the working demo, click here.

If you’re a Thesis Theme user

Step 1. In the WordPress dashboard, in the sidebar under Pages click on Add New. Title this page as Archives and in the right hand side, select Archives from the template drop down menu and click on Publish. Have a look:

archive-wordpress-thesis-theme

Step 2. Now copy the code below and paste it in custom_functions.php file

function my_archive() {
?>
<div>
<div>
 <h3>By Category:</h3>
 <ul>
 <?php wp_list_categories('sort_column=name&title_li='); ?>
 </ul>

 <h3>By Month:</h3>
 <ul>
 <?php wp_get_archives('type=monthly'); ?>
 </ul>
 <h3>By Tag:</h3>
 <ul>
 <?php wp_tag_cloud('number=0')?>
 </ul>

</div>

<div>

 <h3>By Post: (Last 100 articles)</h3>
 <ul>
 <?php wp_get_archives('type=postbypost&limit=100'); ?>
 </ul>
</div>
</div>
<?php
}
remove_action('thesis_hook_archives_template', 'thesis_archives_template');
add_action('thesis_hook_archives_template', 'my_archive');

Step 3. Copy the CSS coded from below and paste it in custom.css file

/*-----archives-----*/
.custom .archive h3 {margin-top: 0;}
.custom .archive ul {font-size: .85em; }
.custom .archivel { float: left; width: 40%;}
.custom .archiver { float: right; width: 60%;}

And you’re done, you’ve successfully created an archive page. Now view your archive page and it will look something like mine, click here to see my archive page demo.

Code Credits : Thanks to Somone Bull for the beautiful archive code. Someone blogs at ThesisThemeHQ.

In this way you can create an archive page for your blog and can show all your articles at one place and make your readers happy. Does your blog has an archive page ?

Related posts:

  1. Articles Page : Essential Blog Element Series Part 3
  2. Definition Page : Essential Blog Element Series Part 5
  3. How To Create A Perfect About Me Page : Essential Blog Element Series Part 1
  4. Essential Blog Element Series : Happy Ending :)
  5. 3 Important Pages To Increase RSS Subscribers : Essential Blog Element Series Part 4

Read more posts like this in our Blogging category

{ 6 comments… read them below or add one }

Nasif July 13, 2010 at 11:42 am

I prefer “Clean Archives Reloaded” plugin from alex, http://www.viper007bond.com/wordpress-plugins/clean-archives-reloaded/

This a modified version of clean archive plugin called “Clean Archives Reloaded” and I found it amazing since it is made in such way to reduce the number of query and making it faster.

Reply

Nik July 13, 2010 at 2:38 pm

Clean archives reloaded loads very fast and also uses ajax.

Reply

Karthikeyan July 13, 2010 at 8:31 pm

Thanks For this Gagan! i will Try in my New Theme ! ;)

Reply

Evelyn July 14, 2010 at 12:13 am

Thanks for sharing this information! I was wondering how I could list by posts. I have added it and it worked fine. The only problem I am having is that I would love for the post list to be like yours and not listed after by month. Other than that I like it!

Take care and thanks!

Reply

Nicola July 14, 2010 at 8:15 pm

Very useful post Gagan! I will try it in my blog cabinrentalsideas.com. THanks for sharing

Reply

Tiffany July 15, 2010 at 12:18 pm

Thanks For this Gagan

Reply

Leave a Comment

Previous post:

Next post: