Title: WP Featured Posts
Author: nutttaro
Published: <strong>2020 年 9 月 16 日</strong>
Last modified: 2026 年 5 月 25 日

---

搜索插件

![](https://ps.w.org/wp-featured-posts/assets/banner-772x250.png?rev=2382710)

![](https://ps.w.org/wp-featured-posts/assets/icon.svg?rev=2382710)

# WP Featured Posts

 作者：[nutttaro](https://profiles.wordpress.org/nutttaro/)

[下载](https://downloads.wordpress.org/plugin/wp-featured-posts.1.2.1.zip)

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

 [支持](https://wordpress.org/support/plugin/wp-featured-posts/)

## 描述

WP Featured Posts is a plugin choose featured posts, sortable and sticky custom 
post type.

Features:

 * Easy for choose featured posts.
 * Easy for ordering featured posts.
 * Support custom post types.
 * Sticky custom post types for sticky posts at first.
 * The plugin is lightweight.
 * Compatible with WPML.

## 屏幕截图

 * [[
 * Screenshot of the menu page for Featured Posts Setting page.
 * [[
 * Drag and Drop for order posts. It easy!
 * [[
 * How to sticky posts work

## 安装

 1. Upload `wp-featured-posts.zip` to the install plugin page
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to _Featured Posts_ in the left-hand menu to start setting the plugin

## 常见问题

### How to setting the plugin?

Go to _Featured Posts_ in the left-hand menu to start setting the plugin

### How to custom code for get featured posts?

You can see example code in _Featured Posts_ setting

## 评价

![](https://secure.gravatar.com/avatar/208535c5bce87d75d3930f85a50b0cffae981d26bd00e458e30f73cc480ad77c?
s=60&d=retro&r=g)

### 󠀁[Basic – No Customization](https://wordpress.org/support/topic/basic-no-customization/)󠁿

 [strakerc](https://profiles.wordpress.org/strakerc/) 2024 年 5 月 18 日

This is a simple plugin to automatically make some posts sticky at the top of your
home page – that’s it. There’s no customization of the UI through a block that you
can use on your page.

![](https://secure.gravatar.com/avatar/77f62984b9f46dc1dfd02c7d398d5c8179f1b224dac1795bbc8301a1f46054e6?
s=60&d=retro&r=g)

### 󠀁[No way to make it work](https://wordpress.org/support/topic/no-way-to-make-it-work-2/)󠁿

 [pikkabbu](https://profiles.wordpress.org/pikkabbu/) 2024 年 5 月 7 日

This plugin is exactly what I was looking for. Unfortunalely, I can find no way 
to make it work.I can add a post to the sticky list, and it appears as sticky in
All Post List. But it doen’t appear as the first of my blog, but in the usual date
order.:-(

![](https://secure.gravatar.com/avatar/35d68dcf1f3d55030b724e43e3c89f333f8003e3d6358c324cad72b82b47c689?
s=60&d=retro&r=g)

### 󠀁[Great and simple](https://wordpress.org/support/topic/great-and-simple-153/)󠁿

 [harndal](https://profiles.wordpress.org/harndal/) 2021 年 5 月 1 日

Super simple and does the job. Great plugin

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/wp-featured-posts/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ nutttaro ](https://profiles.wordpress.org/nutttaro/)

[帮助将「WP Featured Posts」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-featured-posts)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.2.1

 * Compatibility: WordPress 7.0 support
 * Fix: Featured post ordering on frontend now matches admin drag-and-drop order
 * Fix: Toggling featured status in block editor sidebar now correctly updates sticky
   posts and sort order
 * Fix: Updated Gutenberg sidebar to import PluginDocumentSettingPanel from @wordpress/
   editor (deprecated from @wordpress/edit-post)
 * Fix: Replaced deprecated jQuery .submit() shorthand with .on(‘submit’, …) for
   jQuery 4.x forward compatibility
 * Fix: Removed deprecated jQuery UI .disableSelection() call
 * Enhancement: Replaced inline wp_head styles with wp_add_inline_style() for pin
   icon CSS
 * Enhancement: Updated @wordpress/scripts to v32

#### 1.2.0

 * Feature: Added [featured_posts] shortcode with post_type and limit attributes
 * Feature: Added Gutenberg block editor sidebar panel for toggling featured status
 * Feature: Registered post meta with REST API support (show_in_rest)
 * Feature: Added build toolchain with @wordpress/scripts for editor assets
 * Fix: Featured column now works for all post types (was hardcoded to testimonials
   only)
 * Fix: Fixed setting.js syntax error (missing closing bracket for document.ready)

#### 1.1.1

 * Fix: Resolved media uploader not working for custom pin image upload
 * Fix: Improved JavaScript initialization with proper DOM ready handling
 * Fix: Enhanced event delegation for better compatibility

#### 1.1.0

 * Security: Added ABSPATH checks to prevent direct file access
 * Security: Improved output escaping in template files
 * Enhancement: Added translator comments for better internationalization support
 * Enhancement: Fixed wp_send_json_* function usage (removed incorrect echo statements)
 * Enhancement: Modernized code to comply with WordPress coding standards
 * Enhancement: Fixed deprecated FILTER_SANITIZE_STRING for PHP 8.1+ compatibility
 * Enhancement: Fixed undefined variable $q in sticky posts logic
 * Feature: Added pin icon display for featured posts with customizable settings
 * Feature: Pin icon can be enabled/disabled per configuration
 * Feature: Adjustable pin icon size (10-50px)
 * Feature: Support for custom pin image upload
 * Feature: Pin icon position can be filtered (before/after title)
 * Fix: Featured posts now work correctly on category, tag, author, and date archive
   pages
 * Compatibility: Tested up to WordPress 6.9

#### 1.0.7

 * Tested up to WordPress 6.1.1
 * Add Tip me on Ko-fi

#### 1.0.6

 * Tested up to WordPress 5.8.1

#### 1.0.5

 * Add action ‘after_setup_theme’ for feature column on custom post type

#### 1.0.4

 * Fix bug setting options array

#### 1.0.3

 * Fix bug setting options
 * Add fillter show delete button

#### 1.0.2

 * Add fillter title featured post
 * Add fillter show select featured post

#### 1.0.1

 * Fix bug setting options

#### 1.0.0

 * Initial Release

## 额外信息

 *  版本 **1.2.1**
 *  最后更新：**6 天前**
 *  活跃安装数量 **300+**
 *  WordPress 版本 ** 4.7 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-featured-posts/)
 * 标签
 * [feature posts](https://cn.wordpress.org/plugins/tags/feature-posts/)[featured post](https://cn.wordpress.org/plugins/tags/featured-post/)
   [featured posts](https://cn.wordpress.org/plugins/tags/featured-posts/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-featured-posts/advanced/)

## 评级

 4.3 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ nutttaro ](https://profiles.wordpress.org/nutttaro/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](https://www.buymeacoffee.com/nutttaro)