跳到内容

Featured Posts and Custom Posts

v2.0

Jeremy Selph · 2012年6月20日 上架

Allows the user to feature posts and custom posts. When a post is featured it gets the post metta _jsFeaturedPost.

正在使用
90+
评分
4.0 / 5
累计下载
1 万
最近更新
2015年2月27日
3 条评价需要 WordPress 3.1.1+已测试到 4.1.42

贡献者

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”]

    Plums

    按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

    导航

    说明

    WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

    © 2026 Plums