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

Recent Posts with Excerpts

外掛說明

A widget that lists your most recent posts with excerpts, optionally limited to a category. The number of posts and excerpts is configurable; for example, you could show the titles of five posts but include the excerpt for only the two most recent. Supports the_excerpt Reloaded and Advanced Excerpt for excerpts with HTML formatting.

New! Supports displaying post thumbnails along with excerpts. Widget options let you place the thumbnails above the title, in between the title and the excerpt, or below the excerpt.

Now on GitHub.

Translations

If you would like to send me a translation, please write to me through my contact page. Let me know which plugin you’ve translated and how you would like to be credited. I will write you back so you can attach the files in your reply.

螢幕擷圖

  • The widget manager.
  • What is shown, given the settings shown in screenshot #1, using the default theme.

安裝方式

  1. Upload the plugin directory to /wp-content/plugins/
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Go to Appearance → Widgets to add widgets to your sidebar in widget-ready themes.

常見問題集

To style your excerpts, add a declaration for .recent_with_excerpt li blockquote to your theme’s stylesheet.

To add a link to the bottom of the widget’s output, below the list, use the recent_posts_with_excerpts_end action. Example:

add_action( 'recent_posts_with_excerpts_end', 'my_recent_posts_more' );
function my_recent_posts_more() {
    echo '<a class="readmore" href="/news/archive">More</a>';
}

To add something above the list, use the recent_posts_with_excerpts_begin action instead.

Installation Instructions
  1. Upload the plugin directory to /wp-content/plugins/
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Go to Appearance → Widgets to add widgets to your sidebar in widget-ready themes.

使用者評論

閱讀全部 6 則使用者評論

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

2.6.1

  • The ‘recent_posts_with_excerpts_query’ filter now accepts a second parameter, $instance, to give developers access to the widget’s settings.

2.6

  • Constructor update.

2.5.5

  • New offset option, props Carlos Santana.
  • New option to ignore sticky posts, props Francesco Mele.

2.5.3

  • Added POT file.

2.5.2

  • Added ‘recent_posts_with_excerpts_query’ filter to allow modifications to the widget’s query.

2.5.1

  • Changed the_time() to get_the_time(), which prevents the date from appearing outside its intended heading tag.

2.5

  • Cleaned up empty classes.
  • Added actions to the top (recent_posts_with_excerpts_begin) and bottom (recent_posts_with_excerpts_end) of the widget output, for developers to customize. See the FAQ tab for an example.
  • Improved the thumbnail size dropdown.

2.4

  • Added support for displaying post thumbnails with the excerpts.
  • Localized strings for translators.

2.3.2

  • Fixed a bug in which limiting the posts to a category and/or tag would override the setting for the number of posts to display.

2.3.1

  • Fixing bugs and restoring “more” option broken in 2.3.

2.3

  • Added option to display the date.

2.2

  • Fixed HTML validation error. (Thanks, Cris!)

2.1

  • Added tag limit option
  • All widget input fields are now localized (September 11, 2009)

2.0

  • Added widget title option
  • had to jump version numbers (did the earlier ones wrong, apparently) (August 3, 2009)

1.12

  • bugfix — needed to reset the Loop after the widget runs (August 2, 2009)

1.11

  • bugfix — ‘more’ text did not change according to settings (July 26, 2009)

1.1

  • Added category option (July 26, 2009)

1.0

  • First release (July 24, 2009)