Home Plugins sticky cpt
Sticky CPT logo

Sticky CPT

by Kantari Samy on WordPress.org

Add the possibility of "sticky" CPT. (Gutenberg compatibility)

(2)
Highlighted in an article

Highlighted in an article

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;
}
Active installations60+
Weekly downloads
12-7.69%
Version2.0.0
Last updated3/19/2020
WordPress version3.5
Tested up to5.3.18
Tags
cptforwardhighlightingpushsticky
Sticky CPT | Plugin0