Wordpress - Hide Comments

On a Wordpress site that I'm creating, I would like visitors to have the ability to submit comments for individual articles but don't want the comments to be visible on the page (so they would only be viewable once logged in to the admin).

Does anyone know how this can be done? It seems like a relatively simple request but I can't seem to find a solution for it. Thanks.
Who is Participating?

Improve company productivity with a Business Account.Sign Up

meb_santosoConnect With a Mentor Commented:
if you want the following:
-. everybody (general visitors, registered visitors, admins) can post comments (AND)
-. comments cannot be seen by non-admins (AND)
-. comments are only available for admins (AND)

then you can do the following:
-. edit page.php, single.php (and or other pages in your active theme)
-. look for where the comments are being displayed. Mostly using this function:
<?php wp_list_comments('reply_text=&nbsp;'); ?>

Open in new window

-. put the following line:
<?php if ( current_user_can('manage_options') )
	<?php wp_list_comments('reply_text=&nbsp;'); ?>
     } else  {

Open in new window

Good luck, and please do correct me if I'm wrong :-)
If you set your comments to be moderated then they will only appear  after you / an admin approves them.

Did I understand your question properly?
Aaron TomoskySD-WAN SimplifiedCommented:
Just set comments need approval. That way nothing shows up on the page but admins can view all from the control panel
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

AdamAuthor Commented:
Thanks for the replies everyone - they were greatly appreciated.

But special thanks to meb_santoso as I think his solution worked best for what I was looking for.
good that it works out for you :-) and thanks for the points
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.