[WordPress] 外掛分享: EG-Archives

前言介紹

  • 這款 WordPress 外掛「EG-Archives」是 2009-06-06 上架。
  • 目前有 100 個安裝啟用數。
  • 上一次更新是 2011-10-26,距離現在已有 4939 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0.0 以上版本才可以安裝。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

emmanuelg |

外掛標籤

widget | archive |

內容簡介

標準的 Archives widget 不允許設定太多參數。您只能指定:

標題,
是否顯示文章計數。

使用 EG-Archives widget,您可以選擇:

標題,
列表格式(簡單或下拉式列表),
類型:年度、月度等等,
顯示特定類別的存檔,
列表欄位數(1 或 2)

還新增了一種特殊的類型:「混合年度/月份」類型。使用此類型,您可以在指定日期前以年度模式顯示存檔,之後則以月份模式顯示。此類型可讓列表縮短,若您每年發表文章過少,將非常有用。舉例:

2011 年 8 月
2011 年 4 月
2011 年 2 月
2011 年 1 月
2010 年
2009 年

翻譯

此外採用了 4 種語言的翻譯。以下是每位貢獻者:

法文 (FR)
德文 (DE) - Frank W. Hempel
保加利亞文 (BG) - Web Geek、Dimitar Kolevski
俄文 (RU) - FatCow

使用方法

EG-Archives 新增了一個 widget 和一個範本標籤。

Widget

前往外觀 / Widget 選單,
啟用名為「EG-Archives」的 widget,
透過 Widget 選單進行設定。

範本標籤

您可以在模板任意位置顯示存檔列表,語法為:
此處的 arguments 與標準 WordPress 函式 wp_get_archives 的相同。

type (字串) 要顯示存檔列表類型。有效值:yearly、monthly、daily、weekly、postbypost。預設為 monthly,
limit (整數) 要獲取的存檔數量。預設為不限,
format (字串) 存檔列表格式。有效值:

html - 採用 HTML 清單 () 和前後字串。預設值,
option - 採用選取標籤 () 或下拉式選單標籤 (),
link - 採用連結標籤 (),
custom - 採用自訂列表及前後字串。

before (字串) 採用 html 或 custom 格式選項時要放在連結前的文字。沒有預設值,
after (字串) 採用 html 或 custom 格式選項時要放在連結後的文字。沒有預設值,
show_post_count (布林值) 是否要在存檔中顯示文章數。適用於所有 type,除了「postbypost」。預設為 0,

echo (布林值) 是否要顯示輸出,或是回傳。預設為 1。

eg_get_archives 接受另一個參數:

pivot (整數) 「軸心」年度。在軸心之前,存檔以年度模式顯示,在之後以月份模式顯示。預設是目前年度(2009 年)

columns (整數) 要顯示的列表欄位數。可能的值是 1 或 2。預設為 1。

授權

此外採用了 4 種語言的翻譯。以下是每位貢獻者:

此外採用了 4 種語言的翻譯。以下是每位貢獻者:

此插件採用 GPL 釋出,您可以在個人或商業部落格上免費使用它。

翻譯

此插件採用法文和英文翻譯,請參閱

原文外掛簡介

The standard Archives widget doesn’t accept a lot of parameters. You can just specify

a title,
if you want to display posts count or not.

With the EG-Archives widget, you can choose

the title,
the format of the list (simple or dropdown list),
the type: Yearly, Monthly, …
category, to display archives for only specific categories,
Number of columns (1 or 2)

A specific type is added: the “mixed Yearly/monthly” type.
With this type, you can display list of archives in yearly mode before a specified year, and in monthly mode after this specified date. This type allows to shorten list, and is very useful if you don’t publish too many posts per year. Example:

August 2011
April 2011
February 2011
January 2011
2010
2009

Translations
The plugin comes up with 4 translations. Thanks to the following people for their contributions:

French (FR)
German (DE) – Frank W. Hempel
Bulgarian (BG) – Web Geek, Dimitar Kolevski
Russian (RU) – FatCow

Usage
EG-Archives adds a widget, and a template tag.
Widget

Go to the Appearence / Widgets menu,
Active the widget named: EG-Archives,
Configure it, through the widget menu.

Template tag
You can display the archives list, anywhere in your templates, with the function:
Arguments are the same than the standard WordPress function wp_get_archives.

type (string) The type of archive list to display. Valid values: yearly, monthly, daily, weekly, postbypost. Default is monthly,
limit (integer) Number of archives to get. Default is no limit,
format (string) Format for the archive list. Valid values:

html – In HTML list (
) tags and before and after strings. This is the default,
option – In select () or dropdown option () tags,
link – Within link () tags,
custom – Custom list using the before and after strings.

before (string) Text to place before the link when using the html or custom for format option. There is no default,
after (string) Text to place after the link when using the html or custom for format option. There is no default,
show_post_count (boolean) Display number of posts in an archive (1 – true) or do not (0 – false). For use with all type except ‘postbypost’. Defaults to 0,

echo (boolean) Display the output (1 – true) or return it (0 – false). Defaults to 1.
eg_get_archives accept an additional arguments:

pivot (integer) The “pivot” year. Before the pivot, archives are listed i yearly mode, after archives are listed in monthly mode. Default: current year (currently 2009)

columns (integer) Number of columns to display list. Possible values are 1 or 2. Default is 1.

Licence
This plugin is released under the GPL, you can use it free of charge on your personal or commercial blog.
Translations
The plugin comes with French and English translations, please refer to the WordPress Codex for more information about activating the translation. If you want to help to translate the plugin to your language, please have a look at the eg_series.pot file which contains all defintions and may be used with a gettext editor like Poedit (Windows).

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「EG-Archives」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | 1.0.1 | 1.1.0 | 1.1.1 | 2.0.0 | 2.0.1 | 2.0.2 | trunk |

延伸相關外掛(你可能也想知道)

  • Widgets for Google Reviews 》onal version of our review software, you can:, , , Display unlimited Google Reviews, Customize widget design and behavior, Respond to reviews direc...。
  • Blocksy Companion 》Blocksy Companion 是一個外掛,將 Blocksy 主題轉化為強大的瑞士軍刀工具。, 只有在安裝並啟用 Blocksy 主題時,它才會運行並添加增強功能。, 最小需求, , W...。
  • Black Studio TinyMCE Widget 》此外掛添加了一個新的 Visual Editor 小工具類型,讓您能夠在側邊欄中輕鬆地插入豐富的文字和媒體對象。使用 Black Studio TinyMCE Widget 時,您將能夠使用W...。
  • Widget Importer & Exporter 》Widget Importer & Exporter 是一個有用的外掛,可將小工具從一個WordPress站點移動到另一個站點,備份小工具,並供主題開發人員為用戶提供範例小工具。...。
  • Orbit Fox by ThemeIsle 》透過Orbit Fox,您可以使用各種模組擴充您的主題功能,例如社交媒體分享按鈕和圖示、自訂選單圖示、頁首和頁尾腳本、一鍵導入頁面模板、頁面建構器附加元件和...。
  • Recent Posts Widget With Thumbnails 》列出最新的文章標題、縮略圖、摘要、作者、類別、日期等等!, 雖然此外掛僅建立在小工具區域,但使用者報告說它在 Elementor 和 Oxygen 上運作順暢。但它是否...。
  • WordPress Popular Posts 》WordPress Popular Posts 是一個高度可定製的小工具,可以顯示您最受歡迎的文章。, 主要特點, , 多小工具功能 – 您可以在您的博客上擁有多個 WordPress...。
  • Widget Logic 》此外掛可在每個小工具中新增一個名為 "Widget logic" 的額外控制欄,讓您控制這個小工具會出現在哪些頁面上。文字欄位允許您使用 WP 的Conditional Tags或任...。
  • Social Media Share Buttons & Social Sharing Icons 》在你的免費測試網站上試試看:點擊此處 => https://tastewp.com/plugins/ultimate-social-media-icons, (這個技巧適用於所有外掛 – 只需在外掛的 WP 存儲庫 ...。
  • Fixed Widget and Sticky Elements for WordPress 》使用 Fixed Widget 外掛可以創建黏貼式的小部件、區塊和其他元素,當用戶向上或向下滾動頁面時,它們會保持在可見的屏幕區域內。, 相較於非固定小工具,黏貼...。
  • PHP Code Widget 》普通的文字小工具允許您插入任意文字和/或 HTML 代碼。這個外掛程式也允許這樣做,但還會解析文本小工具中的任何 PHP 代碼並執行它。, 這可以讓您更輕鬆地遷...。
  • Image Widget 》Image Widget 是一個簡單的外掛程式,利用 WordPress 原生媒體管理員,為您的網站新增圖片小工具。, 需要新增幻燈片、燈箱或隨機圖像嗎?, 請查看 Image Widg...。
  • Custom Sidebars – Dynamic Sidebar Classic Widget Area Manager 》使用 Custom Sidebars,一個靈活的小工具管理器,在您的網站上管理和替換側邊欄和其他小工具區。, 製作自訂側邊欄配置,能夠選擇在您網站的每個頁面或文章上...。
  • Recent Posts Widget Extended 》外掛描述, 此外掛可以啟用自定義、靈活且進階的最新文章功能,您可以透過簡碼或小工具來顯示它。您可以顯示具有縮略圖、摘要和發佈日期的最新文章清單,並且...。
  • Widget Shortcode 》這個短碼需要小工具的ID,但不需要猜測,外掛會為你生成代碼。如果你想要覆蓋小工具的標題,你可以使用 "title" 參數:, [widget id=”text-1″...。

文章
Filter
Apply Filters
Mastodon