Plugin Directory

Test out the new Plugin Directory and let us know what you think.

Collapsing Archives

This plugin uses Javascript to dynamically expand or collaps the set of months for each year and posts for each month in the archive listing.

2.0.4 (2017.01.02)

  • Compatible with WP 4.7
  • Fixed bug with jquery compatibility
  • Removed deprecated mysql debugging info
  • Works with PHP 7

2.0.3 (2015.08.12)

  • Compatible with WP 4.3

2.0.2 (2014.09.24)

  • Fixed bug when expanding years but not showing month links, where the oldest posts were not getting displayed

2.0.1 (2014.09.05)

  • Compatible with WP 4.0

2.0 (2012.04.09)

  • now using all jquery for javascript stuff
  • added accordion option
  • added option to not use cookies
  • Fixed display issues with IE
  • Easier style handling
  • Added support for custom post types

1.3.2 (2011.01.03)

  • Fixed display bug when only one month in year

1.3.1 (2010.06.22)

  • Fixed bug where months would not expand for current year when "expand current year" was set to no (thanks to beardedgit for debugging help)

1.3 (2010.06.18)

  • Storing post information in javascript array to reduce number of DOM elements (and improve page loading speed)
  • Added option to select post date before or after title

1.2.2 (2010.01.28)

  • Restricting settings page to authorized users
  • Fixed expandYears option. Now when you show posts, but not months, the year expands to show posts.
  • Updated javascript to fix cookie bug
  • Switched from scriptaculous to jquery. Now no longer conflicts with plugins which use mootools (for example featured content gallery)

1.2.1 (2009.06.22)

  • Can now use manually in WP 2.7-
  • Updated Spanish localization (thanks to Karin Sequen)
  • Fixed problems with page load and cookies

1.2.beta (2009.06.07)

  • Changed hide and show classed to collapse and expand to avoid CSS class conflicts

1.2.alpha (2009.05.02)

  • Widgets work with 2.8 API
  • Can specify options directly in manual usage

1.1.4 (2009/04/22)

  • Fixed html validation error when using manual version
  • Spanish localization (thanks to Karin Sequen)

1.1.3 (2009/04/17)

  • Fixed bug with unicode codes showing up instead of triangles

1.1.2 (2009/03/28)

  • Span all on one line so it doesn't mess up exec-php (thanks GeekLad)
  • fixed some minor issues to get page to be valid xhtml
  • no longer requires footer
  • updated javascript file
  • added option for custom expanding and collapsing symbols

1.1 (2009/03/07)

  • fixed bug with truncating titles
  • cleaned up code a bit
  • fixed query for excluding categories
  • fixed including only certain categories
  • added option for "no title" - suggested by Brad Parker
  • reduced number of queries by using get_permalink without id
  • Improved internationalization
  • fixed settings panel

1.0.5 (2009/01/21)

  • changed query
  • when using truncated titles, title attribute has full title
  • using html ellipsis in truncate titles
  • Got rid of comma before post date
  • fixed some issues with settings page
  • updated FAQ

1.0.4 (2009/01/15)

  • fixed debug option
  • style is set in database if the style column is not already there

1.0.3 (2009/01/09)

  • don't put an expand icon for years if "show months" is not selected
  • add self class to post for additional styling
  • fixed :before style info to restore default style
  • fixed post title truncating

1.0.2 (2009/01/07)

  • added javascript version
  • not loading unnecessary code for admin pages (fixes interference with akismet stats page
  • fixed settings page for manual usage
  • fixed sort order option

1.0.1 (2009/01/06)

  • Finally fixed disappearing widget problem when trying to add to sidebar
  • Added debugging option to show the query used and the output
  • Moved style option to options page

1.0 (2008.12.08)

  • Integrating javascript with other collapsing plugins
  • Non-widget version now works out of the box (defaults added to database upon activation)
  • style can now be set with an option
  • inline javascript moved to bottom for faster page loading

0.9.6 (2008.12.02)

  • Minor bug fix with missing end tag when years expand to months, but months do not expand to posts

0.9.5 (2008.12.01)

  • fixed javascript bug for IE7

0.9.4 (2008.11.21)

  • Improved handling of options for non-widget version
  • Uses cookies to keep track of expanded and collapsed years/months
  • tested with 2.7 beta3

0.9.3 (2008.11.04)

  • Now can once again use as a widget or non-widget

0.9.2 (2008.11.01)

  • Fixed truncating of title

0.9.1 (2008.10.28)

  • added collapsArchMonth class for when posts are not shown
  • added img directory
  • calling it stable

0.9.alpha (2008.10.23)

  • Can now use more than one widget
  • Added option to animate collapsing and expanding
  • Added option to use images as collapsing symbols
  • Added option to have the year and month activate collapsing instead of linking to the yearly/monthly archive

0.8.9 (2008.06.04)

  • added option for different expand and collapse symbols (triangles, +/-)

0.8.8 (2008.05.27)

  • added some more FAQ about stylesheets
  • added option to only include certain years



  • fixed bug which had wrong markup when months were turned off


  • fixed bug (introduced in 0.8.2) that made the widget not show up after an upgrade


  • title of archives now shows up correctly using before_title and after_title


  • fixed bug introduced in version 0.8.2 trying to exclude categories. Would break if no categories were being excluded


  • Added option to exclude posts that belong to certain categories. So far this is only working for posts that belong to a single category
  • Added option to change title in widget, and can now set all options from the widget page
  • Now is condensed into one plugin


  • Changed htmlentities to htmlspecialchars in formatting title text. Now this should not mess up accented characters, but should escape quotes
  • Using unicode codes in css file for double quote character


  • Verified to work with wordpress 2.5
  • Now has custom styling option through the collapsArch.css stylesheet
  • updated screenshots
  • (Hopefully) fixed multi-language support for titles (put htmlentitites back in)
  • moved javascript into collapsArch.php and got rid of separate file


  • Got rid of htmlentities in post titles. Should display better now


  • Now links should work with all sorts of permalink structures. Thanks to Krysthora http://krysthora.free.fr/ for finding this bug


  • fixed some more markup issues to make it valid xhtml


  • fixed bug when turning off "month links should expand to show posts" option


  • fixed broken links


  • posts now have the class "collapsCatPost" and can be styled with CSS. Some styling has been added in collapsCat.php
  • removed list icons in front of triangles


  • Added option to link to index.php, root, or archives.php


  • Fixed comment count feature in post links
  • Fixed display of date in post links
  • Fixed automatic loading of options into database


    * Complete rewrite of database code to reduce the number of queries from
      2 * #months + 1 to 1 single query


  • Added collapsing class to
  • s with triangles for CSS styling
  • Added style information to make triangles bigger and give a pointer cursor over them
  • Added title tags to triangles to indicate functionality


  • Bug fix - fixed the previous year triangle pointing in the wrong direction
  • Changed default options to reflect how I use it on my website


  • Changed name from Fancy Archives to Collapsing Archives
  • Changed author from Andrew Rader to Robert Felty
  • Added option to link to archives.php
  • Added option to list in chronological or reverse chronological order
  • Added triangles which mark the collapsing and expanding features That is, clicking on the triangle collapses or expands, while clicking on a month or year links to the archives for the said month or year
  • Changed behavior from starting all expanded and then collapsing on page load to the opposite
  • Removed the rel='hide' and rel='show' tags, because they are not xhtml 1.0 compliant. Now uses the CSS classes instead

Fancy Archives Changelog


  • Added option to display Page entries with Posts inside the month links
  • Cleaned up the list generation code


  • Added option: Trim post titles to a set size
  • Added option: Optionally show ellipsis if a post title was shrunk
  • Fix: Added fix for when page's content-type is "application/xhtml+xml"


  • Huge rewrite: cleaned up javascript - one function does all the work, javascript no longer visible in page source
  • Added options: month links are optional, set current year/month to be expanded by default
  • Links now link to 'javascript;' instead of '#'


  • Fixed an issue with displaying comment counts in < WP2.0, fixed by using WP's internal comment counting function (Thanks Will)


  • Massive update, now has a dedicated options page (no more passing options to function)
  • Month links can expand to show individual posts


* Initial Release

Requires: 2.8 or higher
Compatible up to: 4.7.2
Last Updated: 2 months ago
Active Installs: 9,000+


4.7 out of 5 stars


0 of 2 support threads in the last two months have been marked resolved.

Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

75,4,3 100,3,3
0,1,0 50,2,1 100,3,3
0,1,0 100,1,1
44,9,4 17,6,1
100,1,1 0,1,0