Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wordpress not using correct comments file?

Tags:

php

wordpress

Does anyone with experience using Wordpress know why it would not use my comments.php file that is in a theme folder?

like image 456
JasonDavis Avatar asked Jan 25 '10 02:01

JasonDavis


2 Answers

I got it working now, I had to change

<?php comments_template(); ?>

into this

<?php comments_template('', true); ?> 

instead, weird but it fixed my problem

like image 143
JasonDavis Avatar answered Nov 02 '22 22:11

JasonDavis


If you already have <?php comments_template(); ?> in place (which you do) then it could be a file permission issue.

Also, it is probably pulling from classic or default if it can't read your comments.php file in the current directory of your theme.

Make sure your comments.php has the same permissions as the rest of your theme files.

like image 41
Doug Neiner Avatar answered Nov 03 '22 00:11

Doug Neiner