How to manage WordPress comments
This article describes how to manage WordPress comments using the administration interface, as well as how to use phpMyAdmin to delete bulk amounts of comments (such as spam comments).
The most common way to manage WordPress comments is to use the administration interface. To do this, follow these steps:
-
Log in to WordPress as the administrator.
-
Under Dashboard, click Comments. WordPress displays all of the comments for all of your posts.
If you have a lot of comments, it may help to filter the comments list. To do this:
-
Click Pending to only view comments awaiting review.
-
Click Approved to only view comments you have already approved.
-
Click Spam to only view comments you have marked as spam.
-
Click Trash to only view comments you have marked for deletion.
-
When your mouse pointer hovers over a comment entry, the following options appear:
There may be times when it is easier to delete WordPress comments directly in the MySQL database by using phpMyAdmin. For example, if a post has been spammed with hundreds of comments, it is often easier to do a bulk delete operation in phyMyAdmin.
If you are receiving a lot of spam comments, you should consider adding CAPTCHA protection to your WordPress site. CAPTCHAs can help reduce the amount of spam comments on your site significantly. For information about how to set up CAPTCHA protection for a WordPress site, please see this article.
To delete comments using phpMyAdmin, follow these steps:
-
Log in to cPanel.
-
In the Databases section of the cPanel home screen, click phpMyAdmin.
-
In the left-hand pane of phpMyAdmin, click the WordPress database. A list of tables in the database appears.
Typically, the WordPress database is username_wpXXX, where username represents your cPanel username, and XXX is a three-digit number.
-
Click the wp_comments table.
-
Each post has its own post ID, so to group comments by their parent post, click the comment_post_ID heading.
-
To delete a single comment, click Delete in the comment's row, and then click
to confirm the deletion:
-
To delete multiple comments, select the check boxes for the comments you want to delete, and then click Delete in the With selected section:
-
Click Yes to confirm the deletion.
Related Articles
- Adding CAPTCHA protection to a WordPress site
CAPTCHA protection helps secure your WordPress site, and reduces the amount of spamming by bots and other malicious actors. Learn how to add CAPTCHAs to your site here.
- WordPress security
Learn how to enhance the security of your WordPress site—help protect against brute force attacks and more.