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.
如:
$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
Using The WordPress Dashboard
- Navigate to the 'Add New' Plugin Dashboard
- Select 'ns-featured-posts.zip' from your computer
- 确认上传
- Activate the plugin on the WordPress Plugin Dashboard
- Place the 'NS Featured Posts Widget' into a Widget area through the 'Appearance -> Widgets' menu in WordPress.
Using FTP
- Extract 'ns-featured-posts.zip' to your computer
- Upload the 'ns-featured-posts' directory to your 'wp-content/plugins' directory
- Activate the plugin on the WordPress Plugins dashboard
- Place the 'NS Featured Posts Widget' into a Widget area through the 'Appearance -> Widgets' menu in WordPress.