Collapsing Archives
Create collapsible archives by year or month. Features include: link to archive pages, display of individual posts and support for custom post-types. Demo I use this plugin in my blog at http://blog.robfelty.com
Create collapsible archives by year or month. Features include: link to archive pages, display of individual posts and support for custom post-types.
Demo
I use this plugin in my blog at http://blog.robfelty.com
Screenshots & previews.
WIDGET INSTALLATION
The easiest way to use this plugin is as a widget.
After you have installed the Collapsing Archives plugin, then simply go the Appearance > Widgets section in wp-admin and add the Collapsing Archives Widget to whatever sidebar or widget section you like, and then configure to your heart’s content.
MANUAL INSTALLATION
It is also possible to use the plugin on any page you like with a little bit of PHP code. Simply change the following here appropriate (most likely sidebar.php):
Change From:
<ul> <?php wp_get_archives(); ?> </ul>
To something of the following:
<?php if( function_exists('collapsArch') ) { collapsArch(); } else { echo "<ul>\n"; wp_get_archives(); echo "</ul>\n"; } ?>
OPTIONS AND CONFIGURATIONS
$defaults=array( 'noTitle' => '', 'inExcludeCat' => 'exclude', 'inExcludeCats' => '', 'inExcludeYear' => 'exclude', 'inExcludeYears' => '', 'sort' => 'DESC', 'showPages' => false, 'linkToArch' => true, 'showYearCount' => true, 'expandCurrentYear' => true, 'expandMonths' => true, 'expandYears' => true, 'expandCurrentMonth' => true, 'showMonthCount' => true, 'showPostTitle' => true, 'expand' => '0', 'showPostDate' => false, 'postDateFormat' => 'm/d', 'postDateAppenc' => 'after', 'accordion' => 0, 'postTitleLength' => '', 'post_type' => 'post', 'debug' => '0', );
- 01noTitle If your posts don’t have title, specify a string to show in place of the title
inExcludeCat
- 02Whether to include or exclude certain categories ‘exclude’ (default)