Comments Not Working?
-
Try adding
<?php comments_template(); ?>to your single.php template file.Thanks that wasn’t the only problem. I forgot to include the single.php file all together. I have it working now thanks for the support!
Hi there, I’m a brand newbie and also having a similar problem with my blog at http://www.brain-on-fire.com/jefeblog. When I click Leave Comment I get the error message –
Parse error: syntax error, unexpected T_VARIABLE in /var/www/html/br/brain-on-fire.com/jefeblog/wp-content/themes/pixel.1.9.8/pixel/comments.php on line 61
I have tried it in both Firefox and IE and get the same result, but I have no idea how to fix line 61. As far as I can tell this below is the section of comments.php in question; do you see anything wrong with it? –
<?php else : // this is displayed if there are no comments so far ?>
<?php if (‘open’ == $post->comment_status) :
// If comments are open, but there are no comments.
else : ?><p class=”nocomments”>Comments are closed.</p>
<?php endif;
endif;
elThanks for any help.
You really should have started a new thread, but besides that I think you forgot a semicolon somewhere.
(cannot tell from the code you posted)
Peter
Cool, thank you. Meanwhile I re-uploaded the comments.php file from the original installation and now it works fine. Not sure how it got corrupted, should have thought to try that first.
Okay, I must be really bad, how do you re-upload the comments.php file? I have found it, but can’t seem to figure out how to re-upload it. I am also having the same problem with this and widgets not loading correctly.
My website is:
I have a similar problem. I tried adding <?php comments_template(); ?> to my single.php template and it didn’t work. Here is my problems:
When I click on No Comments on this page http://thevillageswebsites.com/wordpress/?page_id=53
Or when I click on the 5 comments on this page/cat http://thevillageswebsites.com/wordpress/?cat=11
This page is displayed with no comments http://thevillageswebsites.com/wordpress/?p=64
Any idea what is causing this problem?
The topic ‘Comments Not Working?’ is closed to new replies.
(@bobhoil)
16 years, 5 months ago
I have recently created a custom template for wordpress for my site over at:
The comments do not work and I have tried everything to figure out what the problem is. Any ideas maybe I am looking over something simple?
Thanks,
Bob Hoil