Title: Select Featured Posts
Author: mediology
Published: <strong>2010 年 7 月 26 日</strong>
Last modified: 2010 年 11 月 18 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

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

# Select Featured Posts

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

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

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

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

## 描述

This allows you to mark the selected post as featured post and hence enables editors,
publishers, bloggers etc to feature relavent content on the site.

In most content publishing scenarios, where there are a large set of contributors,
certain posts require to be featured in relevant content sections of your WP site,
so that they draw the maximim attention span from the readers. This Plugin allows
the editors or administrators to mark a set of posts as featured posts. Then using
a simple functional call in your theme, you can dynamically display the featured
posts. if you want to place it separatly.

**Select Featured Posts plugin is also available as a widget.**

We would be keen you hear your feedback and requests for any enhancements. Please
send your feedback to wordpress@mediologysoftware.com.

## 屏幕截图

 * [[
 * Select Featured post checkbox in the Admin panel
 * [[
 * Widget Display.

## 安装

 1. Upload the `select-featured-posts` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to the Posts -> Posts screen if you have wordpress 3.0 and for older versions
    go to Posts -> Edit.
 4. Check and uncheck posts to make it featured/unfeatured
 5. To use it in theme add this before query_posts or get_posts
 6. if (function_exists(‘featured_posts’)) {
     featured_posts(‘add’); }
 7. If query_posts or get_posts is not there in your theme then you can add above code
    and query_posts before while loop
     For eg.

    ```
      if (function_exists('featured_posts')) {
        featured_posts('add');
      }
      query_posts('posts_per_page=10');
        while ( have_posts() ) : the_post();
        //Your Code
      endwhile; // end of the loop.
      if (function_exists('featured_posts')) {
        featured_posts('remove');
      }
    ```

 1. To remove the featured post from the query post buffer once the same have been 
    displayed add this code
 2. if (function_exists(‘featured_posts’)) {
     featured_posts(‘remove’); }

For eg.

    ```
      if (function_exists('featured_posts')) {
          featured_posts('add');
        }
        query_posts('category_name=Entertainment');
        // Hence now that the featured posts have been displayed clear them so that they don't get repeated.
        if (function_exists('featured_posts')) {
          featured_posts('remove');
        }
    ```

So it will give featured post of Entertainment Category.

OR

 1. If you want to get Featured post IDs only then use this
 2. if (function_exists(‘get_featured_posts’)) {
     $limit = 5; $featured_posts = get_featured_posts(
    $limit); }
 3. If your theme supports widgets then go to Appearance -> Widgets and just Drag and
    Drop Select Featured Post Widget.
 4. In widget you can specify total no of posts or Featured Post of a Category.

## 常见问题

Please send us your questions to wordpress@mediologysoftware.com. We will feature
the frequently asked questions and answers here.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ mediology ](https://profiles.wordpress.org/mediology/)
 *   [ Kapil Chugh ](https://profiles.wordpress.org/kapilchugh/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 0.2

 * Removed Notices and updated documentation

#### 0.1

 * Initial release

## 额外信息

 *  版本 **0.2**
 *  最后更新：**16 年前**
 *  活跃安装数量 **80+**
 *  WordPress 版本 ** 2.8 或更高版本 **
 *  已测试的最高版本为 **3.0.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/select-featured-posts/)
 * 标签
 * [ajax](https://cn.wordpress.org/plugins/tags/ajax/)[featured](https://cn.wordpress.org/plugins/tags/featured/)
   [featured post](https://cn.wordpress.org/plugins/tags/featured-post/)[post](https://cn.wordpress.org/plugins/tags/post/)
 *  [高级视图](https://cn.wordpress.org/plugins/select-featured-posts/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ mediology ](https://profiles.wordpress.org/mediology/)
 *   [ Kapil Chugh ](https://profiles.wordpress.org/kapilchugh/)

## 支持

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

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