Sticky CPT
·
Add the possibility of "sticky" CPT. (Gutenberg compatibility)
등급
5/5
버전
2.0.0
활성화된 설치 항목
50
최근 업데이트일
Mar 19, 2020
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;
}
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.
