
內容簡介
這個外掛會在側邊欄小工具中顯示從特定分類中的文章,包括文章縮略圖。
此外掛在 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
外掛標籤
開發者團隊
② 後台搜尋「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%
