Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress WordPress Theme Development Adding a Blog to a WordPress Theme Adding Comments to a Template

Kate Moore
Kate Moore
22,916 Points

"Comments are Closed"

I've added the line <?php comments_template(); ?> to the file, but when I go to enter a comment on my blog it says "Comments are closed." I'm guessing this is just a checkbox somewhere in the dashboard I have unclicked?

I made sure to go to settings>discussion and checked "allow people to post comments on new articles" but this has not fixed it. Is there another section I am supposed to check?

2 Answers

Hi Kate,

Can you check the rest of the check boxes on the Settings > Discussion section?

Both of these should not be checked:

  • Users must be registered and logged in to comment.
  • Automatically close comments on articles older than X days.

Another thing to check would be the post itself:

  • If it's older than the X days above and that is checked it could be this.
  • Otherwise, on your post go to Screen Options in the top right of the screen, check the box that says discussion and when the section appears double check that Allow Comments is checkedd.

Hopefully one of those helps :)

-Rich

Kate Moore
Kate Moore
22,916 Points

Got it! It was the Screen Options that needed to be checked. Thank you!

No problem :)

-Rich