I am using 4 Custom Post Types each having this kind of declaration:
register_post_type( 'texts', array(
'labels'=>array('name'=>'Texts','singular_name'=>'Text'),
'public'=>true,
'has_archive'=>true,
'menu_position'=>5
) );
The problem I have is that posts in these pages do not get Comment links, saying comments are closed.
There is a Page created called Texts with a slug of /texts/ which has a custom template for blog posts, but that does enable comments.
How can I get comments to work please?
See the ‘supports’ parameter here,
http://codex.wordpress.org/Function_Reference/register_post_type
or:
http://codex.wordpress.org/Function_Reference/add_post_type_support
for example:
add_post_type_support(‘texts’,’comments’);
My example code, copied from my theme’s functions.php: