Sticky CPT

Sticky CPT Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 3,105 downloads
Sticky CPT Icon

Try plugin: Sticky CPT

We'll create fresh WordPress site with Sticky CPT installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Sticky CPT

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

2


0


0


0


0

updated: 4 years ago
since: 7 years ago
author: Kantari Samy

Description

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;
}