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

Kristoffer Lund
Kristoffer Lund
11,133 Points

Custom Post Types UI - Allow Comments.

As the title states. I been trying to solve this problem for a couple of days now. I'm using the Custom Post Type UI and Advanced Custom Fields plugins.

The problem is that the "Comments Closed" appears then i'm adding the comments_template. I have check supports Comments in the settings.

Anyone have a workaround for this? I have been unable to find a online guide.

1 Answer

Sue Dough
Sue Dough
35,800 Points

Did you add the following in your template?

<?php comments_template(); ?>

Have you checked the checkbox on that specific post to allow comments?

Kristoffer Lund
Kristoffer Lund
11,133 Points

I just double checked it. I have added the comment_template(). But every time i check the checkbox to allow comments and update it, it unchecks.

But i'm able to add comment manually through the admin panel.

Sue Dough
Sue Dough
35,800 Points

Do you have a comments.php template?