Sticky CPT

plugin banner

Add the possibility of "sticky" CPT.

Author:Kantari Samy (profile at wordpress.org)
WordPress version required:3.5
WordPress version tested:5.3.3
Plugin version:2.0.0
Added to WordPress repository:23-10-2016
Last updated:19-03-2020
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:100
Rated by:2
Plugin URI:http://www.samy-kantari.fr/
Total downloads:3 116
Active installs:60+
plugin download
Click to start download

The plugin allows to highlight the CPT in the same way as would the WordPress core functionality for posts.
You can highlight new content created for your CPT.
It is also possible to highlight the content quickly thanks to bulk actions.

Start example

$args = array(
    'post_type'      => ['project'],
    'post_status'    => 'publish',
    'posts_per_page' => -1,
    'post__in'       => get_option( 'sticky_posts' )
);
$stickyProject = new WP_Query( $args );

Hook available

add_filter( 'sticky_cpt_add_cpt' , 'add_cpt' );

function add_cpt( $post_types ) {
    $post_types['newcpt'] = 'newcpt';
    return $post_types;
}

Screenshots
FAQ
ChangeLog