{"id":51254,"date":"2016-10-03T06:16:51","date_gmt":"2016-10-03T06:16:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/featured-posts-pro\/"},"modified":"2019-04-04T07:05:02","modified_gmt":"2019-04-04T07:05:02","slug":"featured-posts-pro","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/featured-posts-pro\/","author":14004557,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.4","stable_tag":"1.4","tested":"5.1.22","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"Featured Posts Pro","header_author":"Laxman Thapa","header_description":"","assets_banners_color":"fefefe","last_updated":"2019-04-04 07:05:02","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.lakshman.com.np\/featured-posts-pro\/","header_plugin_uri":"http:\/\/lakshman.com.np","header_author_uri":"http:\/\/lakshman.com.np","rating":4,"author_block_rating":0,"active_installs":100,"downloads":4170,"num_ratings":4,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":"1","2":0,"3":0,"4":0,"5":"3"},"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1507123","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1507123","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.2","1.3.0","1.3.1","1.3.2","1.3.3","1.3.4","1.3.5","1.3.6","1.3.7","1.3.8","1.3.9","1.4"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1507105","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1507105","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1507105","resolution":"3","location":"assets"},"screenshot-4.png":{"filename":"screenshot-4.png","revision":"1507105","resolution":"4","location":"assets"},"screenshot-5.png":{"filename":"screenshot-5.png","revision":"1509897","resolution":"5","location":"assets"},"screenshot-6.png":{"filename":"screenshot-6.png","revision":"1509897","resolution":"6","location":"assets"}},"screenshots":{"1":"Posts list page with 'featured' option","2":"'Featured' option while creating or editing a new post","3":"Featured Posts Pro as a widget","4":"Widget template customization","5":"Ability to use custom post types as well for the featured posts","6":"Set ordering of the featured posts"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[838,4831,1087],"plugin_category":[],"plugin_contributors":[98151],"plugin_business_model":[],"class_list":["post-51254","plugin","type-plugin","status-publish","hentry","plugin_tags-featured","plugin_tags-featured-post-widget","plugin_tags-featured-posts","plugin_contributors-thapalaxman","plugin_committers-thapalaxman"],"banners":{"banner":"https:\/\/ps.w.org\/featured-posts-pro\/assets\/banner-772x250.jpg?rev=1507123","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/featured-posts-pro\/assets\/icon-256x256.png?rev=1507123","icon_2x":"https:\/\/ps.w.org\/featured-posts-pro\/assets\/icon-256x256.png?rev=1507123","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/featured-posts-pro\/assets\/screenshot-1.png?rev=1507105","caption":"Posts list page with 'featured' option"},{"src":"https:\/\/ps.w.org\/featured-posts-pro\/assets\/screenshot-2.png?rev=1507105","caption":"'Featured' option while creating or editing a new post"},{"src":"https:\/\/ps.w.org\/featured-posts-pro\/assets\/screenshot-3.png?rev=1507105","caption":"Featured Posts Pro as a widget"},{"src":"https:\/\/ps.w.org\/featured-posts-pro\/assets\/screenshot-4.png?rev=1507105","caption":"Widget template customization"},{"src":"https:\/\/ps.w.org\/featured-posts-pro\/assets\/screenshot-5.png?rev=1509897","caption":"Ability to use custom post types as well for the featured posts"},{"src":"https:\/\/ps.w.org\/featured-posts-pro\/assets\/screenshot-6.png?rev=1509897","caption":"Set ordering of the featured posts"}],"raw_content":"<!--section=description-->\n<h3>Featured Posts Pro<\/h3>\n\n<p>allows administrator and editor an option to set posts, pages &amp; custom posts as a featured posts very easily. Posts, pages &amp; custom posts can be set as featured posts using a checkbox on the posts list page or on the edit page of the post. Please see screenshots to be more clear.<\/p>\n\n<h3>Featured Posts Pro<\/h3>\n\n<p>also adds a widget that will list the recent featured posts. This is similar to the default recent posts widget except this widget displays recent featured posts instead. The template for the <strong>Featured Posts Pro Widget<\/strong> can be customized with your theme.<\/p>\n\n<h3>How to use in the theme<\/h3>\n\n<p>You can to get the featured posts, you need to make a custom query as follows<\/p>\n\n<h3>sample code to get the featured posts with orders<\/h3>\n\n<p>`$args = array(\n            'post_type' =&gt; 'any',\n            'posts_per_page'      =&gt; 10,\n            'no_found_rows'       =&gt; true,\n            'post_status'         =&gt; 'publish',\n            'ignore_sticky_posts' =&gt; true,\n            'meta_query' =&gt; array(\n                array(\n                    'relation' =&gt; 'OR',\n                    array(\n                        'key' =&gt; 'post_featured_position',\n                        'compare' =&gt; 'EXISTS'\n                    ),\n                    array(\n                        'key' =&gt; 'post_featured_position',\n                        'compare' =&gt; 'NOT EXISTS'\n                    ),\n                ),\n                array(\n                    'relation' =&gt; 'AND',\n                    'key' =&gt; 'is_post_featured',\n                    'compare' =&gt; '=',\n                    'value' =&gt; 1\n                )\n            ),\n            'orderby' =&gt; 'meta_value_num',\n            'order' =&gt; 'ASC',\n        ) ;<\/p>\n\n<p>$featuredPosts = new WP_Query( $args );<code>&lt;h3&gt;sample code to get the featured posts without order&lt;\/h3&gt;<\/code>$args = array(\n    'posts_per_page'      =&gt; 10,\n    'no_found_rows'       =&gt; true,\n    'post_status'         =&gt; 'publish',\n    'ignore_sticky_posts' =&gt; true,\n    'meta_key'            =&gt; 'is_post_featured' \/\/this is the meta key used for the featured posts\n) ;<\/p>\n\n<p>$featuredPosts = new WP_Query( $args );`<\/p>\n\n<p>or if you simple want tp<\/p>\n\n<h3>How to customize the widget<\/h3>\n\n<p>You can customize the widget template as follows:\n1. create a folder 'featured_posts_pro_tpls' inside your theme folder\n2. create two php files named as 'tpl_featured_posts_pro_large.php' &amp; 'tpl_featured_posts_pro_small.php' in the 'featured_posts_pro_tpls' folder you just created\n3. template file 'tpl_featured_posts_pro_large.php' will be used to render the widget when widget size is selected as large &amp; similarly 'tpl_featured_posts_pro_small.php' is for small widget size \n3. copy and paste the content from plugin_fold er &gt; featured-posts-pro &gt; public &gt; partials &gt; featured_posts_pro-widget.php in the above two files\n4. make the layout changes as you wish.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install using the WordPress built-in Plugin installer, or Extract the zip file and drop the contents in the <code>wp-content\/plugins\/<\/code> directory of your WordPress installation.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>If you want to use the widget, then go to Apperance &gt; Widgets &gt; Featured Post Pro <\/li>\n<li>The options on the widget are self explained<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How can I contact you?<\/dt>\n<dd><p>You can contact me from http:\/\/www.lakshman.com.np\/featured-posts-pro\/<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.3.0<\/h4>\n\n<p>The ability to include custom post types for the featured posts. The featured post can now be ordered.<\/p>\n\n<h4>1.3.2<\/h4>\n\n<p>'Posts' post type is selected by default<\/p>\n\n<h4>1.3.5<\/h4>\n\n<p>bug on 'quick edit' on posts page fixed<\/p>\n\n<h4>1.3.8<\/h4>\n\n<p>bug fixes<\/p>\n\n<h4>1.4<\/h4>\n\n<p>fixed bug that prevented the plugin to be used on child theme. Thx to Shane Bill on identifying this issue.<\/p>","raw_excerpt":"This plugin gives Administrator\/Editor an easy option to mark posts, pages &amp; custom posts as featured posts and provides a widget to list the rece &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/51254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=51254"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/thapalaxman"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=51254"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=51254"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=51254"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=51254"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=51254"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=51254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}