Forums

Hide comments for users but allow them to post comments (6 posts)

  1. odp123
    Member
    Posted 3 weeks ago #

    So im searching the web for useful information regarding my issue, trying to hide the posted comments for the sites users. The users still need to be able to leave their comments but they should not be allowed to see the posted/pending comments.

    I have seen plugins to hide the entire comment section, but that is not my goal.

    I guess i am looking for a way to modify the comments.php file in my theme, in a way that allows people to post comments without registration, but disallow them, or anyone else, beside the site admin, to view the posted comments.

  2. kkarpieszuk
    Member
    Posted 3 weeks ago #

    find in your template for comments section (i think it will be in comments.php file), find there code:
    <?php wp_list_comments();?>

    and delete or hide this

  3. odp123
    Member
    Posted 3 weeks ago #

    i dont know if i should cry or laugh. this call is not to find in my theme's comments file.

    Assuming this,

    I wrote the theme myself, therefor things might be missing.
    But if this call is missing, then the problem wouldn't exist, right?

    So could it be something else?

  4. kkarpieszuk
    Member
    Posted 3 weeks ago #

    please paste somwhere (ie here http://pastebin.ca/) code of coments.php file

  5. odp123
    Member
    Posted 3 weeks ago #

  6. kkarpieszuk
    Member
    Posted 3 weeks ago #

    you need to delete lines from 13 to 19 (inluding those lines)

Reply

You must log in to post.

About this Topic