comments_open() doesn't work when there are no comments
|Reported by:||iwhitcomb||Owned by:|
|Component:||Comments||Keywords:||reporter-feedback comments open comment_open|
I'm attempting to use the comments_open() function to simply display or hide my comments form in the comments.php file. My problem seems to be that whether I've got comments enabled or disabled on the post the comments_open() function always returns "closed" when there are zero comments on a post.
I checked the database and there doesn't appear to be an issue with the data. Each of my posts are still "open" for commenting.
Change History (4)
in reply to:
7 years ago
- Resolution set to fixed
- Status changed from new to closed