Title: WP One Post Widget
Author: Rafael Tavares
Published: <strong>2012 年 5 月 23 日</strong>
Last modified: 2026 年 8 月 17 日

---

搜索插件

![](https://s.w.org/plugins/geopattern-icon/wp-one-post-widget.svg)

# WP One Post Widget

 作者：[Rafael Tavares](https://profiles.wordpress.org/rafaeltavares/)

[下载](https://downloads.wordpress.org/plugin/wp-one-post-widget.3.0.1.zip)

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

 [支持](https://wordpress.org/support/plugin/wp-one-post-widget/)

## 描述

WP One Post Widget lets you pick a single published post and show it in any widget
area.

Features:

 * Search and select a published post from the Widgets screen
 * Optional custom title
 * Optional “Read more” label linking to the post permalink
 * Optional featured image with left, right, or top placement
 * Uses the post excerpt when available, otherwise a safe plain-text summary

The plugin does one job: display one selected post in a widget.

## 安装

 1. Upload the `wp-one-post-widget` folder to `/wp-content/plugins/`.
 2. Activate the plugin through the Plugins screen.
 3. Go to Appearance  Widgets (or the Customizer widgets panel).
 4. Add “WP One Post Widget”, search for a published post, and save.
 5. Optional: set a custom title, read-more label, and thumbnail options.

Tip: for best results with summaries, fill in the post Excerpt field in the editor.

## 常见问题

### Does it support multiple widget instances?

Yes. Each instance stores its own selected post ID and options.

### What happens if the selected post is deleted?

The widget renders nothing and does not produce PHP warnings.

### Does the plugin send telemetry?

No.

## 评价

此插件暂无评价。

## 贡献者及开发者

「WP One Post Widget」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Rafael Tavares ](https://profiles.wordpress.org/rafaeltavares/)
 *   [ Rafael Tavares ](https://profiles.wordpress.org/rafael-tavares/)

[帮助将「WP One Post Widget」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-one-post-widget)

### 对开发感兴趣吗?

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

## 更新日志

#### 3.0.0

 * Migrated registration to `WP_Widget`.
 * Store selection by `post_id` instead of post title.
 * Autocomplete via authenticated `admin-ajax` + `WP_Query`.
 * Removed insecure public `data.php` endpoint.
 * Removed PressTrends telemetry.
 * Removed external Google jQuery / jQuery UI assets.
 * Security hardening: nonces, capabilities, sanitization, and escaping.
 * PHP modernization (no short open tags; current WordPress APIs).
 * Featured image rendering and left/right/top positioning fixes.
 * Frontend CSS limited to structural layout (theme keeps visual identity).
 * Safe excerpt generation without cutting raw HTML.

#### 2.1

 * Added field use image?

#### 2.0

 * Added custom title field.
 * Added search suggestion field.
 * Added field thumbnail position: left, right, top

#### 1.1

 * Added field to customize the link read more.

#### 1.0

 * Initial version.

## 额外信息

 *  版本 **3.0.1**
 *  最后更新：**1 月前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 5.2 或更高版本 **
 *  已测试的最高版本为 **7.0.6**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-one-post-widget/)
 * 标签
 * [featured post](https://cn.wordpress.org/plugins/tags/featured-post/)[post](https://cn.wordpress.org/plugins/tags/post/)
   [sidebar](https://cn.wordpress.org/plugins/tags/sidebar/)[widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-one-post-widget/advanced/)

## 评级

 1 星（最高 5 星）。

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

[您的评价](https://wordpress.org/support/plugin/wp-one-post-widget/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-one-post-widget/reviews/)

## 贡献者

 *   [ Rafael Tavares ](https://profiles.wordpress.org/rafaeltavares/)
 *   [ Rafael Tavares ](https://profiles.wordpress.org/rafael-tavares/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/wp-one-post-widget/)