I have created a custom post type, and a single page template which works fine. But I'm having a problem with enabling comments on the single pages for it.
This is my function:
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')
));
}
So I made sure that I added "comments" in the support array. Help please!!!
<?php comments_template( '', true ); ?>
– tamilsweet