
If you visit some blogs, their sidebar is filled with archive months. There are some people who like to have archive links in the sidebar because they want their user to browse easily, and there are some who just want to show how old their blog really is. But to the majority of the users, having 26 months listed in the sidebar is a waste of space. Therefore we will show you how to limit the number of archive months displayed in WordPress.
In most themes, you will see the code in sidebar.php to be some what like this:
<h2>Archives</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
These codes are the default ones that come with many theme. It works out perfectly fine for the first few months, but as your blog gets older, it becomes a clutter in the sidebar. So you should change it to the following codes:
<h2>Archives</h2>
<ul>
<?php wp_get_archives('type=monthly&limit=6'); ?>
</ul>
You can change the number 6 to the number of your choice. This is a perfect compromise for those who want to help users browse few older months, but not have clutter. In our next tutorials we will show you how you can make yourself a custom Archive page for WordPress.

I bookmarked this page. I really like your site. I’ll bookmark the other pages when I have time
I am really happy to glance at this weblog posts which consists of plenty of helpful facts, thanks for providing these kinds of statistics.
“Thank you for sharing. I immediately state formally exciting website�s your breathtaking motivating and informative topic. I in truth welcome your thought about it. It�s especially as a result practical in support of all
Nice blog, thanks for the info.
Youre so cool! I dont suppose Ive read anything such as this before. So nice to get somebody with some original thoughts on this subject. realy we appreciate you starting this up. this fabulous internet site are some issues that is required on the internet, somebody with just a little originality. beneficial function for bringing a new challenge on the world wide web!