Title: Categories Recent Posts Widget
Author: The Medios
Published: <strong>2012 年 9 月 28 日</strong>
Last modified: 2014 年 1 月 25 日

---

搜索插件

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

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

# Categories Recent Posts Widget

 作者：[The Medios](https://profiles.wordpress.org/themedios/)

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

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

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

## 描述

An easy to use Recent Posts Plugin. This plugin will allow you to display the recent
posts in a sidebar only on a category page.

**New Features Added**

 * Specify the number of posts to display in the sidebar
 * Show/ hide excerpt
 * Specify the number of words to be displayed in the excerpt
 * Option to specify custom Read More text
 * The Read More text is also a link to the posts permalink

## 屏幕截图

 * [[
 * Widget appearing in a sidebar on a category archive page
 * [[
 * Widget settings option in the Dashboard

## 安装

Installing is pretty easy takes only a minute or two.

 1.  Upload ‘category-recent-posts-widget.zip’ directory to your ‘/wp-content/plugins/’
     directory.
 2.  Activate the plugin through the ‘Plugins’ screen in WordPress.
 3.  On the ‘Widgets’ sub-menu of ‘Appearance’ you will find a new widget type called‘
     Category Recent Posts’.
 4.  Add one or more of these to your themes widget display areas.
 5.  For each widget you add, select a title.
 6.  For each widget you add, specify the number of posts to display in the widget,
     show/ hide excerpt or specify the number of words to display in excerpt
 7.  Specify the Read More text that will be displayed after the excerpt in the sidebar.
     This defaults to ellipses […] if the field is left blank
 8.  Save your settings.
 9.  That’s it. Enjoy!

## 常见问题

  Why cannot I see the widget in my Sidebar on the Home Page?

The widget will be displayed only on the ‘Category Archive Page’

  Can I style the my recent posts widget

Yes. You can style it as required. The recent posts list are wrapped in an unordered
HTML list having CSS class “.tm-recent”. The excerpt is wrapped in a div tag with
the CSS class “.tm-excerpt”. The complete widget itself is wrapped in the CSS class“.
tm-cat-recent-post”

  How can I style the Read More link

The Read More link is wrapped in the CSS class “.tm-read-more-text”. You can style
this class n your stylesheet.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ The Medios ](https://profiles.wordpress.org/themedios/)
 *   [ illuminatus7 ](https://profiles.wordpress.org/illuminatus7/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 0.1

 * Initial Release

#### 0.2

 * Added option to select the number of posts in widget settings
 * Added default number of posts to 5
 * Added option to select whether excert will be displayed or not
 * Changed Domain to Gettext Calls to ‘themedios’
 * Fixed control options’ width parameter to an integer instead of the previous 
   string
 * Changed old CSS class names

#### 1.0

 * Checked for 3.5 compatability. Looks good 🙂
 * Added option to specify Read More text. Returns ellipses […] if Read More text
   is empty
 * Hyperlink to the posts permalink for Read More text.
 * Added CSS class to style Read More text
 * Updated screenshot for Widget Settings

## 额外信息

 *  版本 **1.1**
 *  最后更新：**12 年前**
 *  活跃安装数量 **40+**
 *  WordPress 版本 ** 3.1.0 或更高版本 **
 *  已测试的最高版本为 **3.7.41**
 *  语言
 * [English (US)](https://wordpress.org/plugins/category-recent-posts-widget/)
 * 标签
 * [archive page](https://cn.wordpress.org/plugins/tags/archive-page/)[post](https://cn.wordpress.org/plugins/tags/post/)
   [recent posts](https://cn.wordpress.org/plugins/tags/recent-posts/)[sidebar](https://cn.wordpress.org/plugins/tags/sidebar/)
   [widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/category-recent-posts-widget/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ The Medios ](https://profiles.wordpress.org/themedios/)
 *   [ illuminatus7 ](https://profiles.wordpress.org/illuminatus7/)

## 支持

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

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