Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

Sticky CPT

Add the possibility of "sticky" CPT.

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;
}
Author Kantari Samy
Profile
Contributors leprincenoir
Tags CPT, forward, highlighting, push, sticky
  1. sticky-cpt screenshot 1

    Highlighted in an article

  2. sticky-cpt screenshot 2

    list items with Sticky

  1. Upload the plugin files to the /wp-content/plugins/sticky-cpt directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress

1.0.0

  • 22 oct 2016
  • Initial release \o/

(soon)

Share  
Download
Version 1.0.0

Requires WordPress version: 3.5 or higher

Compatible up to: 4.6.3

Last Updated 23 Oct 2016

Date Added: 23 Oct 2016

Plugin Homepage

Evaluation
star1
star2
star3
star4
star5

0 stars
0 ratings
28 downloads

Compatibility

Not Enough Data

Reports:
Works: 0
Broken: 0