This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Sticky CPT

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

Screenshots

  • Highlighted in an article
  • list items with Sticky

Installation

  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

FAQ

(soon)

Installation Instructions
  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

Reviews

2 0242 March 0242 000000 2017
Great job dude, i love it ! ๐Ÿ™‚ As a little feature request for the next version, i guess you should prepare your plugin for GlotPress native i18n. See : https://translate.wordpress.org/projects/wp-plugins/sticky-cpt , the plugin is not well prepared for internationalization. The load_plugin_textdomain() function is missing, as well as the language textdomain metadata in the plugin main file comments, and a better use of WP translation strings ๐Ÿ˜‰ E.g : instead of __( "Make this post sticky" ), you should rather use __( "Make this post sticky", "sticky-cpt" ) But very nice work by the way, as usual ๐Ÿ™‚
Read all 2 reviews

Contributors & Developers

“Sticky CPT” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Sticky CPT” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0.1

  • 04 july 2017
  • Add contributor Whodunit and Check compatibility WordPress 4.8

1.0.0

  • 22 oct 2016
  • Initial release \o/