Title: TDD Recent Posts
Author: Taylor Dewey
Published: <strong>2008 年 10 月 15 日</strong>
Last modified: 2011 年 11 月 17 日

---

搜尋外掛

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

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

# TDD Recent Posts

 由 [Taylor Dewey](https://profiles.wordpress.org/taylorde/) 開發

[下載](https://downloads.wordpress.org/plugin/tdd-recent-posts.2.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/tdd-recent-posts/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/tdd-recent-posts/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/tdd-recent-posts/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/tdd-recent-posts/#developers)

 [技術支援](https://wordpress.org/support/plugin/tdd-recent-posts/)

## 外掛說明

This is a very simple plugin that mimics the effect of the “recent posts” widget
included with WordPress, but with the addition of a content preview. The plugin 
will, by default, display the name of the post (with a link) and a short bit of 
text from the post.

The number of characters to truncate is controllable in the widget panel.

### Limitations

 * The plugin strips out any HTML tags from the post before displaying it, so if
   you are looking to display images — this isn’t your plugin.

## 螢幕擷圖

[⌊Plugin being displayed in the sidebar of Twenty Eleven (WordPress' default theme)⌉⌊
Plugin being displayed in the sidebar of Twenty Eleven (WordPress' default theme
)⌉[

Plugin being displayed in the sidebar of Twenty Eleven (WordPress’ default theme)

[⌊Widget admin options.⌉⌊Widget admin options.⌉[

Widget admin options.

## 安裝方式

Same ol’

Do your normal plugin installation routine. There are no settings, just the options
in the widget itself. The widget title is TDD Recent Posts. It does not replace 
the existing Recent Posts widget.

## 常見問題集

  Can I set it to display pages as well as posts?

Yes — actually, any post type or any query you want — although it is not in the 
admin menu.
 1. Open tddrecentposts.php 1. Around line 124, you’ll find the query
arguments. 1. Add (or remove) query arguments from the array as discussed here: 
https://codex.wordpress.org/Function_Reference/query_posts 1. Or, request that I
add the feature in the next version.

  ________ screwed up OR _________ isn’t working…

Sorry? Plugin dev isn’t my full time job. Shoot me an email or post on my website
and I’ll try to fix it.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈TDD Recent Posts〉的開發相關工作。

參與者

 *   [ Taylor Dewey ](https://profiles.wordpress.org/taylorde/)

[將〈TDD Recent Posts〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/tdd-recent-posts)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/tdd-recent-posts/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/tdd-recent-posts/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/tdd-recent-posts/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/tdd-recent-posts/)。

## 變更記錄

#### 2.0

 * It’s a long time coming, but I finally got around to updating this plugin for
   a modern WordPress! It now utilizes the widget architecture so you can have multiple
   instances running. Actually, it’s a complete re-write of the plugin.
 * Eliminated the “hard truncate” option, because it didn’t really matter
 * Updated the truncate algorithm slightly, so it will remove punctuation at the
   end of the truncate view
 * Cleaned up (er-rewrote) the widget options so play nicer with others.
 * This version doesn’t use the options table to store options (the plugin architecture
   takes care of that for us), so unfortunately upgrading will cause any previous
   options to disappear. I clean up (delete) any existing options in the table.

#### 1.2

 * Added a “truncate excerpts” option allows you to shorten the content that is 
   hand-written in the excerpt field of a new post.
 * Added a “hard truncate” option which will shorten the preview content to exactly
   the number of characters you specify.

#### 1.1

 * Fixed xhtml validation errors that this plugin was causing.

## 中繼資料

 *  版本 **2**
 *  最後更新 **15 年前**
 *  啟用安裝數 **30+**
 *  WordPress 版本需求 ** 3.2 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.2.1**
 *  語言
 * [English (US)](https://wordpress.org/plugins/tdd-recent-posts/)
 * 標籤:
 * [excerpt](https://tw.wordpress.org/plugins/tags/excerpt/)[post](https://tw.wordpress.org/plugins/tags/post/)
   [posts](https://tw.wordpress.org/plugins/tags/posts/)[preview](https://tw.wordpress.org/plugins/tags/preview/)
   [recent](https://tw.wordpress.org/plugins/tags/recent/)
 *  [進階檢視](https://tw.wordpress.org/plugins/tdd-recent-posts/advanced/)

## 評分

這個項目尚無任何評論記錄。

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

[查看全部使用者評論](https://wordpress.org/support/plugin/tdd-recent-posts/reviews/)

## 參與者

 *   [ Taylor Dewey ](https://profiles.wordpress.org/taylorde/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/tdd-recent-posts/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=385223)