Title: Category Based Archives
Author: echoz
Published: <strong>August 4, 2008</strong>
Last modified: August 4, 2008

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# Category Based Archives

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

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

 * [Details](https://wordpress.org/plugins/category-based-archives/#description)
 * [Reviews](https://wordpress.org/plugins/category-based-archives/#reviews)
 *  [Installation](https://wordpress.org/plugins/category-based-archives/#installation)
 * [Development](https://wordpress.org/plugins/category-based-archives/#developers)

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

## Description

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.

## Installation

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

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Category Based Archives” is open source software. The following people have contributed
to this plugin.

Contributors

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

[Translate “Category Based Archives” into your language.](https://translate.wordpress.org/projects/wp-plugins/category-based-archives)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/category-based-archives/),
check out the [SVN repository](https://plugins.svn.wordpress.org/category-based-archives/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/category-based-archives/)
by [RSS](https://plugins.trac.wordpress.org/log/category-based-archives/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **1.0.5**
 *  Last updated **18 years ago**
 *  Active installations **10+**
 *  WordPress version ** 2.5 or higher **
 *  Tested up to **2.6**
 * Tags
 * [category](https://wordpress.org/plugins/tags/category/)[date](https://wordpress.org/plugins/tags/date/)
   [loop](https://wordpress.org/plugins/tags/loop/)[template](https://wordpress.org/plugins/tags/template/)
 *  [Advanced View](https://wordpress.org/plugins/category-based-archives/advanced/)

## Ratings

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/category-based-archives/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

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