1
여기에 코드가 있으며, 마지막 다섯 번째 글은 ADMIN CP 패널에 표시되지 않습니다. 다른 모든 것은 잘 작동하지만 5 번째를 추가하려고하면됩니다. 아무것도 나타나지 않습니다. 제한이나 무언가가 있는지 확실하지 않은 것은 내가 읽은 것으로 보이지 않습니다. 난 당신을 테스트해야WordPress 고급 사용자 정의 게시가 백엔드에 표시되지 않습니다.
add_action('init', 'create_post_type');
function create_post_type() {
register_post_type('slides', // <== here to lowercase (slug)
array(
'labels' => array(
'name' => __('Slides'), // <== here 1st letter uppercase
'singular_name' => __('Slide') // <== here 1st letter uppercase
),
'public' => true,
'has_archive' => true,
)
);
register_post_type('programs', // <== here to lowercase (slug)
array(
'labels' => array(
'name' => __('Programs'), // <== here 1st letter uppercase
'singular_name' => __('Program') // <== here 1st letter uppercase
),
'public' => true,
'has_archive' => true,
)
);
register_post_type('boards', // <== here to lowercase (slug)
array(
'labels' => array(
'name' => __('Boards'),
'singular_name' => __('Board') // <== here singular
),
'public' => true,
'has_archive' => true,
)
);
} // <== forgetted this
:
add_action('init', 'create_post_type');
function create_post_type() {
register_post_type('Slides',
array(
'labels' => array(
'name' => __('slides'),
'singular_name' => __('slide')
),
'public' => true,
'has_archive' => true,
)
);
register_post_type('Programs',
array(
'labels' => array(
'name' => __('programs'),
'singular_name' => __('program')
),
'public' => true,
'has_archive' => true,
)
);
register_post_type('Boards',
array(
'labels' => array(
'name' => __('Boards'),
'singular_name' => __('sponsor')
),
'public' => true,
'has_archive' => true,
)
);
을 보드 커스텀 포스트가 박쥐에 나타나지 않는다. 끝 –