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.
This is a relatively simple plugin that uses Javascript to make the Archive links in the sidebar collapsable by year and/or month. There are a number of options available, such as having the ability to link to the archive pages or not, and whether or not you want to display individual posts or not. It also supports custom post-types. There are several default styling options built-in which work well with most themes. You can also define your own custom styles.
Demo
I use this plugin in my blog at http://blog.robfelty.com
Screenshots
Collapsing archives with default theme
widget options
FAQ
How do I change the style of the collapsing archives lists?
The collapsing archives plugin uses several ids and classes which can be
styled with CSS. These can be changed from the settings page. You may have to
rename some of the id statements. For example, if your sidebar is called
“myawesomesidebar”, you would rewrite the line
ChangeLog
3.0.4 (2023.12.01)
- Got rid of deprecated __experimentalGroup
- Tested with WP 6.4.1
3.0.3 (2023.09.11)
- Fixed PHP warning about undefined key when changing style
3.0.2 (2023.06.04)
- Calling it stable version
- Tested with WP 6.2.2
- Known issue – does not work with Jetpack widget visibility settings
3.0.1 (2023.04.01)
- Fixed linkToArch option
- Fixed taxonomy type option
- Added SameSite attribute to cookies
- A bit of code cleanup
3.0.0 (2023.03.28)
- Converted to Gutenberg block to be usable by full-site editing themes
- Compatible with WP 6.2
- Got rid of dependency on jQuery (no more animations)
2.1.4 (2023.01.12)
- Fixed a different warning about enqueuing scripts
2.1.3 (2022.03.10)
- Fixed a deprecation warning about enqueuing scripts
2.1.2 (2022.03.10)
- Fixed an issue with the full-site editor
2.1.1 (2022.03.10)
- Compatible with WP 5.9.1
- Fixed some deprecated warnings
2.1 (2021.06.18)
- Compatible with WP 5.7
- Incorporated a number of code improvements from my other collapsing plugins
- Tested on WP 5.7.2
- Updated documentation a bit
- Added some screenshots and icons
2.0.5 (2017.08.17)
- Compatible with WP 4.8
- Cleaned up code some to reduce warnings
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)
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)
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
Older versions