BACK TO DIRECTORY

Sticky CPT

by Kantari Samy

5.0
(2 ratings)

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

Highlighted in an article

Highlighted in an article

list items with Sticky

list items with Sticky

Plugin Details

Active Installs
50
Total Downloads
4,119
Version
2.0.0
Requires WP
3.5
Requires PHP
Tested Up To
5.3.23
Added
2016-10-23
Last Updated
2020-03-19 3:54pm GMT

Ratings

5
2
4
0
3
0
2
0
1
0