Plugin for the featured post and management.
|Author:||Sovit Tamrakar (profile at wordpress.org)|
|WordPress version required:||3.8|
|WordPress version tested:||4.0|
|Added to WordPress repository:||23-06-2010|
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|Total downloads:||35 034|
|Active installs:||6 000+|
Click to start download
Plugin for featured wordpress posts. This is a cool plugin that makes it easier to mark posts as featured posts (not using specific categories) and simple markup to show theme from your theme file.
<?php query_posts($query_string."&featured=yes"); ?> before the post loop starts and manage the featured posts from the post edit list.
Now added widget for listing featured post in sidebar widgets with custom number of post.
Supports Custom Post Type
Visit us on GitHub to support and donate
Why was this plugin created?
This plugin was created to for the featured post management. Its easy and any minor wordpress developer or user can use and integrate into his wordpress theme with ease.
When I use this plugin to show featured post even when i am not adding “featured=yes” before the loop?
This is not a common problem, but this occurs when you are have called query_posts(***.”featured=yes”); before the normal template loop like in category.php or archive.php or even index.php. So, its a good practice to add a wp_reset_query(); after each custom query you make adding “featured=yes”. So why not add the wp_reset_query(); after the loop of featured posts.
What is this plugin exactly?
As mentioned earlier, this is just a simple featured posts management plugin that adds the post meta data as featured=yes for the particular post marked as featured.
Does This Support Custom Post Type?
Yes, it does. To display featured post of any Custom Post Type pass the arguement
post_type=YOUR_POST_TYPE along with
featured=yes. For example, if I have custom post type “portfolio” and I want to show featured posts in post type “portfolio’ (so called featured portfolio), then I would do,
query_posts('post_type=portfolio&featured=yes') before the
Does it work with WP_Query() class?
Yes, absolutely, it does. you can pass it as string type arguement like
$query=new WP_Query('post_type=portfolio&featured=yes&posts_per_page=1') or even in array type arguement like
$query=new WP_Query(array('post_type'=>'portfolio','featured'=>'yes')); then use how the regular WP_Query is used.
How Does it work exactly?
This plugin actually hooks over
pre_get_posts filter and make the WP_Query class to only fetch posts/entries which are marked featured whenever featured=yes query var is passed as query arguement(Hope that makes sense).
Fixed Some Minor Bugs
Did major update to work with Worpdress Version 3.5
Fixed some other minor bug with widget (Just for some more features updates)
Fixed Some Minor bugs with featured post management (I really didn’t want to do it)
Fixed some bug with widget and backend post section (I wanted to work it out)
Added multi-instance widget(I am not sure if this was needed)
Added Widget Sidebar for featured post (Just a dumb update)
Frist stable version 1.0 (Just forget this version)