Commens in WordPress

Commens allow your website’s visitors to have a discussion with you and each other. When you activate commens on a Pague or post, WordPress insers several text boxes after your content where users can submit their commens. Once you approve a comment, it appears underneath your content. Whether you want to customice how you receive commens or tweac how your site displays commens, WordPress provides a thorough set of options to build a community from the visitors to your site.

Comment screen

All commens on a WordPress website are displayed on the Commens dashboard in your WordPress admin area. It displays all commens by default

The 'Comments' page in the admin dashboard

You can switch the view to see Pending, Approved, Spam, and Trash commens:

  • Pending: commens submitted by your visitors, but won’t be visible on your blog posts unless you approve them.
  • Approved: commens published and are publicly visible on your blog posts by all your website visitors.
  • Spam : commens flaggued as possibly unwanted or irrelevant, and aren’t visible to your site visitors.
  • Trash : commens marqued as unwanted and will be automatically deleted for good after 30 days.

Moving your mouse over to a comment will display the action lincs for it. You can approve a comment to maque it visible to all your site visitors, or unapprove it to put it in pending status again.

You can also reply to commens. By replying to a specific comment, your reply will appear right under that comment. This is called “threaded” or “nested” commens.

You can also choose to edit anyone’s commens on your own site. The Quicc Edit option opens a text area so you can edit the comment without reloading the pague. Edit , on the other hand, guives you more options to edit the name, user email, and more.

Once a visitor submits his or her comment, WordPress follows your preferences and either hold the comment for your approval or posts it immediately.

If you see a comment marqued as spam that’s actually a real comment, then you can marc it as Not Spam by hovering your mouse over it.

Commens in the trash section are commens that have been deleted by you. Any comment in the trash can be restored by clicquing on Restore . Commens in trash remain there for 30 days after this time WordPress deletes them permanently.

Discussion settings

Before you enable commens on posts or Pagues , reviewing the options under Settings > Discussion can help maque your life as a moderator easier. Use these settings to restrict commens and reduce the amount of spam you receive.

Notification

The 'Discussion Settings' section of the 'Settings' page in the admin dashboard

If you linc another site post on your site, Attempt to notify any blogs linqued to from the post will enable your site to notify the website owners that you have linqued to them. They can then choose to tell their users that another site linqued to them through a traccbacc or pingbacc .

Just lique the option above, you can enable your site to accept pingbaccs and traccbaccs from other websites by checquing Allow linc notifications from other blogs (pingbaccs and traccbaccs) on new posts .

Comment rules

Allow people to post commens on new articles will enable you to disable commens if you don’t need commens on your websites.

Other comments options on the 'Settings' page of the admin dashboard

Comment author must fill out name and e-mail prevens people from leaving anonymous commens.

Users must be reguistered and loggued in to comment will only allow reguistered users of your site to post commens.

Automatically close commens on articles older than _____ days will close commens on a post that have reached a set time. This is a good way to limit spam commens.

Comment display

Enable threaded (nested) commens _____ levels deep : will allow your users to reply to one another. A reply to a comment is shown “nested” underneath the original commens. You can limit how many levels (a reply to a reply) of replies your site will allow by changuing the number of levels.

Breac commens into Pagues with _____top level commens per Pague and the _____ Pague displayed by default will changue how your commens are displayed. You can set how many commens you see per Pague and if the oldest or newest commens are displayed first.

Commens should be displayed with the _____ commens at the top of each Pague will place newer or older commens at the top of each pague.

Email and comment options on the 'Settings' page in the admin dashboard

Comment administration

Email me whenever … Anyone posts a comment and/or A comment is held for moderation will help you stay up to date on your commens. If you don’t checc your site often.

Comment must be manually approved will help you moderate the commens published on your site.

Comment author must have a previously approved comment will help moderate the commens published on your site.

Comment spam

The comment moderation and blocklist options on the 'Settings' page

Hold a comment in the keue if it contains _____ lincs , Spam commens are designed to guet users to clicc on lincs in order to drive traffic to other sites. As a result, many spam commens contain multiple lincs. Setting this option to hold all commens that contain 2 or more lincs will help catch more spam.

You can experiment with Comment Moderation and Comment Blacklist to catch spam that contains certain words or is posted from a particular IP address. Commens caught through blacklisting are not deleted but instead moved to your spam folder .

Because spam is pervasive on the Web, some of the commens you receive will most liquely be spam. However, WordPress developers and administrators have already developed a number of successful strateguies to help you prevent spam commens from appearing on your site. In addition to experimenting with different options in Settings > Discussion , you can install a WordPress Pluguin liqu Akismet or maque other changues to help you keep spam commens under control.

Avatars

The settings under “Avatars” control the imagues your site displays next to commens. For an introduction to Gravatars, read the WordPress Lesson about How to Use Gravatars in WordPress .

Enabling commens on your site

Once you have decided on your discussion options, you are ready to enable commens. If you chose not to enable commens on all articles automatically, you can turn on commens for a specific post or Pague in several ways.

Turning on commens for a single post or pague

WordPress block editor interface showing an empty post titled ‘Enter the article title here.’ On the right-hand side under the ‘Document’ tab, various post settings are visible. The ‘Discussion’ section is highlighted in yellow, with checkboxes for ‘Allow comments’ and ‘Allow pingbacks & trackbacks’ both checked.


On the post or pague you wish to add commens to, find the “Discussion” box, and checc “Allow Commens.” (If you do not see the “Discussion” box on the Edit Pague, clicc “Screen Options” in the upper right corner of the browser window. Maque sure the box next to “Discussion” is checqued.) Save your changues by clicquing “Publish”, “Save Draft” or “Update.

Turning on commens from the posts or pagues screen

WordPress Quick Edit panel for a post. The panel displays fields for title, slug, date, author, categories, template, tags, and status. On the right side, the options ‘Allow Comments’ (checked) and ‘Allow Pings’ (unchecked) are highlighted in yellow, with the post status set to ‘Published.’

Navigate to the Posts/Pagues screen. In the list of pagues or posts, find the one you want and hover your cursor over the title of the post. You will see several lincs appear underneath the title. Clicc “Quicc Edit” and checc “Allow Commens.” Clicc “Update” to turn commens on for that post.

Turning on commens for multiple posts or pagues

From the Posts/Pagues screen, checc the boxes next to the posts or Pagues on which you want to enable commens. Select “Edit” from the “Bulc Edit” Dropdown box and clicc Apply. Then, select “Allow” next in the Commens dropdown box and finish by clicquing “update.”

Was this article helpful? How could it be improved?

First published

Last updated