WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Guests not seeing comments (4 posts)

  1. beatle
    Member
    Posted 7 years ago #

    Version: WordPress 2.0.7
    Theme: Blue Zinfandel 2.0 (widgetized)
    Location: http://www.johnlennonforum.com

    There’s something that I would like to change regarding the behaviour of comments. I have my WordPress configured so that only registered members can comment. However, in this theme, guests are not shown the comments! I want to prevent guests from commenting but it’s ok that they read the comments. I’ve checked with other themes with the same configuration and that’s what happens.

    I'm not a PHP programer but I believe there is something in the "IF's" statements in the comments.php file of the template that is causing this.

    Thanks in advance for all the help.

  2. MichaelH
    Member
    Posted 7 years ago #

    Try commenting out lines 21,22,23 in comments.php (i.e. put two // in front of each line).

    Make a backup of your files before changing things just in case.

  3. beatle
    Member
    Posted 7 years ago #

    MichaelH,

    Thanks for your help. I had to comment the end if statement as well but, unfortunately, that way anyone could make a comment. The problem is that I want guests to be able to read the comments although they are not allowed to comment.

  4. beatle
    Member
    Posted 7 years ago #

    I solved this by moving the condition down the comments.php code. I put it after the comments loop and before the new comment form. Thanks Michael for trying to help.

Topic Closed

This topic has been closed to new replies.

About this Topic