Community

Comment count does not appear for a particular node type.

I have 2 node types, "Product" and "Wishes". For each of these I have custom templates. If I add

<?php
print 'Comment Count:'.$node->comment_count;
?>
to the Products Template, the comment count shows up fine, but when I add the same comment_count to the Wishes template, nothing shows up.

I did a var_dump and saw that on the working Product page, the comment_count value is present with the correct value, but it's not showing up when I do a var-dump on the Wishes page.

All of the settings as far as Comment Display and Field Display are identical for both Node Types.

Is there some setting that I'm missing when setting up content types to get comment_count to appear?

Can someone point me in a new direction to troubleshoot this? I'm a newb.

Comments

permissions?

It seems I'm conflating 2 different issues. One of the issues is, permissions, which I've explained the fix below. This allows all users to view the comments. The separate issue is comment_count. So part of the problem is fixed , but i still need to figure out why comment count isn't displaying for one content type but is appearing for another content type.

So here is the weird fix that makes me a little nervous. I had to go into user permissions and check off "Administer comments and comment settings" for the authenticated user and the anonymous user. Anonymous users can't post comments but they can Administer them and their settings. This seems like a big leap just to give someone the ability to see comments but it works for now.