• odp123

    (@odp123)


    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • kkarpieszuk

    (@kkarpieszuk)

    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

    Thread Starter odp123

    (@odp123)

    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?

    kkarpieszuk

    (@kkarpieszuk)

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

    Thread Starter odp123

    (@odp123)

    kkarpieszuk

    (@kkarpieszuk)

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide comments for users but allow them to post comments’ is closed to new replies.