[WordPress] 外掛分享: Posts from a Category Widget

首頁外掛目錄 › Posts from a Category Widget
WordPress 外掛 Posts from a Category Widget 的封面圖片
300+
安裝啟用
★★★★★
5/5 分(4 則評價)
3726 天前
最後更新
問題解決
WordPress 3.4+ v1.2.0 上架:2011-10-03

內容簡介

這個外掛會在側邊欄小工具中顯示從特定分類中的文章,包括文章縮略圖。

此外掛在 GitHub 上有維護。

部分功能:

顯示從特定分類中的文章,包括文章縮略圖在側邊欄小工具中。
你可以自定義 HTML 輸出。
你可以在外掛中自定義預設 HTML 模板。

篩選鉤子範例

篩選預設模板。

<?php
add_filter("posts-in-category-widget-template", "my_template");
function my_template($template) {
return '<div class="%class%"><a href="%post_url%">%post_thumb%</a></div>';
}
?>

篩選樣式表 URI。

<?php
add_filter("posts-in-category-widget-stylesheet", "my_style");
function my_style($url) {
return 'http://example.com/path/to/style.css';
}
?>

翻譯者

日文(ja) – Takayuki Miyauchi

請與我聯繫。

Twitter 帳號 @miya0001
http://wpist.me/ (en)
http://firegoby.jp/ (ja)
https://github.com/miya0001/posts-in-category-widget

貢獻者

Takayuki Miyauchi
Hosoya Takashi

致謝

這個外掛不保證運作,不過 WordPress 的使用者可以自由免費使用此外掛,無論是什麼目的。

作者必須事先承認,此外掛的操作保證和支援並未作出任何保證。

聯繫方式

Twitter 帳號 @miya0001

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Posts from a Category Widget」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Displays post from a selected category with post thumbnail.
This plugin is maintained on GitHub.
Some features:

Displays post from a selected category with post thumbnail on sidebar widget.
You can customize HTML output.
You can customize default HTML template in your plugin.

filter hooks example
Filter for default template.
%post_thumb%

';
}
?>

Filter for stylesheet URI.

Translators

Japanese(ja) – Takayuki Miyauchi

Please contact me.

@miya0001 on twitter.
http://wpist.me/ (en)
http://firegoby.jp/ (ja)
https://github.com/miya0001/posts-in-category-widget

Contributors

Takayuki Miyauchi
Hosoya Takashi

Credits
This plugin is not guaranteed though the user of WordPress can freely use this plugin free of charge regardless of the purpose.
The author must acknowledge the thing that the operation guarantee and the support in this plugin use are not done at all beforehand.
Contact
twitter @miya0001

延伸相關外掛

文章
Filter
Mastodon