Linux 软件免费装

Monthchunks

开发者 justincwatt
xavivars
更新时间 2023年5月11日 05:10
捐献地址: 去捐款
PHP版本: 3.0 及以上
WordPress版本: 6.2
版权: GPLv2 or later
版权网址: 版权信息

标签

sidebar archive archives template tag wp_get_archives

下载

2.4 3.1.1 3.1.2

详情介绍:

Display monthly archives by year with links to each month in the following compact format: 2012 1 2 3 4 5 6 7 8 9 2011 1 2 3 4 5 6 7 8 9 10 11 12 2010 6 7 8 9 10 11 12 Serves as a drop in replacement for wp_get_archives( array( 'type' => 'monthly' ) );. If you're interested in contributing to the code behind this plugin, it's also hosted on GitHub: https://github.com/justincwatt/wp-monthchunks

安装:

  1. Extract the zip file, drop the contents in your wp-content/plugins/ directory, and then activate from the Plugins page.
  2. Edit your theme file (e.g. sidebar.php) and replace the WordPress template tag wp_get_archives(); with monthchunks();
  3. You can also add it as a widget to any sidebar

升级注意事项:

2.2 Improved performance of SQL queries 2.0 Monthchunks is now a drop-in replacement for wp_get_archives() 1.0 Initial version

常见问题:

How do I make the years display in ascending order (2010, 2011, 2012...) instead of descending (the default)?

The monthchunks function takes two optional parameters and the first is year_order, which accepts two string values: "descending" or "ascending". = Can I make months display in a format other than the default month number (1, 2, 3...)? The monthchunks function takes two optional parameters and the second is month_format, which accepts three string values: "numeric", "alpha", or "abbreviation". The "alpha" format displays the first letter of the month (e.g. J, F, M...) which may not make sense in all languages. The "abbreviation" format displays the language-specific abbreviation for the month, e.g. (Jan, Feb, Mar...).

更新日志:

3.1.1 3.1 3.0.4 3.0.3 3.0.2 3.0.1 3.0 2.4 2.3 2.2 2.1 2.0 1.2 1.1 1.0