Description
This widget is designed to be a more compact alternative to the default archives widget supplied with WordPress. If you’ve been blogging regularly for several years, the archive list produced by the default widget grows to be quite long. If you use Flexo Archives instead, the list will be displayed as a much smaller list of years. When you click a year, it expands to show the months of that year when you posted. By default the expansion is animated.
A standalone version that simply prints the HTML for the archive lists and attaches the JavaScript to normal pages is now provided for users who cannot use the widget.
I am currently seeking translations of the plugin. If you would like to help by translating the plugin into your language, please post to the support forum.
Thanks to Dylan van der Heij for providing a Dutch translation.
Screenshots
Installation
Flexo Archives requires at least WordPress 2.7. For ancient versions of WordPress (back to 2.2 and earlier), you should be using the 1.X version.
You install the Flexo Archives widget in two steps. First you install the widget’s code into WordPress, and then you add the widget to one of your theme’s widget areas.
You can install the widget’s code automatically or manually. To install automatically from your blog’s plugin administration panel:
- Log into your blog and click the ‘Plugins’ item in the dashboard menu.
- Click the ‘Add New’ button at the top of the page.
- Search for the term ‘Flexo’.
- Click the ‘Install’ link.
If the automatic install fails for some reason, you can install the plugin manually :
- Download the zip file (
flexo-archives-widget.VERSION.zip
) from the WordPress plugins site. - Expand
flexo-archives-widget.VERSION.zip
- Upload the whole
flexo-archives-widget
directory to the/wp-content/plugins/
directory. After the upload, you should have a directory named/wp-content/plugins/flexo-archives-widget
. - Activate the Flexo Archives plugin through the ‘Plugins’ menu in the WordPress admin interface.
To add the widget to one of your theme’s widget areas, log into your blog and go to the ‘Appearance’ panel. Click the ‘Widgets’ link and drag the widget to one of the widget areas. Configure the widget as desired.
FAQ
- Why do the widget’s colors or bullet shapes look funny?
-
This is something I hear a lot about in connection with the plugin, but it isn’t the widget’s fault. While the widget creates and hides the lists used, the colors and bullet shapes of the lists are set by your theme’s stylesheet. Your theme probably doesn’t have rules in its stylesheet to match the nested lists generated.
To test whether the problem is your theme, temporarily configure your blog to use another WordPress theme, such as the Twenty Ten or Twenty Eleven themes provided with WordPress. Expand and contract a few year links in the sidebar. If things don’t look odd, the problem is probably with your theme.
- Why would I use the standalone Flexo Archives function?
-
If your WordPress theme supports widgets, you don’t need to worry about the standalone function. You can stop reading now. Congratulations!
Unfortunately, some WordPress themes don’t support widgets. If you are familiar with HTML though, the standalone Flexo Archives function exists to allow you to easily modify your theme to get the expanding archives list provided by the widget.
- How do I use the standalone Flexo Archives function?
-
To use the standalone Flexo Archives function, install the plugin code as described in the first step of the installation instructions.
Next, enable the standalone function:
- Go to the WordPress dashboard and click the ‘Settings’ menu. In recent versions of WordPress, this menu is near the bottom of the left column.
- Click the ‘Flexo Archives’ option in the expanded menu.
- Enable the standalone function using the checkbox and submit the form.
Finally, modify your theme to use the standalone function. Edit the PHP of your theme to add the following code where you want the archives list to appear:
<?php if (function_exists('flexo_standalone_archives')){flexo_standalone_archives();} ?>
The code will output the nested archive lists into the HTML at that point in the theme and automatically attach JavaScript to make the lists expand and contract.
Reviews
Contributors & Developers
“Flexo Archives” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Flexo Archives” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
2.1.5
- By user request, adds an option to include yearly post totals in the year links.
2.1.3
- By user request, adds an option to choose sort order for months in lists.
- Simplifies the way default settings are saved.
2.1.2
- Adds support for having multiple widgets.
- By user request, adds the option to add rel=”nofollow” to links.
- Dutch translation.
2.1.1
- Restores compatibility with PHP4. Sorry about that. ??
2.1.0
- Reimplemented as a class.
- Fixed issue where users of the standalone function couldn’t enable post counts.
- Play nice with the getarchives_where and getarchives_join filters.
- Initial internationalization support.
2.0.3
- Added a standalone function for users who can’t use the widget.
2.0.2
- Fixed a typo in the uninstall function, changed comments. Not released.
2.0.1
- Add nonce field and check to enhance widget form security.
2.0.0
- Rewrite using jQuery for expand / contract code.
- Add animation.
- Drop support for ancient versions of WordPress.
- Test for WordPress 3.1.