前言介紹
- 這款 WordPress 外掛「WP-Cat2Calendar」是 2009-10-29 上架。
- 目前有 30 個安裝啟用數。
- 上一次更新是 2010-12-28,距離現在已有 5240 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 2.8.4 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
andddd |
外掛標籤
post | calendar | category | organize | future post |
內容簡介
WP-Cat2Calendar 是一個外掛,他可以透過分類(們)將文章組織成一個日曆。它支援 shortcode,因此您可以為部落格上不同的文章或頁面建立各種不同的設置的日曆。在日曆上的每天會列出所選類別上當天已發佈的文章。
用法
在您的文章 / 頁面中使用 WP-Cat2Calendar shortcode 來添加日曆。
您可以使用下列 PHP 代碼來添加一個日曆:
$options = array(...);
global $wpCat2Calendar;
echo $wpCat2Calendar->display($options);
選項
cat_id - 分類 ID 的逗號分隔列表。1.0 - 1.0.1 – 默認未分類。1.0.2 – 默認所有類別。您還可以使用特殊關鍵字 post_author,這將被替換為 shortcode 所放置的文章作者 ID。WordPress 的錯誤(目前在2.8.5中仍存在)會在 wp-includes/query.php 的第1979行中排除多個作者的文章。
author_id - 作者 ID 的逗號分隔列表。(所有作者默認)自1.0.2起您還可以使用特殊關鍵字 post_author,這將被替換為 shortcode 所放置的文章作者 ID。WordPress 的錯誤(目前在2.8.5中仍存在)會在 wp-includes/query.php 的第1979行中排除多個作者的文章。
year - 您想在日歷中顯示的年份。(默認為當前年份)
month - 您想在日曆中顯示的月份。(默認為當前月份)
show_nav - 顯示 / 隱藏月份 / 年份的導航,0 或 1(默認為0)
show_date - 顯示 / 隱藏選定月份 / 年份的標題,0 或 1(默認為0)。如果顯示導航,就沒有效果。
allow_change_date - 允許用戶通過日曆進行導航,即使隱藏了導航並且用戶有直接鏈接也會顯示。(如果顯示導航,就沒有影響。)
範例
[WP-Cat2Calendar cat_id="3,4" show_nav="1" year="2009" month="10"]
它將顯示 WordPress 分類 ID 為 3 和 4 的文章日曆,顯示導航,並且日曆的開始日期將為 2009 年 10 月。
[WP-Cat2Calendar cat_id="1" show_nav="1"]
它將顯示 WordPress 分類 ID 為 1 的文章日曆,顯示導航,並且日曆的開始日期將為當前日期。
[WP-Cat2Calendar author_id="1, 2, 3" cat_id="-4,-5"]
它將顯示由使用者 ID 為 1、2、3 發佈的文章日曆,排除 ID 為 4 和 5 的 WordPress 所有類別。
[WP-Cat2Calendar author_id="-post_author"]
顯示由任何使用者發佈的文章日曆,但是排除shortcode 所放置的文章作者的文章。
[WP-Cat2Calendar author_id="post_author"]
顯示由shortcode 所放置的文章作者發佈的文章日曆。
有關詳細信息,請訪問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.2You 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.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP-Cat2Calendar」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0 | 1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | 1.0.6 | 1.0.7 | 1.0.8 | trunk |
延伸相關外掛(你可能也想知道)
PS Auto Sitemap 》PS Auto Sitemap 是一個 WordPress 外掛,自動從您的 WordPress 網站生成網站地圖頁面。, 對於初學者來說,安裝非常容易;對於專家來說,定制也非常容易。您...。
Post Type Switcher 》這個外掛在文章編輯介面中新增了一個簡單的文章型別下拉選單,讓你可以重新指派任何文章至新的文章型別。你可以在編輯文章時更換文章的型別。, 支援的型別, ...。
Post Duplicator 》這個外掛是用來製作選定文章的完全一模一樣複製。它支援自訂文章類型、自訂分類和自訂欄位。, *注意: 評論不會被複製到新文章。, 這個外掛的目的是為了快速且...。
Optimize Database after Deleting Revisions 》這個外掛是一個「一鍵式」WordPress資料庫清理/優化器。, 主要功能, , 刪除文章、頁面和/或自訂文章類型的修訂版本(您可以選擇保留最近的「X」個修訂版本,...。
Advanced Excerpt 》這個外掛可以改進 WordPress 原有的摘錄文章功能。, , 保留摘錄中的 HTML 標記,並可自選需要保留的標記, 按字元數或字數截斷摘錄, 只計算「真正的」文字(HT...。
Add From Server 》這個外掛提供有限的支援。請不要期望有太多新功能或修正 bug。功能可能隨時被移除。, Add From Server 外掛旨在幫助緩解不好的網站主機所造成的困擾,讓您可...。
Page and Post Clone 》這個外掛可以透過一個按鈕來複製貼文或頁面,現在您不必從零開始進行新頁面或貼文的樣式設計。, 這個外掛的主要功能包括:, , 建立一個頁面複本,保留所有內...。
WP Page Widget 》這款外掛讓小工具的選擇變得更加容易。啟用此外掛後,我們可以選擇要顯示在特定頁面/文章/自訂文章類型中的小工具。, 請注意,使用此外掛時必須啟用側邊欄主題。。
WP Total Hacks 》WP Total Hacks 可以在您的 WordPress 網站上自訂超過 20 個設置。, 此外掛已在 GitHub 上發布。, 一些功能:, 您可以選擇啟用或停用所有項目。, 需要 PHP5!...。
Revision Control 》**本外掛不提供支援。仍可使用,但請勿期待得到支援要求的回應或對「這無法運作」進行回應。**, Revision Control 是 WordPress 的一款外掛,可以讓使用者更...。
Reveal IDs 》WordPress 2.5版本發佈後,所有管理頁面的ID都被刪除了。這應該是因為普通用戶不需要它們。但對於高級WordPress用戶和開發人員來說,這些ID對某些外掛或模板...。
Bulk Delete 》Bulk Delete 是一個 WordPress 外掛,可以根據不同的條件和過濾器批次刪除文章、頁面、附件、使用者和元資料。此外掛支援以下條件和過濾器:, , 刪除文章, , ...。
WP Admin UI Customize 》, 儀表板, 顯示選項標籤, 輸出 - 元網站, 管理工具列 (Toolbar), 側邊選單 (Side menu), 元箱的管理, 登入畫面, 其他功能, , 這些自訂化都是可以實現的。, , ...。
Themify Portfolio Post 》Themify Portfolio Posts 是一個簡單的外掛,允許您展示乾淨版面的專案資訊。簡約而精美,您可以點擊您的圖庫專案的每張圖片,選擇顯示更多細節,例如專案類...。
Essential Content Types 》Essential Content Types 是一個 WordPress 外掛程式,讓您可以在您的網站上以不同的內容/文章類型展示出優秀的內容。這些內容/文章類型可能會被 WordPress ...。