사용자 정의 게시 유형과 잘 작동하는 단일 페이지 템플리트를 만들었습니다. 하지만 단일 페이지에 주석을 달 수있는 데 문제가 있습니다.WordPress 사용자 정의 게시 유형 단일 페이지 (의견)
add_action('init', 'vblog');
function vblog() {
register_post_type('vblog', array(
'labels' => array(
'name' => __('VTV'),
'singular_name' => __('VTV'),
'add_new' => 'Add New VBlog',
'add_new_item' => 'Add New VBlog',
'edit' => 'Edit VBlog',
'edit_item' => 'Edit VBlog',
'new_item' => 'New VBlog',
'view' => 'View VBlogs',
'view_item' => 'View VBlog',
'search_iteme' => 'Search VBlogs',
'not_found' => 'No VBlogs Found',
'not_found_in_trash' => 'No VBlogs found in Trash',
'parent' => 'Parent VBlog',
),
'public' => true,
'supports' => array('title', 'editor','custom-fields', 'thumbnail', 'revisions', 'comments'),
'taxonomies' => array('category', 'post_tag')
));
가}
그래서 내가 지원 배열에 "의견"을 추가 한 것을 확인했다 :이
내 기능입니다. 도와주세요!!!
사용자 정의 포스트 유형의 단일 템플릿 댓글이 추가되었습니다 않습니다이 명령을 실행할 수 있습니다 닫은 경우이 코드 단일 vblog.php
를 추가 . ' php comments_template (' ', true); ?>' – tamilsweet