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?

 

Content not available.
Please allow cookies by clicking Accept on the banner
About Graham

Graham Tappenden is a British ex-pat who first came to Germany as a placement student in 1993, returning in 1995 to live there permanently. He has been writing for AllThingsGerman.net since 2006. When not writing blog posts or freelancing for the Oberurseler Woche and other publications he works as a self-employed IT consultant and online community manager. In 2016 he gained German citizenship.

Speak Your Mind

*

Please click on ACCEPT to give us permission to set 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 or to revoke permission.

Close