內容目錄
前言介紹
- 這款 WordPress 外掛「Around this date in the past…」是 2007-03-15 上架。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2007-07-27,距離現在已有 6491 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 2.0 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
archives |
內容簡介
[ 網站中的西班牙文註釋 ] [ 網站中的加泰羅尼亞文註釋 ]
此外掛程式顯示過去某個日期的文章/貼文(如果有的話)。此外掛程式高度可自訂。預設會取得一年前此時週圍一週的文章資料。
重要提示:如果您的側邊欄支援新的 WordPress 小工具,您最好使用「過去日期的文章 … 小工具版」這個外掛程式。
點擊這裡檢視:
[ https://wordpress.org/extend/plugins/plugin/around-this-date-in-the-past-widget-edition/ ]
用法
將這個函數放置在您想要顯示連結的位置。
您可以使用預設參數呼叫函數:
或者自訂:
', $daysbefore = '3', $daysafter = '3', $mode='1', $yearsago = '1'′, $limit = '5', $none= 'none', $showdate = '0', $dateformat = 'y', $showexcerpt = '0'); ?>
或者
', $daysbefore = '3', $daysafter = '3', $mode='2', $lastxyears = '2'′, $limit = '5', $none= 'none', $showdate = '0', $dateformat = 'y', $showexcerpt = '0'); ?>
或者
', $daysbefore = '3', $daysafter = '3', $mode='3', $sinceyear = '2004'′, $limit = '5', $none= 'none', $showdate = '0', $dateformat = 'y', $showexcerpt = '0'); ?>
設定參數
$before = 顯示連結前的文字,預設為「去年這個週:」
$after = 顯示連結後的文字,預設為「」
$daysbefore = 在一年前之前會顯示的天數文章,預設為「3」(3 天前)
$daysafter = 在一年前之後會顯示的天數文章,預設為「3」(3 天後)
$mode = 選擇您想要運作的模式,預設為「1」(X 年前)
模式 1: 取得 X 年前這個日期的文章。
模式 2: 取得過去 X 年這個日期的文章。
模式 3: 取得從 X 年開始這個日期的文章。
$yearsago = 顯示「X」年前的文章,預設為「1」(1 年),僅當選擇 MODE 1 時使用。
$lastxyears = 顯示最新「X」年的文章,預設為「1」(1 年),僅當選擇 MODE 2 時使用。
$sinceyear = 顯示從「X」年開始的文章,預設為「2005」(自 2005 年開始),僅當選擇 MODE 3 時使用。
$limit = 擷取的文章數量,預設為「4」。
$none = 當沒有文章時顯示的文字。預設為「none」。
$showdate = 旁邊顯示日期。「0」代表取消顯示,「1」代表開啟顯示(預設為關閉)。
$dateformat = 顯示旁邊日期的格式(如果勾選)。請參閱 http://www.php.net/date
$showexcerpt = 在連結旁顯示節錄。.「0」代表取消顯示,「1」代表開啟顯示(預設為關閉)。
自訂顯示
除了函數中提供的選項外,您也可以使用 CSS 大幅自訂輸出的外觀。以下是可用的類別:
ul.atd-list {} // 基本的清單容器。
li.atd-year {} // 年度標題。
atd-yXXXX {} // 依年分的標題,例如 atd-y2006、atd-y2005 …
ul.atd-yearlylist {} // 每年文章的清單容器。
li.atd-entry {} // 包含每一篇過去日期文章的清單項目。
atd-yXXXX {} // 依年分的標題,例如 atd-y2006、atd-y2005 …
atd-mXX {} // 依月份的標題,例如 atd-m01、atd-m02 … atd-m12。
atd-dXX {} // 依日期的標題,例如 atd-d01、atd-d02 … atd-d31。
atd-XXXXXXXX {} // 依日期的標題,例如 atd-2006-01-31、atd-2005-02-01 …
原文外掛簡介
[ Notas en castellano en la web ] [ Notes en catala a la web ]
It shows around this date entries/posts in the past (if they exist). It is highly customizable. By default it retreives a week around the current day 1 year ago.
IMPORTANT: If your sidebar supports the new WordPress Widgets, you might better use the “Around this date in the past… – Widget Edition” plugin.
Check-it here:
[ https://wordpress.org/extend/plugins/plugin/around-this-date-in-the-past-widget-edition/ ]
Usage
Place the function wherever you want to show the links.
You can call to function with default parameters:
Or configure it:
', $daysbefore = '3', $daysafter = '3', $mode='1', $yearsago = '1'′, $limit = '5', $none= 'none', $showdate = '0', $dateformat = 'y', $showexcerpt = '0'); ?>
or
', $daysbefore = '3', $daysafter = '3', $mode='2', $lastxyears = '2'′, $limit = '5', $none= 'none', $showdate = '0', $dateformat = 'y', $showexcerpt = '0'); ?>
or
', $daysbefore = '3', $daysafter = '3', $mode='3', $sinceyear = '2004'′, $limit = '5', $none= 'none', $showdate = '0', $dateformat = 'y', $showexcerpt = '0'); ?>
Configuration parameters
$before = Code will show before links. Defaults to ‘This week last year…: ‘
$after = Code will show after links. Defaults to ‘’
$daysbefore = Days’ posts that will show before one year ago. By default ‘3' (3 days before)
$daysafter = Days’ posts that will show after one year ago. By default ‘3' (3 days after)
$mode = Select the mode that you want the widget to work. By default ‘1' (X years ago)
Mode 1: get posts around this date from X years ago.
Mode 2: get posts around this date for the last X years.
Mode 3: get posts around this date since year X.
$yearsago = It shows “X” years ago posts. By default ‘1' (1 year). ONLY IF MODE 1 IS SELECTED.
$lastxyears = It shows posts por the last "X" years. By default ‘1' (1 year). ONLY IF MODE 2 IS SELECTED.
$sinceyear = It shows posts since the year "X". By default ‘2005' (since year 2005). ONLY IF MODE 3 IS SELECTED.
$limit = Number of posts to retrieve. By default ‘4'.
$none = Text shown when there are no posts. By default 'none'.
$showdate = Show dates next to the links. ('0' or '1', by default '0', disabled)
$dateformat = Format of the date displayed next to the links (if checked). See http://www.php.net/date
$showexcerpt = Show the excerpt next to the links. ('0' or '1', by default '0', disabled).
Customize display
In adition to the options avaliable in the function you can highly customize the apearance of the output by using CSS. These are the classes avaliable:
ul.atd-list {} // base list container.
li.atd-year {} // Yearly headers.
atd-yXXXX {} //yearly based class, eg. atd-y2006, atd-y2005 …
ul.atd-yearlylist {} // list container for each year around this date posts.
li.atd-entry {} // list items containing each around this date posts.
atd-yXXXX {} //yearly based class, eg. atd-y2006, atd-y2005 …
atd-mXX {} //montly based class, eg. atd-m01, atd-m02 … atd-m12.
atd-dXX {} //dayly based class, eg. adt-d01, atd-d02 … atd-d31.
atd-XXXXXXXX {} //date based class, eg. atd-20061205, atd-20050304 …
a.atd-entry-title {} // Link to the post.
.atd-entry-date {} // span containing the date, if $showdate enabled.
.atd-entry-excerpt {} // span containing the excerpt, if $showexcerpt enabled.
License
This plugin is released under the GPL license. See license.txt for details.
Credits and Acknowledgments
This plugin is based on:
– “One year ago” plugin released by Borja Fernandez
[ http://www.lamateporunyogur.net/wp-plugins/one-year-ago/ ]
– “Wayback” plugin realeaased by Chris Goringe
[ http://code.goringe.net/WordPress/ ]
Thanks to Borja Fernandez[ http://www.lamateporunyogur.net ] and Chris Goringe [ http://tis.goringe.net ] for writing those plugins and to Luis Pérez and Mike Koepke for their contributions.
ToDo
Nothing else planed by now.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Around this date in the past…」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
0.7 | 0.6.1 | 0.6.2 | 0.6.3 | 0.6.9 | trunk |
延伸相關外掛(你可能也想知道)
Post Type Archive Link 》Post Type Archive Link 外掛會在「外觀 > 選單」管理頁面上建立一個新增文章類型存檔頁面的元件。, 此元件將會列出所有自訂文章類型,並且允許您在 WordPres...。
Disable Author Archives 》這是一個簡單輕量的 WordPress 外掛,可以完全停用作者存檔/頁面(無論相應的作者是否存在),並使網頁伺服器返回404狀態碼('未找到')。相關連結也將禁用或...。
Annual Archive 》Annual Archive 外掛改善了 WordPress 篩選文章的 shortcode 和側邊欄小工具。文章可以按照日、週、月或年進行篩選。列表可以按十年分組,並且可以按文章類型...。
Simple Yearly Archive 》Simple Yearly Archive是一個簡單而漂亮的WordPress外掛程式,可以讓您以年為基礎的列表顯示存檔,基本上和WP存檔一樣,但會按照發布年份將所有發布的文章分...。
Ultimate Noindex Nofollow Tool II 》這款 WordPress 外掛可以通過將選定頁面設置為「nofollow」,從而提高網站的搜索引擎優化。, 該外掛能夠給檔案庫、分類、搜尋、標簽、作者、登入、管理等頁面...。
Advanced Posts/Page 》Advanced Posts per Page 可以精細地控制您的 WordPress 專案頁面中每個文章存檔頁面顯示的文章數量。, 現在,有別於以往只能在「部落格頁面最多顯示 x 篇文...。
Collapsing Archives 》這是一個相對簡單的外掛程式,使用 Javascript 技術,可使側邊欄中的存檔連結以年份和/或月份折疊顯示。它提供多項選項,如連結存檔頁面的能力、是否顯示個別...。
Archives Calendar Widget 》這個外掛提供的小工具可以將您的月份或每日存檔以日曆形式顯示在側邊欄。如果您的存檔很多,佔據了側邊欄的很多空間,那麼這個小工具就是為您而設。您可以使...。
Sitekit 》, Speedup and Protect WordPress |, Sitekit |, 贊助 |, GitHub, , 設定:, , Google Analytics 代碼, 如果使用者已登入,顯示/隱藏 Google Analytics...。
Extra Shortcodes 》, WordPress Pro plugins, Extra Shortcodes, Donate, GitHub, , , 簡碼:, , [extra_archives]– 按日期排序的月份檔案鏈結清單;, ...。
Expanding Archives 》 Expanding Archives 外掛新增了一個小工具,以可展開/可折疊的格式顯示您的舊文章。每篇文章都是按照它的年份和月份進行分類,因此您可以展開特定月份和年份...。
Custom Post Type Date Archives 》在管理儀表板中為自訂文章類型新增日期存檔。此外採用插件還提供小工具和編輯器區塊來顯示存檔、日曆和最近的文章。這允許您將此插件用作超級簡單的活動日曆...。
Custom Post Limits 》此外掛可獨立控制首頁、搜尋結果、作者、分類、標籤、自訂文章型別、自訂分類法和日期存檔的文章數量,包括特定的存檔。 WordPress 預設提供一個設定選項來控...。
Compact Archives 》WordPress 內建的歸檔小工具對於新網誌很好用,但對於像 WPBeginner 這樣已有一定立足點的網站來說,外觀就顯得不夠好看。Compact Archives 可以在比較小的區...。
Tainacan 》Tainacan 是一個開源的、強大且靈活的數位庫平台,用於 WordPress。它可以像發佈博客文章那樣輕鬆地管理和發佈您的數位收藏品,擁有專業數位庫平台的所有工具...。