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

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.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Category Based Archives” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Category Based Archives 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄