Title: Posts from a Category Widget
Author: Takayuki Miyauchi
Published: <strong>2011 年 10 月 4 日</strong>
Last modified: 2016 年 1 月 3 日

---

搜索插件

![](https://ps.w.org/posts-in-category-widget/assets/banner-772x250.png?rev=522252)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/posts-in-category-widget_1b95bb.svg)

# Posts from a Category Widget

 作者：[Takayuki Miyauchi](https://profiles.wordpress.org/miyauchi/)

[下载](https://downloads.wordpress.org/plugin/posts-in-category-widget.1.2.0.zip)

 * [详情](https://cn.wordpress.org/plugins/posts-in-category-widget/#description)
 * [评价](https://cn.wordpress.org/plugins/posts-in-category-widget/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/posts-in-category-widget/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/posts-in-category-widget/#developers)

 [支持](https://wordpress.org/support/plugin/posts-in-category-widget/)

## 描述

Displays post from a selected category with post thumbnail.

[This plugin is maintained on GitHub.](https://github.com/miya0001/posts-in-category-widget)

#### 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.

    ```
    <?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>';
        }
    ?>
    ```

Filter for stylesheet URI.

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

#### 译:

 * Japanese(ja) – [Takayuki Miyauchi](http://firegoby.theta.ne.jp/)

Please contact me.

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

#### 贡献者

 * [Takayuki Miyauchi](http://wpist.me/)
 * [Hosoya Takashi](http://ht79.info/)

### 荣誉榜

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.

### 联系人

twitter @miya0001

## 安装

 * A plugin installation screen is displayed on the WordPress admin panel.
 * It installs it in `wp-content/plugins`.
 * The plugin is made effective.

## 评价

![](https://secure.gravatar.com/avatar/aa9d42820809f594e989cd1766a0b395711086ed8eb7ed48ca961843e911fd87?
s=60&d=retro&r=g)

### 󠀁[Great!](https://wordpress.org/support/topic/great-4817/)󠁿

 [Marinko](https://profiles.wordpress.org/weberteam/) 2016 年 9 月 3 日

Easy to use plugin! Thank you…

![](https://secure.gravatar.com/avatar/4631e937f90648a120f1b0aefa48dee48bf65bf9fe07a1bb88177588a8fbfcb2?
s=60&d=retro&r=g)

### 󠀁[Great little plugin](https://wordpress.org/support/topic/great-little-plugin-111/)󠁿

 [candell](https://profiles.wordpress.org/candell/) 2016 年 9 月 3 日

Easy to set up, use and customise. I have advanced custom fields items pulling through
via tags, took 5 mins. Can’t ask for better than that.

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/posts-in-category-widget/reviews/)

## 贡献者及开发者

「Posts from a Category Widget」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Takayuki Miyauchi ](https://profiles.wordpress.org/miyauchi/)
 *   [ Takashi Hosoya ](https://profiles.wordpress.org/tkc49/)

[帮助将「Posts from a Category Widget」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/posts-in-category-widget)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/posts-in-category-widget/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/posts-in-category-widget/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/posts-in-category-widget/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/posts-in-category-widget/)。

## 更新日志

#### 1.1.1

 * Tested up to 1.1.1.

#### 1.0.1

 * https://github.com/miya0001/posts-in-category-widget/compare/6526d94bb17129414ca675e047daf447ced1c4a4…
   1.0.1

#### 0.9.1

 * use wp_enqueue_style() for load css
 * shortcode supoort

#### 0.6.0

 * Bug fix.

#### 0.4.0

 * Bug fix.

#### 0.1.0

 * The first release.

## 额外信息

 *  版本 **1.2.0**
 *  最后更新：**10 年前**
 *  活跃安装数量 **300+**
 *  WordPress 版本 ** 3.4 或更高版本 **
 *  已测试的最高版本为 **4.4.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/posts-in-category-widget/)
 * 标签
 * [widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/posts-in-category-widget/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  4 条 5 星评价     ](https://wordpress.org/support/plugin/posts-in-category-widget/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/posts-in-category-widget/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/posts-in-category-widget/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/posts-in-category-widget/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/posts-in-category-widget/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/posts-in-category-widget/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/posts-in-category-widget/reviews/)

## 贡献者

 *   [ Takayuki Miyauchi ](https://profiles.wordpress.org/miyauchi/)
 *   [ Takashi Hosoya ](https://profiles.wordpress.org/tkc49/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/posts-in-category-widget/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://wpist.me/)