cymeradwyo.net  
 

How many archives should I show?

If you’ve been blogging for some time, then your archive list will be getting quite long.  I’ve been having that problem on some blogs, as the list of months in the archives was getting longer than the rest of the sidebar put together.

So I started wondering about how I could improve the situation.  I’ve come up with two possible solutions:

– use yearly archives instead of monthly ones

– limit the number of listed months

For blogs that have been going for a number of years, the yearly option is not bad, as long as the posts can still be found without going through too many pages.  I solve that using tag clouds or category lists.

But for most of my blogs, I’ve gone for the limited month option, and have set the limit to 12.

To do this, I’ve edited the sidebar.php and changed the call to wp_get_archives to

wp_get_archives(‘type=monthly&limit=12’);

or

wp_get_archives(‘type=yearly’);

Which do you think is the better option?  Of is there an even better way?

Tags: ,



Leave a Reply

 Subscribe to my Newsletter 


 

By continuing to use this website site, you agree to the use of cookies. [more information]

This website uses cookies to give you the best browsing experience possible. Cookies are small text files that are stored by the web browser on your computer. Most of the cookies that we use are so-called “Session cookies”. These are automatically deleted after your visit. The cookies do not damage your computer system or contain viruses. Please read our privacy information page for more details.

Close