這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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 or on Kennneth John Odle’s blog.

Have any questions or suggestions? Create a thread in the support forum.

Visit this page for more WordPress Plugins from the developer.

A special thanks to Ken and Josh 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. Activate the plugin through the ‘Plugins’ menu in 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. Activate the plugin through the ‘Plugins’ menu in 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〉的開發相關工作。

參與者

將〈Custom Recent Posts Widget〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

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