Title: Category Based Archives
Author: echoz
Published: <strong>2008 年 8 月 4 日</strong>
Last modified: 2008 年 8 月 4 日

---

搜索插件

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

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

# Category Based Archives

 作者：[echoz](https://profiles.wordpress.org/echoz/)

[下载](https://downloads.wordpress.org/plugin/category-based-archives.1.0.5.zip)

 * [详情](https://cn.wordpress.org/plugins/category-based-archives/#description)
 * [评价](https://cn.wordpress.org/plugins/category-based-archives/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/category-based-archives/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/category-based-archives/#developers)

 [支持](https://wordpress.org/support/plugin/category-based-archives/)

## 描述

The archives within WordPress are pretty limited in a sense that they do not offer
much configuration beyond what they do. Date based will be date based, like category
based archives will only display categories. This plugin mitigates the issue by 
giving date based archives the ability to list content by categories as well.

This is done via modification of the rewrite rules to allow for the ability to have
permalinks like http://yourblog.com/2008/in-blog/. This basically is a date based
archive that shows only entries from the “blog” category.

This plugin can also work without the usage of rewrite rules. It currently supports
date based archives for years and months.

### Usable Commands for Theme Developers

The PHP commands for theme developers to use are pretty straight forward.

_cba\_get\_category\_id()_ returns the current category ID of the archive.

_cba\_the\_year()_ returns the current year of the date based archive.

_cba\_the\_month()_ returns the current month of the date based archive.

_cba\_auto\_thedate()_ gets the string representation of the date.

_cba\_get\_year\_link($year)_ returns the permalink for the year archive based on
the current category.

## 安装

 1. Upload category-based-archives.php into your plugins folder.
 2. Activate and you’re done.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Category Based Archives」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ echoz ](https://profiles.wordpress.org/echoz/)

[帮助将「Category Based Archives」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/category-based-archives)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/category-based-archives/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/category-based-archives/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/category-based-archives/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/category-based-archives/)。

## 额外信息

 *  版本 **1.0.5**
 *  最后更新：**18 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.5 或更高版本 **
 *  已测试的最高版本为 **2.6**
 *  语言
 * [English (US)](https://wordpress.org/plugins/category-based-archives/)
 * 标签
 * [category](https://cn.wordpress.org/plugins/tags/category/)[date](https://cn.wordpress.org/plugins/tags/date/)
   [loop](https://cn.wordpress.org/plugins/tags/loop/)[template](https://cn.wordpress.org/plugins/tags/template/)
 *  [高级视图](https://cn.wordpress.org/plugins/category-based-archives/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/category-based-archives/reviews/)

## 贡献者

 *   [ echoz ](https://profiles.wordpress.org/echoz/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/category-based-archives/)