
NS Featured Posts
v4.0.0Nilambar Sharma · 2014年6月4日 上架
A plugin for making posts, pages, or custom post types featured. Users can enable/disable Featured flags for selected post types.
- 正在使用
- 4,000+
- 评分
- 4.8 / 5
- 累计下载
- 12 万
- 最近更新
- 2026年9月2日
29 条评价需要 WordPress 6.0+已测试到 7.1.5PHP 7.4+
贡献者
截图
NS Featured Posts
This plugin adds checkboxes for each list item. You can easily check/uncheck the Featured flag. Checking the Featured will set the meta value yes for meta key _is_ns_featured_post. You can choose which post types you want Featured functionality from plugin settings.
Using in theme
This plugin only sets/unsets the meta key for assigned posts. You need to implement it in your theme to get Featured functionality.
Example:
$query = new WP_Query( array( 'meta_key' => '_is_ns_featured_post', 'meta_value' => 'yes' ) );
This will fetch the list of posts that are checked as Featured.
Want to see how this can be used in a Page Template?
Click this link to see an example

