Title: Featured Posts and Custom Posts
Author: Jeremy Selph
Published: <strong>2012 年 6 月 20 日</strong>
Last modified: 2015 年 2 月 26 日

---

搜索插件

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

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

# Featured Posts and Custom Posts

 作者：[Jeremy Selph](https://profiles.wordpress.org/jeremyselph/)

[下载](https://downloads.wordpress.org/plugin/featured-posts-and-custom-posts.5.0.zip)

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

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

## 描述

When working on WordPress themes, we tend to use a lot of custom post types. This
gives the end- user custom little sections to manage content in. Often enough we
see the need to be able to feature posts or custom posts of custom post types (cpts).

This can be accomplished by using a bunch of different Featured Posts Plugins. And
we probably have used all of them over the years. To date we have yet to find one
that didn’t conflict or break somehting in our WordPress themes. So we created our
own, to be specifc we created our own to be easily used with Posts, Custom Posts,
and with the Simple Page ordering plugin that we install on every WordPress Theme
that we develop.

To use:

 1. Download the feature-posts-and-custom-posts.zip file to your computer.
 2. Unzip the file.
 3. Upload the feature-posts-and-custom-posts folder to your /wp-content/plugins/ directory.
 4. Activate the plugin through the Plugins menu in WordPress.
 5. In your theme and in the template you need the featured functionality uses a custom
    query like this query_posts("post_type=professionals&posts_per_page=-1&meta_key
    =_jsFeaturedPost&meta_value=yes"); to grad all of the featured posts.

For Plugin and Theme development requets email us at info@reactivedevelopment.net
or go here http://www.reactivedevelopment.net/. If you have questions or requests
for this plugin go here https://wordpress.org/support/plugin/featured-posts-custom-
posts, for quick and paid support message us here at http://www.reactivedevelopment.
net/contact/send-message/.

New in Version 2.0
 1. New js_featured_is_post_featured( postID[int] ) function 
2. short cut is_post_featured( userID[int] ) function 3. js_featured_return_all_featured()
function that returns an array of featured posts 4. New widget added 5. Post class“
jsFeatured” on archive templates added if the post is featured 6. New shortcode [
jsFeaturedPosts posts_per_page=”1″ wrap_before=”

 * ” wrap_after=”

” link_before=”

  ” link_after=”
  ” link_atts=”rel=’bookmark’” link_title=”Link to”]
  
  ## 安装
  
   1. Download the feature-posts-and-custom-posts.zip file to your computer.
   2. Unzip the file.
   3. Upload the feature-posts-and-custom-posts folder to your /wp-content/plugins/
      directory.
   4. Activate the plugin through the Plugins menu in WordPress.
   5. In your theme and in the template you need the featured functionality uses a 
      custom query like this query_posts("post_type=professionals&posts_per_page=-1&
      meta_key=_jsFeaturedPost&meta_value=yes"); to grad all of the featured posts.
  
  ## 常见问题
  
    Coming Soon
  Let me know what questions you have!
  
  ## 评价
  
  此插件暂无评价。
  
  ## 贡献者及开发者
  
  「Featured Posts and Custom Posts」是开源软件。 以下人员对此插件做出了贡献。
  贡献者
   *   [ Jeremy Selph ](https://profiles.wordpress.org/jeremyselph/)
  [帮助将「Featured Posts and Custom Posts」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/featured-posts-and-custom-posts)
  
  ### 对开发感兴趣吗?
  
  您可以[浏览代码](https://plugins.trac.wordpress.org/browser/featured-posts-and-custom-posts/)，
  查看[SVN仓库](https://plugins.svn.wordpress.org/featured-posts-and-custom-posts/)，
  或通过[RSS](https://plugins.trac.wordpress.org/log/featured-posts-and-custom-posts/?limit=100&mode=stop_on_copy&format=rss)
  订阅[开发日志](https://plugins.trac.wordpress.org/log/featured-posts-and-custom-posts/)。
  
  ## 额外信息
  
   *  版本 **2.0**
   *  最后更新：**11 年前**
   *  活跃安装数量 **100+**
   *  WordPress 版本 ** 3.1.1 或更高版本 **
   *  已测试的最高版本为 **4.1.42**
   *  语言
   * [English (US)](https://wordpress.org/plugins/featured-posts-and-custom-posts/)
   * 标签
   * [custom post types](https://cn.wordpress.org/plugins/tags/custom-post-types/)
     [custom posts](https://cn.wordpress.org/plugins/tags/custom-posts/)[featured](https://cn.wordpress.org/plugins/tags/featured/)
     [posts](https://cn.wordpress.org/plugins/tags/posts/)
   *  [高级视图](https://cn.wordpress.org/plugins/featured-posts-and-custom-posts/advanced/)
  
  ## 评级
  
   4 星（最高 5 星）。
   *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/featured-posts-and-custom-posts/reviews/?filter=5)
   *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/featured-posts-and-custom-posts/reviews/?filter=4)
   *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/featured-posts-and-custom-posts/reviews/?filter=3)
   *  [  1 条 2 星评价     ](https://wordpress.org/support/plugin/featured-posts-and-custom-posts/reviews/?filter=2)
   *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/featured-posts-and-custom-posts/reviews/?filter=1)
  [Your review](https://wordpress.org/support/plugin/featured-posts-and-custom-posts/reviews/#new-post)
  [查看全部评论](https://wordpress.org/support/plugin/featured-posts-and-custom-posts/reviews/)
  
  ## 贡献者
  
   *   [ Jeremy Selph ](https://profiles.wordpress.org/jeremyselph/)
  
  ## 支持
  
  有话要说吗？是否需要帮助？
   [查看支持论坛](https://wordpress.org/support/plugin/featured-posts-and-custom-posts/)
  
  ## 捐助
  
  您愿意支持这个插件的发展吗?
   [ 捐助此插件 ](http://www.reactivedevelopment.net/snippets/featured-posts-custom-posts)