Forums

Comments Not Working? (8 posts)

  1. bobhoil
    Member
    Posted 2 years ago #

  2. esmi
    Theme Diva & Mod
    Posted 2 years ago #

    Try adding <?php comments_template(); ?> to your single.php template file.

  3. bobhoil
    Member
    Posted 2 years ago #

    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!

  4. jefevonstanley
    Member
    Posted 2 years ago #

    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;
    el

    Thanks for any help.

  5. Peter Boosten
    Member
    Posted 2 years ago #

    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

  6. jefevonstanley
    Member
    Posted 2 years ago #

    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.

  7. mlthreat
    Member
    Posted 1 year ago #

    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:

    http://www.shellysblog.com

  8. fbenson103
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic