Апісанне
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;
}
Ўсталёўка
- Upload the plugin files to the
/wp-content/plugins/sticky-cptdirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress
Часта задаваныя пытанні
(soon)
Водгукі
Удзельнікі і распрацоўшчыкі
“Sticky CPT” is open source software. The following people have contributed to this plugin.
УдзельнікіПеракласці “Sticky CPT” на вашу мову.
Зацікаўлены ў распрацоўцы?
Праглядзіце код, праверце SVN рэпазітарый, або падпішыцеся на журнал распрацоўкі па RSS.
Журнал змяненняў
1.0.1
- 04 july 2017
- Add contributor Whodunit and Check compatibility WordPress 4.8
1.0.0
- 22 oct 2016
- Initial release \o/


