插件名

NS Featured Posts

评分

88

安装步骤:

Using The WordPress Dashboard

  1. Navigate to the ‘Add New’ Plugin Dashboard
  2. Select ‘ns-featured-posts.zip’ from your computer
  3. Upload
  4. Activate the plugin on the WordPress Plugin Dashboard
  5. Place the ‘NS Featured Posts Widget’ into a Widget area through the ‘Appearance -> Widgets’ menu in WordPress.

Using FTP

  1. Extract ‘ns-featured-posts.zip’ to your computer
  2. Upload the ‘ns-featured-posts’ directory to your ‘wp-content/plugins’ directory
  3. Activate the plugin on the WordPress Plugins dashboard
  4. Place the ‘NS Featured Posts Widget’ into a Widget area through the ‘Appearance -> Widgets’ menu in WordPress.
描述:

NS Featured Posts

This plugin add checkbox for each list item. You can easily check / uncheck the Featured. Checking the Featured will set the meta value yes for meta key _is_ns_featured_post. From plugin settings, you can choose to which post types you want Featured functionality.

Using in theme

This plugin only set / unset the meta key for asigned post. 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 post which are checked as Featured.

Want to see how this can be used in a Page Template?
Click this link to see example

下载地址:
点击下载
相关插件