Featured Post Plugin for WordPress.
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.
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.
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.
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
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.
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).
Requires: 3.0 or higher
Compatible up to: 3.9.2
Last Updated: 2014-4-16
1 of 4 support threads in the last two months have been resolved.
Got something to say? Need help?