How to add an archive page in wordpress?
As you see, recently with the new design I have added an archives page in Balkhis. I had alot of people asking me the questions which I have already answered in my previous posts, so therefore I thought adding a page like that would help. Plus as I see from a users end on problogger, I like the archive page there. So in this post, I will be sharing how you can add an archive page to your wordpress blog.
First step is to open a new .php file, and name it blogarchive.php. Remember whatever you do, do not name the file archive.php because it will conflict with your database and not show the results correctly.
Second step, you want to do is give this page a template name, so it can have its own style. Copy and paste the codes below, this must be at the very top. Even above your include header codes.
To watch a video how I did it you can refer back to my old post on How to create your own custom wordpress page?
Well once that is done, now you can add the design elements in your archive page. You can add By month, By Category, By Tags basically anything you want in there.
To give you some options check out the list below:
Show archives by month - <?php wp_get_archives(’type=monthly’); ?>
Show archives by categories - <?php wp_list_cats(); ?>
Show archives by tag - <?php wp_tag_cloud(’smallest=8&largest=12&unit=pt&number=30&format=list&order=RAND’); ?>
Show some of the recent posts - <?php get_archives(’postbypost’, ‘17′, ‘custom’, ‘<li>’, ‘</li>’); ?>
Add a Search Bar you have the codes for that.
You can basically add anything that you like. For an example check out Balkhis Archive Page
Now linking to archives is creating duplicate content in the blog, as I mentioned in my post about Duplicate content, so what you need to do is get the most essential plugin for a wordpress blog called All in One SEO Pack and put the settings as I have shown in my post about All in one SEO Plugin.
Hopefully this will help some people who were looking to add an archive page in their wordpress blog.





















Hey, I am Syed Balkhi, The guy who is behind Balkhis Inc. I entered the industry back in 2002 not knowing a single thing. I barely spoke English at that time. In the past six years, my language barrier has been eliminated. Aside from English, now I also speak html, and php. Along with the languages I have also managed to master a few arts. Art of web-designing started when I first entered. Messing around with photoshop, I learned how to create my first web design. Now I founded a web designing firm Uzzz Productions. After running numerous amount of websites in various niche, I have mastered the art of web-development. Now I am compiling a resource of what I already know, and what I am learning on this blog. This resource is to help me if I ever need a guide to look back to, and it is help my fellow webmasters.



Hey, great post about adding an Archive page since it is definitely a big plus for new users to explore your old posts.
[...] Make an Archive Page for your Wordpress. [...]