3

My posts dont show the comment form unless that post already has comments. If post has one or more comments, everything works perfectly.

Everything used to work fine (that's why some posts have comments) and I have no idea why this is happening as I haven't touched any settings.

According to my settings, comments are enabled without restrictions and they are not closed after specific time. I also doubt that there's anything wrong with the code since putting <?php comment_form(); ?> on my template bahaves the same: doesn't show up without comments, shows up with comments.

I also tried to deactive all plugins one by one to see if some plugin was causing problems, but without results.

Does someone know what could be causing this issue?

2
  • 1
    most likely a problem with your theme's comments.php code.
    – Michael
    Feb 1, 2016 at 0:01
  • 1
    To make sure there aren't any errors, I've tried replacing comments.php to a single line: comment_form(); Form still only appears in a post with comments.
    – fnx
    Feb 1, 2016 at 8:23

1 Answer 1

5

Ok I feel stupid now. The problem was that for whatever reason some of the posts had comments disabled. I did not know that the only place where they could be toggled was under "Quick Edit". Problem solved...

1
  • Perfect! That was exactly the problem I bumped into this morning! Nov 3, 2017 at 16:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.