이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

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

스크린샷

  • Highlighted in an article
  • 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

FAQ

(soon)

후기

2017년 3월 2일 1 reply
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 🙂
모든 2 평가 읽기

기여자 & 개발자

“Sticky CPT”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “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/