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

getting blank wp-comments-post.php after posting

I'm getting a blank wp-comments-post.php after posting a comment. Please help me to solve it.

Hi Demi :)

Is the content not showing at all on your site? / do you have a comments.php ?

Craig

Thanks for your message Craig.

I have a comments.php file. And when I go back to te page with the comments form, the earlier sent message is visible.

The other content on the page is showing, sorry for giving this answer very late.

1 Answer

Andrew Shook
Andrew Shook
31,709 Points

Demi, can you please post your code for the comment template and the page template.

I don't need to use a comment.php file, right? By not using the comments.php, WordPress wil use the default. But even then I'm getting the blank wp-comments-post.php. I tried to switch to another theme and posting a comment is working fine.

Does someone have an idea to fix this?