{"id":9548,"date":"2010-06-23T14:16:24","date_gmt":"2010-06-23T14:16:24","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/featured-post\/"},"modified":"2014-09-12T06:23:49","modified_gmt":"2014-09-12T06:23:49","slug":"featured-post","status":"publish","type":"plugin","link":"https:\/\/pap-aw.wordpress.org\/plugins\/featured-post\/","author":6457341,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"3.2.1","stable_tag":"3.2.1","tested":"4.0.38","requires":"3.8","requires_php":"","requires_plugins":"","header_name":"Featured Post","header_author":"Sovit Tamrakar","header_description":"","assets_banners_color":"","last_updated":"2017-11-28 20:21:32","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/gum.co\/wppress-donate","header_plugin_uri":"http:\/\/ssovit.com\/featured-post-wordpress-plugin\/","header_author_uri":"http:\/\/wppress.net","rating":4.6,"author_block_rating":0,"active_installs":900,"downloads":40156,"num_ratings":14,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"3.2":"<p>Fixed Featured Post Widget and featured toggle not appearing on custom post types<\/p>","3.1":"<p>Fix some bugs and added dashicon support with 3.8.1 support<\/p>","2.0.1":"<p>Fixed Some Minor Bugs<\/p>","2.0":"<p>Did major update to work with Worpdress Version 3.5<\/p>","1.4.1":"<p>Fixed some other minor bug with widget (Just for some more features updates)<\/p>","1.4.0":"<p>Fixed Some Minor bugs with featured post management (I really didn&#039;t want to do it)<\/p>","1.3.1":"<p>Fixed some bug with widget and backend post section (I wanted to work it out)<\/p>","1.3":"<p>Added multi-instance widget(I am not sure if this was needed)<\/p>","1.2.1.0":"<p>Added Widget Sidebar for featured post (Just a dumb update)<\/p>","1.0":"<p>Frist stable version 1.0 (Just forget this version)<\/p>"},"ratings":{"1":0,"2":1,"3":1,"4":0,"5":11},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["2.0","2.0.1","3.1","3.2","3.2.1"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"This is how it looks like in post edit list page of wp-admin where you can mark or un-mark posts as featured.","2":"Screenshot of widget control section to add Featured Post widget.","3":"This is how you pass featured post variable to post loop to list featured post."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[838,29390,4830,86,166],"plugin_category":[],"plugin_contributors":[79976,79975],"plugin_business_model":[],"class_list":["post-9548","plugin","type-plugin","status-publish","hentry","plugin_tags-featured","plugin_tags-featured-custom-posts","plugin_tags-featured-post","plugin_tags-post","plugin_tags-posts","plugin_contributors-gskhanal","plugin_contributors-ssovit","plugin_committers-gskhanal","plugin_committers-ssovit"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/featured-post.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>Add <code>&lt;?php query_posts($query_string.\"&amp;featured=yes\"); ?&gt;<\/code> before the post loop starts and manage the featured posts from the post edit list.<\/p>\n\n<p>Now added widget for listing featured post in sidebar widgets with custom number of post.<\/p>\n\n<p><em>Supports Custom Post Type<\/em><\/p>\n\n<p>Visit us on <a href=\"https:\/\/github.com\/ssovit\/featured-post\">GitHub<\/a> to support and donate<\/p>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n\n<ol>\n<li>Upload the plugin folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Go to post list are then choose your featured post.<\/li>\n<li>Put the code <code>&lt;?php query_posts($query_string.\"&amp;featured=yes\"); ?&gt;<\/code> before the post loop starts where you want to showt he featured posts.<\/li>\n<li>Put a widget on sidebar for listing featured post in unordered list<\/li>\n<li>NOTE: ****Please just after the loop you have called the custom query  don't forget to add wp_reset_query(); after the loop, else you will have all other normal post loops showing the featured posts.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Why was this plugin created?<\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt>When I use this plugin to show featured post even when i am not adding \"featured=yes\" before the loop?<\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt>What is this plugin exactly?<\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt>Does This Support Custom Post Type?<\/dt>\n<dd><p>Yes, it does. To display featured post of any Custom Post Type pass the arguement <code>post_type=YOUR_POST_TYPE<\/code> along with <code>featured=yes<\/code>. 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, <code>query_posts('post_type=portfolio&amp;featured=yes')<\/code> before the <code>have_posts()<\/code> loop.<\/p><\/dd>\n<dt>Does it work with WP_Query() class?<\/dt>\n<dd><p>Yes, absolutely, it does. you can pass it as string type arguement like <code>$query=new WP_Query('post_type=portfolio&amp;featured=yes&amp;posts_per_page=1')<\/code> or even in array type arguement like <code>$query=new WP_Query(array('post_type'=&gt;'portfolio','featured'=&gt;'yes'));<\/code> then use how the regular WP_Query is used.<\/p><\/dd>\n<dt>How Does it work exactly?<\/dt>\n<dd><p>This plugin actually hooks over <code>pre_get_posts<\/code> 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).<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.0.1<\/h4>\n\n<p>Fixed Some Minor Bugs<\/p>\n\n<h4>2.0<\/h4>\n\n<p>Did major update to work with Worpdress Version 3.5<\/p>\n\n<h4>1.4.1<\/h4>\n\n<p>Fixed some other minor bug with widget (Just for some more features updates)<\/p>\n\n<h4>1.4.0<\/h4>\n\n<p>Fixed Some Minor bugs with featured post management (I really didn't want to do it)<\/p>\n\n<h4>1.3.1<\/h4>\n\n<p>Fixed some bug with widget and backend post section (I wanted to work it out)<\/p>\n\n<h4>1.3<\/h4>\n\n<p>Added multi-instance widget(I am not sure if this was needed)<\/p>\n\n<h4>1.2.1.0<\/h4>\n\n<p>Added Widget Sidebar for featured post (Just a dumb update)<\/p>\n\n<h4>1.0<\/h4>\n\n<p>Frist stable version 1.0 (Just forget this version)<\/p>","raw_excerpt":"Featured Post Plugin for Wordpress.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/9548","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=9548"}],"author":[{"embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ssovit"}],"wp:attachment":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=9548"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=9548"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=9548"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=9548"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=9548"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=9548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}