Title: Flexo Archives
Author: Heath Harrelson
Published: <strong>2007 年 8 月 15 日</strong>
Last modified: 2011 年 7 月 18 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/flexo-archives-widget.svg)

# Flexo Archives

 由 [Heath Harrelson](https://profiles.wordpress.org/heathharrelson/) 開發

[下載](https://downloads.wordpress.org/plugin/flexo-archives-widget.2.1.5.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/flexo-archives-widget/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/flexo-archives-widget/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/flexo-archives-widget/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/flexo-archives-widget/#developers)

 [技術支援](https://wordpress.org/support/plugin/flexo-archives-widget/)

## 外掛說明

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](https://wordpress.org/tags/flexo-archives-widget).

Thanks to Dylan van der Heij for providing a Dutch translation.

## 螢幕擷圖

[⌊An example archive list with one year expanded.⌉⌊An example archive list with 
one year expanded.⌉[

An example archive list with one year expanded.

## 安裝方式

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:

 1. Log into your blog and click the ‘Plugins’ item in the dashboard menu.
 2. Click the ‘Add New’ button at the top of the page.
 3. Search for the term ‘Flexo’.
 4. Click the ‘Install’ link.

If the automatic install fails for some reason, you can install the plugin manually:

 1. Download the zip file (`flexo-archives-widget.VERSION.zip`) from the WordPress 
    plugins site.
 2. Expand `flexo-archives-widget.VERSION.zip`
 3. 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`.
 4. 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.

## 常見問題集

  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:

 1. 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.
 2. Click the ‘Flexo Archives’ option in the expanded menu.
 3. 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.

## 使用者評論

![](https://secure.gravatar.com/avatar/dee29cff117aa28df66b38f1cc55c77e04838962060fc44e915afc1747e38092?
s=60&d=retro&r=g)

### 󠀁[nice! and patch supplied](https://wordpress.org/support/topic/nice-and-patch-supplied/)󠁿

 [zuHause](https://profiles.wordpress.org/zuhause/) 2017 年 7 月 14 日

Does what I need, thanks. Recently I enabled ssl on my website and got the “mixed
content error”, because flexo-anim.js loads via http-url. Edit flexo_archives_widget.
php in function script_url () line 712: OLD: $url = WP_PLUGIN_URL . ‘/’ . $this-
>flexo_dir . ‘/’; NEW: $url = plugins_url( $this->flexo_dir . ‘/’ ); thx a lot

![](https://secure.gravatar.com/avatar/5c277a9cbf167d273788fc8cb40b36884e5f07251219dff0de7627ba3adc7104?
s=60&d=retro&r=g)

### 󠀁[Was Perfect but broken on PHP 7](https://wordpress.org/support/topic/was-perfect-but-broken-on-php-7/)󠁿

 [hendybear](https://profiles.wordpress.org/hendybear/) 2017 年 5 月 3 日

Was Perfect but broken on PHP 7, works with Wordpress 4.7.4 as long as PHP is below
7, real shame as it was a great plugin. Would give it 5 Stars but as it no longer
works…

![](https://secure.gravatar.com/avatar/91b0ac994238e8d72144ae17991ffc15e9b3fbc47b0a8a7dca26064178a8675b?
s=60&d=retro&r=g)

### 󠀁[Not updated and broken on php 7](https://wordpress.org/support/topic/not-updated-and-broken-on-php-7/)󠁿

 [dsided](https://profiles.wordpress.org/dsided/) 2017 年 4 月 26 日

Good plugin at the time (cira 2011), now broken on php 7.

 [ 閱讀全部 8 則使用者評論 ](https://wordpress.org/support/plugin/flexo-archives-widget/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Flexo Archives〉的開發相關工作。

參與者

 *   [ Heath Harrelson ](https://profiles.wordpress.org/heathharrelson/)

[將〈Flexo Archives〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/flexo-archives-widget)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/flexo-archives-widget/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/flexo-archives-widget/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/flexo-archives-widget/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/flexo-archives-widget/)。

## 變更記錄

#### 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.

## 中繼資料

 *  版本 **2.1.5**
 *  最後更新 **15 年前**
 *  啟用安裝數 **100+**
 *  WordPress 版本需求 ** 2.7 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.2.1**
 *  語言
 * [English (US)](https://wordpress.org/plugins/flexo-archives-widget/)
 * 標籤:
 * [archive](https://tw.wordpress.org/plugins/tags/archive/)[archives](https://tw.wordpress.org/plugins/tags/archives/)
   [collapsible](https://tw.wordpress.org/plugins/tags/collapsible/)[collapsible archive](https://tw.wordpress.org/plugins/tags/collapsible-archive/)
   [sidebar](https://tw.wordpress.org/plugins/tags/sidebar/)
 *  [進階檢視](https://tw.wordpress.org/plugins/flexo-archives-widget/advanced/)

## 評分

 4 星，滿分為 5 星

 *  [  5 個 5 星使用者評論     ](https://wordpress.org/support/plugin/flexo-archives-widget/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/flexo-archives-widget/reviews/?filter=4)
 *  [  2 個 3 星使用者評論     ](https://wordpress.org/support/plugin/flexo-archives-widget/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/flexo-archives-widget/reviews/?filter=2)
 *  [  1 個 1 星使用者評論     ](https://wordpress.org/support/plugin/flexo-archives-widget/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/flexo-archives-widget/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/flexo-archives-widget/reviews/)

## 參與者

 *   [ Heath Harrelson ](https://profiles.wordpress.org/heathharrelson/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/flexo-archives-widget/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://amzn.com/w/J010ZTQZM654)