该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Expanding Archives

描述

Expanding Archives adds a widget that shows your old posts in an expandable/collapsible format. Each post is categorized under its year and month, so you can expand all the posts in a given month and year.

This plugin comes with very minimal CSS styling so you can easily customize it to match your design.

Expanding Archives uses Font Awesome icons in a few places, so having that installed is recommended. However, the widget still functions perfectly fine without them.

JavaScript is required.

屏幕截图

  • The widget on my blog. This version has custom CSS applied.
  • The widget on the Twenty Fifteen theme, with only the default styles applied.
  • No widget settings - just add and save!

安装

  1. Upload expanding-archives to the /wp-content/plugins/ directory
  2. 通过WordPress的的“Plugins”菜单激活插件
  3. Go to Appearance -> Widgets and drag the Expanding Archives widget into your sidebar.

常见问题

How can I change the appearance of the widget?

The plugin does not come with a settings panel so you have to do this with your own custom CSS. Here are a few examples:

Change the year background colour:

.expanding-archives-title {
    background: #000000;
}

Change the year font colour:

.expanding-archives-title a {
    color: #ffffff;
}

评价

2016年9月3日
It looks nice if you only have a few posts per month, but I wish you had the option to choose whether the month will appear expanded or collapsed as a default. If you do a post per day, opening the page with the month expanded is way too long and makes the sidebar look cluttered. Bullets before each post would also make it look cleaner.
2016年9月3日
Took a punt, as no demo offered (yr blog has no sidebar, AFAIK), and works nicely. Element classes assist styling.
阅读所有5条评价

贡献者及开发者

“Expanding Archives” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

“Expanding Archives”插件已被翻译至2种本地话语言。 感谢所有译者为本插件所做的贡献。

将“Expanding Archives”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.1.1

  • Added filters that allow developers to easily modify the archive list.

1.1.0

  • Added a new option in the widget where you can choose to auto expand the current month or not.

1.0.5

  • Use transient for database query that fetches all the months.

1.0.4

  • Added xhrFields: { withCredentials: true } to ajax call.

1.0.3

  • Changed the month URLs to use get_month_link() instead of building them manually.
  • Tested the plugin with WordPress 4.4 beta.

1.0.2

  • Tested with WordPress version 4.3.

1.0.1

  • Month names are now displayed using date_i18n() instead of date() so they will translate.

1.0.0

  • Initial release.