Title: Custom Recent Posts Widget
Author: Prasanna SP
Published: <strong>2012 年 7 月 10 日</strong>
Last modified: 2012 年 12 月 28 日

---

搜索插件

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

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

# Custom Recent Posts Widget

 作者：[Prasanna SP](https://profiles.wordpress.org/prasannasp/)

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

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

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

## 描述

This plugin creates a new widget which lets you show a list of recent posts based
on categories or tags. This is a must have plugin if you want to exclude some categories
in recent posts widget or if you want to show recent posts based on tags. By default
the wordpress recent posts widget shows a posts from all category. But this plugin
gives you more power to customize your recent posts widget. You can also display
post date in the widget.

See the live action of this plugin on [demo site](http://demo.prasannasp.net/custom-recent-posts-widget/)
or on Kennneth John Odle’s [blog](http://blog.kjodle.net/).

Have any questions or suggestions? Create a thread in the [support forum](http://forum.prasannasp.net/forum/plugin-support/custom-recent-posts-widget/).

Visit [this page](http://www.prasannasp.net/wordpress-plugins/) for more **WordPress
Plugins** from the developer.

A special thanks to [Ken](http://blog.kjodle.net/) and [Josh](http://www.joshlobe.com)
for testing the code.

## 屏幕截图

 * [[
 * Custom Recent Posts Widget
 * [[
 * Custom Recent Post Widget when added to sidebar on widget menu. Here the number
   of posts to show is set to 6 and only the ‘Wordpress’ category is selected
 * [[
 * Custom Recent Post Widget showing a list of 6 recent posts from the category ‘
   Wordpress’
 * [[
 * Custom Recent Post Widget in Kennneth John Odle’s blog
 * [[
 * Custom Recent Posts by Tags Widget
 * [[
 * Custom Recent Posts by Tags Widget configuration
 * [[
 * Custom Recent Posts widget with date in 2012 theme

## 安装

 1. Extract the contents of the .zip archive
 2. Upload the `custom-recent-posts-widget` folder to your `wp-content/plugins` directory.
 3. 通过WordPress的“插件”菜单激活插件。
 4. Go to Appearance –> Widgets to add the widget to any widgetized areas.

## 常见问题

  Installation Instructions

 1. Extract the contents of the .zip archive
 2. Upload the `custom-recent-posts-widget` folder to your `wp-content/plugins` directory.
 3. 通过WordPress的“插件”菜单激活插件。
 4. Go to Appearance –> Widgets to add the widget to any widgetized areas.

  How to style the widget?

The widgets inherit the style of default WordPress Recent Posts widget. You can 
use `.crpw-item` and `.crpw-tag-item` CSS class to style Custom Recent Posts Widget
and Custom Recent Posts by Tags Widget respectively.

**Example**

    ```
    .crpw-item {
        font-weight: bold;
        font-size: 14px;
        list-style: disc inside;
    }
    ```

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Prasanna SP ](https://profiles.wordpress.org/prasannasp/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 2.1.1

 * Changed classname back to `widget_recent_entries`. No more confusions. All themes
   should be happy now. Thanks Adam Parnala for bringing my attention to this issue.

#### 2.1

 * Added option to show post date. Code taken from Recent Posts widget in WordPress
   3.5
 * Changed classname

Note: If it doesn’t show recent posts after updating the plugin, go to widgets and
just hit Save button in the Recent Posts widget configuration

#### 2.0

 * Added Custom Recent Posts by Tags Widget. You can show recent posts based on 
   tags.
 * Removed style sheet and changed classname to `widget_recent_entries`. So, widget
   will inherit the style of default WordPress Recent Posts widget.

#### 1.1

 * Changed class names
 * Updated style sheet
 * Using `crpw_register_widgets` function to register the widget
 * Added another screen shot

#### 1.0

 * Initial public release

## 额外信息

 *  版本 **2.1.1**
 *  最后更新：**8 年前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 3.1 或更高版本 **
 *  已测试的最高版本为 **3.5.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/custom-recent-posts-widget/)
 * 标签
 * [categories](https://cn.wordpress.org/plugins/tags/categories/)[category](https://cn.wordpress.org/plugins/tags/category/)
   [recent posts](https://cn.wordpress.org/plugins/tags/recent-posts/)[tag](https://cn.wordpress.org/plugins/tags/tag/)
   [tags](https://cn.wordpress.org/plugins/tags/tags/)
 *  [高级视图](https://cn.wordpress.org/plugins/custom-recent-posts-widget/advanced/)

## 评级

 4.9 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Prasanna SP ](https://profiles.wordpress.org/prasannasp/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](http://www.prasannasp.net/donate/)