{"id":22193,"date":"2013-02-25T14:24:08","date_gmt":"2013-02-25T14:24:08","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/post-type-spotlight\/"},"modified":"2024-01-24T16:08:24","modified_gmt":"2024-01-24T16:08:24","slug":"post-type-spotlight","status":"publish","type":"plugin","link":"https:\/\/pan.wordpress.org\/plugins\/post-type-spotlight\/","author":4552240,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"3.0.3","stable_tag":"trunk","tested":"6.3.8","requires":"5.1","requires_php":"","requires_plugins":null,"header_name":"Post Type Spotlight","header_author":"Linchpin & Jonathan Desrosiers","header_description":"","assets_banners_color":"a2b9e0","last_updated":"2024-01-24 16:08:24","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/post-type-spotlight\/","header_author_uri":"https:\/\/linchpin.com\/?utm_source=post-type-spotlight&utm_medium=plugin-admin-page&utm_campaign=wp-plugin","rating":5,"author_block_rating":0,"active_installs":30,"downloads":15088,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"desrosj","date":"2013-03-05 20:43:51"},"1.0.1":{"tag":"1.0.1","author":"desrosj","date":"2013-03-08 22:18:29"},"1.1":{"tag":"1.1","author":"desrosj","date":"2013-07-22 18:10:34"},"2.0.0":{"tag":"2.0.0","author":"desrosj","date":"2015-02-19 20:59:50"},"2.1.0":{"tag":"2.1.0","author":"desrosj","date":"2015-09-25 14:01:04"},"2.1.1":{"tag":"2.1.1","author":"desrosj","date":"2016-02-09 15:16:39"},"2.1.2":{"tag":"2.1.2","author":"desrosj","date":"2016-02-20 23:42:48"},"2.1.3":{"tag":"2.1.3","author":"desrosj","date":"2016-03-28 18:18:25"},"2.1.4":{"tag":"2.1.4","author":"desrosj","date":"2016-04-11 14:31:41"},"2.1.5":{"tag":"2.1.5","author":"desrosj","date":"2017-02-05 03:58:10"},"2.2.0":{"tag":"2.2.0","author":"linchpin_agency","date":"2020-01-15 16:38:50"},"3.0.0":{"tag":"3.0.0","author":"linchpin_agency","date":"2023-08-19 18:51:23"},"3.0.1":{"tag":"3.0.1","author":"linchpin_agency","date":"2023-11-02 15:20:12"},"3.0.2":{"tag":"3.0.2","author":"linchpin_agency","date":"2024-01-24 14:49:41"},"3.0.3":{"tag":"3.0.3","author":"linchpin_agency","date":"2024-01-24 16:08:24"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2955747,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2955747,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2955747,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2955747,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.1","2.0.0","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4","2.1.5","2.2.0","3.0.0","3.0.1","3.0.2","3.0.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2955747,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2955747,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2955747,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2955747,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":2955747,"resolution":"5","location":"assets","locale":""},"screenshot-6.png":{"filename":"screenshot-6.png","revision":2955747,"resolution":"6","location":"assets","locale":""}},"screenshots":{"1":"The publish area with the featured toggle.","2":"The featured list block","3":"The settings page","4":"Options on the edit screen","5":"Markup example when using <code>post_class();<\/code>","6":"Classic Editor Checkbox Toggle"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1487,838,2008,166,4007],"plugin_category":[],"plugin_contributors":[79491,79490,79489],"plugin_business_model":[],"class_list":["post-22193","plugin","type-plugin","status-publish","hentry","plugin_tags-custom-post-types","plugin_tags-featured","plugin_tags-post-type","plugin_tags-posts","plugin_tags-sticky","plugin_contributors-aware","plugin_contributors-desrosj","plugin_contributors-linchpin_agency","plugin_committers-aware","plugin_committers-desrosj","plugin_committers-linchpin_agency"],"banners":{"banner":"https:\/\/ps.w.org\/post-type-spotlight\/assets\/banner-772x250.png?rev=2955747","banner_2x":"https:\/\/ps.w.org\/post-type-spotlight\/assets\/banner-1544x500.png?rev=2955747","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/post-type-spotlight\/assets\/icon-128x128.png?rev=2955747","icon_2x":"https:\/\/ps.w.org\/post-type-spotlight\/assets\/icon-256x256.png?rev=2955747","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/post-type-spotlight\/assets\/screenshot-1.png?rev=2955747","caption":"The publish area with the featured toggle."},{"src":"https:\/\/ps.w.org\/post-type-spotlight\/assets\/screenshot-2.png?rev=2955747","caption":"The featured list block"},{"src":"https:\/\/ps.w.org\/post-type-spotlight\/assets\/screenshot-3.png?rev=2955747","caption":"The settings page"},{"src":"https:\/\/ps.w.org\/post-type-spotlight\/assets\/screenshot-4.png?rev=2955747","caption":"Options on the edit screen"},{"src":"https:\/\/ps.w.org\/post-type-spotlight\/assets\/screenshot-5.png?rev=2955747","caption":"Markup example when using <code>post_class();<\/code>"},{"src":"https:\/\/ps.w.org\/post-type-spotlight\/assets\/screenshot-6.png?rev=2955747","caption":"Classic Editor Checkbox Toggle"}],"raw_content":"<!--section=description-->\n<p>The plugin displays a checkbox in the publish meta box to feature a post. The checkbox only appears on admin selected post types which can be selected in the Settings-&gt;Writing screen.<\/p>\n\n<p>When a post is designated as featured:<\/p>\n\n<ul>\n<li>It receives 'featured' and <code>featured-{$posttype}<\/code> classes via the post_class filter.<\/li>\n<li>Shows featured posts as such in the post type's admin screen<\/li>\n<li>Assigns a post a hidden taxonomy term (featured) that can easily be queried.<\/li>\n<\/ul>\n\n<p><em>Note: For the plugin to work on attachments, you must be using 3.5 or above. All other features will work on 3.1.0 and up.<\/em><\/p>\n\n<!--section=installation-->\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>Navigate to the Settings-&gt;Writing section and select the post types you would like to have the featured abilities.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='isn%27t%20this%20the%20same%20as%20sticky%20posts%3F'><h3>Isn't this the same as sticky posts?<\/h3><\/dt>\n<dd><p>This is not the same as sticky posts. Sticky functionality can only be applied to the core 'post' post type. <a href=\"http:\/\/core.trac.wordpress.org\/ticket\/12702#comment:28\" title=\"Custom Post Types and Sticky Posts\">More information on why<\/a><\/p><\/dd>\n<dt id='how%20do%20i%20find%20just%20my%20featured%20posts%3F'><h3>How do I find just my featured posts?<\/h3><\/dt>\n<dd><p>This snippet of code will fetch the 10 most recent posts that are featured.<\/p>\n\n<pre><code>&lt;?php\n$featured_posts = new WP_Query( array(\n    'post_type' =&gt; 'post',\n    'posts_per_page' =&gt; 10,\n    'tax_query' =&gt; array(\n        array(\n            'taxonomy' =&gt; 'pts_feature_tax',\n            'field' =&gt; 'slug',\n            'terms' =&gt; array( 'featured' ),\n        )\n    )\n) );\n\nif ( $featured_posts-&gt;have_posts() ) : while ( $featured_posts-&gt;have_posts() ) : $featured_posts-&gt;the_post();\n\n    \/\/output featured posts here\n\nendwhile; endif;\n<\/code><\/pre>\n\n<p>?&gt;``<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>3.0.0<\/h4>\n\n<ul>\n<li>Improved compatibility with the Block Editor and the enhancements it brings<\/li>\n<li>Added npm as base package manager<\/li>\n<li>Added ESLint for JS linting<\/li>\n<li>Added Stylelint for CSS linting<\/li>\n<li>Added EditorConfig for consistent coding styles<\/li>\n<li>Added Husky for pre-commit hooks<\/li>\n<li>Added Prettier for code formatting<\/li>\n<li>Added PHPCS for PHP linting<\/li>\n<li>Added WPCS for WordPress PHP linting<\/li>\n<li>Added Composer for PHP package management<\/li>\n<li>Added wp-scripts for WordPress build scripts<\/li>\n<li>Added webpack for JS module bundling<\/li>\n<li>Added a new Featured Posts Variation of the Query Loop<\/li>\n<li>Added the ability to filter teh Featured Posts Query Loop to only show featured posts<\/li>\n<li>Added the ability to filter the Featured Posts Query Loop to show all posts excluding featured posts<\/li>\n<li>Added the ability to filter the Featured Posts Query Loop to show all posts and show featured posts first (similar to sticky)<\/li>\n<li>Added the ability to sort post lists by featured posts.<\/li>\n<li>Removed Babel for js transpiling as it wasn't needed any more<\/li>\n<li>Removed Yarn as package manager<\/li>\n<li>Removed Gulp as build tool<\/li>\n<li>Numerous bug fixes, minor security updates within build process (non frontend facing) and improvements<\/li>\n<\/ul>\n\n<h4>2.2.0<\/h4>\n\n<ul>\n<li>Updated the build process<\/li>\n<li>Updated PHPCS and WPCS<\/li>\n<li>Updated Branding<\/li>\n<li>Updated readme by making it more readable<\/li>\n<li>Added Gutenberg\/Block Editor support<\/li>\n<\/ul>\n\n<h4>2.1.5<\/h4>\n\n<ul>\n<li>Add support for translate.wordpress.org.<\/li>\n<\/ul>\n\n<h4>2.1.4<\/h4>\n\n<ul>\n<li>Don't show the featured taxonomy on nav menu edit areas.<\/li>\n<\/ul>\n\n<h4>2.1.3<\/h4>\n\n<ul>\n<li>Fix another potential PHP notice.<\/li>\n<\/ul>\n\n<h4>2.1.2<\/h4>\n\n<ul>\n<li>Fix PHP warning when checking for the old method of querying for featured posts.<\/li>\n<\/ul>\n\n<h4>2.1.1<\/h4>\n\n<ul>\n<li>Fix deprecated widget instantiation method.<\/li>\n<\/ul>\n\n<h4>2.1<\/h4>\n\n<ul>\n<li>Don't erase other terms in the pts_feature_tax assigned to the post on save. This opens up potential to have more than one type of \"featured\", (e.g. recommended).<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>Changing how featured posts are designated. Instead of post meta, the plugin now uses a hidden taxonomy.<\/li>\n<li>Added a widget for showing featured posts.<\/li>\n<li>Fixed the post_class filter to work properly on secondary loops.<\/li>\n<li>Fixed bug where the featured column would not show when viewing Media in the admin with list view.<\/li>\n<li>Fixed bug where saving settings did not always work.<\/li>\n<li>Changed the featured star in the admin to use the WordPress Dashicon font.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Hello world!<\/li>\n<li>Add settings to the Settings-&gt;Writing page allowing admins to select the post types that can be featured.<\/li>\n<li>Add a check box in the publish meta box for marking a post as featured.<\/li>\n<li>Featured posts receive a featured and featured-{$posttype} class on them via the post_class filter.<\/li>\n<li>Admin post type screens have a column for Featured noting which posts are in fact featured.<\/li>\n<\/ul>","raw_excerpt":"x-release-please-start-version Stable tag: 3.0.3 x-release-please-end License: GPLv2 or later License URI: http:\/\/www.gnu.org\/licenses\/gpl-2.0.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/22193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=22193"}],"author":[{"embeddable":true,"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/desrosj"}],"wp:attachment":[{"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=22193"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=22193"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=22193"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=22193"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=22193"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=22193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}