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

WP-Cat2Calendar

外掛說明

WP-Cat2Calendar is a plugin which can organize posts into a calendar by category(/ies). It supports a shortcode so you can create a lot of calendars with different settings for different posts or pages on your blog. Every day in the calendar will list the posts published on that day for the selected categories.

Usage

Use WP-Cat2Calendar shortcode in your post/page to add a calendar.

You can add a calendar using the php lines:

$options = array(...);
global $wpCat2Calendar;
echo $wpCat2Calendar->display($options);

Options

  • cat_id – a comma separated list of category ID’s.
    1.0 – 1.0.1 – uncategorized by default.
    1.0.2 – all categories by default.
    You also can use a special keyword post_author which will be replaced with a post author ID where shortcode is placed.
    WordPress bug (still in 2.8.5) at wp-includes/query.php line 1979 in exclusion so you can exclude only one author, but you can include multiple.
  • author_id – a comma separated list of author ID’s. (all authors by default)
    since: 1.0.2
    You also can use a special keyword post_author which will be replaced with a post author ID where shortcode is placed.
    WordPress bug (still in 2.8.5) at wp-includes/query.php line 1979 in exclusion so you can exclude only one author, but you can include multiple.
  • year – year you want to display in calendar (current year by default)
  • month – month you want to display in calendar (current month by default)
  • show_nav – show/hide month/year navigation, 0 or 1 (0 by default)
  • show_date – show/hide selected month/year title, 0 or 1 (0 by default). Have no affect if navigation is shown.
  • allow_change_date – allow user to navigate through a calendar even if navigation is hidden and user has direct link. Has no affect if navigation is shown.

Examples

[WP-Cat2Calendar cat_id="3,4" show_nav="1" year="2009" month="10"]

It will show a calendar of posts for WordPress categories with ID 3 and 4 with navigation and the start date for a calendar will be October, 2009.

[WP-Cat2Calendar cat_id="1" show_nav="1"]

It will show a calendar of posts for WordPress category ID 1 with navigation and the start date for a calendar will be current date.

[WP-Cat2Calendar author_id="1, 2, 3" cat_id="-4,-5"]

It will show a calendar of posts posted by users with ID 1, 2, 3 for all WordPress categories excluding categories with ID 4 and 5.

[WP-Cat2Calendar author_id="-post_author"]

Show a calendar of posts posted by any user except a posts which belongs to the author of post where shortcode is placed.

[WP-Cat2Calendar author_id="post_author"]

Show a calendar of posts posted by the author of post where shortcode is placed.

See the WP-Cat2Calendar homepage for further information.

螢幕擷圖

  • How it looks
  • Widgets support
  • Widget settings
  • Settings page

安裝方式

WP-Cat2Calendar requires WordPress 2.8.4 or higher.

  • Download and extract the plugin onto your computer
  • Fill in the plugin extraction directory/folder to your blog’s plugins directory (usually wp-content/plugins)
  • Activate the plugin

常見問題集

N/A

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈WP-Cat2Calendar〉的開發相關工作。

參與者

將〈WP-Cat2Calendar〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

Upcoming 1.0.9

  • Plugin context help update
  • ‘No future post’ support

1.0.8

  • Navigation URL hot fix for perma-structs without trailing slash

1.0.7

  • The most URL Rewrite issues fixed
  • ‘No Future Posts’ support removed till next release

1.0.6

  • Date format setting (date_format shortcode parameter)
  • Show prev/next month/year feature
  • New widget options: category select, author select, cell height
  • “Growing” URL bug fix
  • Minor CSS fixes

1.0.5

  • Widgets support
  • URL Rewrite issues, but some issues are still unfixed
  • Major JS fixes
  • cell_height shortcode parameter
  • Clickable dates following to category archive
  • Timezone fix
  • Minor visual changes
  • Minor bug fixes

1.0.4

  • URL Rewrite conflict with other plugins is solved
  • Design and behaviour were reworked. Now it shows posts list with excerpts when cursor is over.

1.0.3

  • Localizable navigation date format
  • Months localization through WordPress
  • Title attribute added to the post links
  • Current date fix (wrong timezone)
  • URL Rewrite fixes, now it correctly works and even outside WordPress loop
  • Default theme changes
  • Contextual help update
  • Plugin’s direct call protection

1.0.2

  • author_id option added
  • include/exclude author/category support
  • insignificant code improvements and IE8 fixes in default.css

1.0.1

  • WP 2.6 related fix for default css

1.0

  • Initial release