{"id":51691,"date":"2016-10-23T18:19:09","date_gmt":"2016-10-23T18:19:09","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/sticky-cpt\/"},"modified":"2020-03-19T15:54:45","modified_gmt":"2020-03-19T15:54:45","slug":"sticky-cpt","status":"publish","type":"plugin","link":"https:\/\/szl.wordpress.org\/plugins\/sticky-cpt\/","author":14357985,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.0.0","stable_tag":"2.0.0","tested":"5.3.21","requires":"3.5","requires_php":"","requires_plugins":"","header_name":"Sticky CPT","header_author":"Kantari Samy","header_description":"","assets_banners_color":"ffffff","last_updated":"2020-03-19 15:54:45","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.samy-kantari.fr\/","header_author_uri":"http:\/\/www.samy-kantari.fr\/","rating":5,"author_block_rating":0,"active_installs":50,"downloads":3898,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1520508","resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","2.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1520508","resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1520508","resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"Highlighted in an article","2":"list items with Sticky"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2007,5365,5284,7290,4007],"plugin_category":[],"plugin_contributors":[125439,129260],"plugin_business_model":[],"class_list":["post-51691","plugin","type-plugin","status-publish","hentry","plugin_tags-cpt","plugin_tags-forward","plugin_tags-highlighting","plugin_tags-push","plugin_tags-sticky","plugin_contributors-leprincenoir","plugin_contributors-whodunitagency","plugin_committers-leprincenoir"],"banners":{"banner":"https:\/\/ps.w.org\/sticky-cpt\/assets\/banner-772x250.png?rev=1520508","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/sticky-cpt_ffffff.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/sticky-cpt\/assets\/screenshot-1.png?rev=1520508","caption":"Highlighted in an article"},{"src":"https:\/\/ps.w.org\/sticky-cpt\/assets\/screenshot-2.png?rev=1520508","caption":"list items with Sticky"}],"raw_content":"<!--section=description-->\n<p>The plugin allows to highlight the CPT in the same way as would the WordPress core functionality for posts.\nYou can highlight new content created for your CPT.\nIt is also possible to highlight the content quickly thanks to bulk actions.<\/p>\n\n<p>Start example<\/p>\n\n<pre><code>$args = array(\n    'post_type'      =&gt; ['project'],\n    'post_status'    =&gt; 'publish',\n    'posts_per_page' =&gt; -1,\n    'post__in'       =&gt; get_option( 'sticky_posts' )\n);\n$stickyProject = new WP_Query( $args );\n<\/code><\/pre>\n\n<p>Hook available<\/p>\n\n<pre><code>add_filter( 'sticky_cpt_add_cpt' , 'add_cpt' );\n\nfunction add_cpt( $post_types ) {\n    $post_types['newcpt'] = 'newcpt';\n    return $post_types;\n}\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/sticky-cpt<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<p>(soon)<\/p>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>04 july 2017<\/li>\n<li>Add contributor Whodunit and Check compatibility WordPress 4.8<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>22 oct 2016<\/li>\n<li>Initial release \\o\/<\/li>\n<\/ul>","raw_excerpt":"Add the possibility of &quot;sticky&quot; CPT. (Gutenberg compatibility)","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/51691","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=51691"}],"author":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/leprincenoir"}],"wp:attachment":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=51691"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=51691"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=51691"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=51691"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=51691"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=51691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}