WP AI Agent
Features Pricing Blog Contact Download Plugin Manage Subscription Get Free Key →

How to Configure WordPress Discussion Settings: Complete Guide

· · 8 min read

Knowing how to configure WordPress discussion settings is one of the most important steps you can take to manage user engagement, reduce spam, and maintain a professional website. Whether you run a blog, business site, or online store, these settings determine how visitors interact with your content through comments, trackbacks, and pingbacks. This comprehensive guide walks you through every option available, explains what each setting does, and shows you how to apply them effectively.

Understanding the WordPress Discussion Settings Panel

The WordPress Discussion Settings panel is the central hub for controlling all comment-related behavior on your site. Before making any changes, it helps to understand where to find it and what categories of options it contains.

How to Access Discussion Settings

  1. Log in to your WordPress admin dashboard.
  2. In the left-hand menu, click Settings.
  3. From the submenu, click Discussion.
  4. The Discussion Settings page will load, displaying all available options.
  5. After making any changes, scroll to the bottom and click Save Changes.

Overview of Settings Categories

The Discussion Settings page is divided into several logical sections. These include default article settings, other comment settings, email notification preferences, comment moderation rules, comment blocklist options, and avatar display settings. Each section plays a distinct role in shaping how discussions work on your site.

Configuring Default Article Settings

The first section of the Discussion Settings page is called Default article settings. These three checkboxes apply globally to all new posts and pages unless overridden on an individual post level.

Attempt to Notify Blogs

The first checkbox, Attempt to notify any blogs linked to from the article, enables pingbacks. When you publish a post that links to another WordPress blog, WordPress will attempt to send a notification to that blog. This can help build relationships with other bloggers but may also generate spam pingbacks in return. Many site owners choose to disable this option.

Allow Link Notifications

The second checkbox, Allow link notifications from other blogs (pingbacks and trackbacks) on new articles, controls whether your site accepts incoming pingback and trackback notifications. Disabling this option is highly recommended for most sites because trackback spam is extremely common and can clutter your moderation queue.

Allow People to Post Comments

The third checkbox, Allow people to submit comments on new articles, is the master switch for comments on all new content. If you uncheck this, new posts will have comments disabled by default. You can still enable comments on individual posts manually. If you want to close comments site-wide, unchecking this box is the fastest way to do it for all future content.

Configuring Other Comment Settings

The Other comment settings section gives you fine-grained control over who can comment and how comments are structured. These options help improve comment quality and reduce spam significantly.

Requiring Commenter Information

You can require commenters to provide their name and email address before submitting a comment. Enabling this setting filters out many automated spam bots and encourages more accountable, genuine participation. Check the box labeled Comment author must fill out name and email to activate this requirement.

Requiring User Registration

If you want only registered users to comment, enable Users must be registered and logged in to comment. This is ideal for membership sites or communities where you want a controlled audience. Keep in mind that this can reduce the volume of comments from casual visitors.

Automatically Closing Comments

Older posts often attract spam. The option Automatically close comments on articles older than X days lets you set a time limit. A common value is 60 or 90 days. After the set period, comments on those posts will close automatically without any manual effort on your part.

Cookie Consent for Commenters

Enabling Show comments cookies opt-in checkbox displays a GDPR-friendly checkbox that allows commenters to save their name, email, and website in a browser cookie. This is a helpful feature for returning visitors and supports privacy compliance.

Enabling Threaded Comments

Threaded (nested) comments allow visitors to reply directly to individual comments, creating a conversational tree structure. You can set the nesting depth up to 10 levels. Enable this with Enable threaded (nested) comments X levels deep. A depth of 3 to 5 levels is practical for most sites.

Breaking Comments Into Pages

If your posts generate a large volume of comments, consider enabling Break comments into pages with X top-level comments per page. This improves page load times and makes long comment sections easier to navigate. You can also choose whether to display the first or last page of comments by default.

Setting Up Email Notifications for Comments

WordPress can send you email alerts when new comments are submitted or when a comment is held for moderation. Staying informed helps you respond quickly and keep discussions healthy.

Comment Email Alerts

Under the Email me whenever section, you have two options:

  • Anyone posts a comment — You receive an email for every single comment submitted. Useful for low-traffic sites but can become overwhelming on busy sites.
  • A comment is held for moderation — You only receive an email when a comment is queued for your review. This is the preferred option for most site owners.

Before a Comment Appears

This subsection controls whether comments appear immediately or require approval first:

  • Comment must be manually approved — Every comment waits in the moderation queue until you approve it. This gives you maximum control but requires active monitoring.
  • Comment author must have a previously approved comment — Once a commenter has had one comment approved, future comments from the same email address are published automatically. This is a great middle ground between full moderation and open comments.

Managing Comment Moderation and Blocklists

The moderation and blocklist sections allow you to define specific words, IPs, emails, and URLs that should trigger moderation or be blocked outright. These are powerful spam-fighting tools.

Comment Moderation Rules

The Comment Moderation setting has two parts. First, you can set a threshold: if a comment contains more than a certain number of links, it is held for moderation automatically. Two links is the WordPress default and a reasonable starting point, since spam comments often contain multiple links.

The text area below lets you add specific words, URLs, email addresses, or IP addresses — one per line. Any comment containing a match will be held for moderation regardless of the author's history.

Disallowed Comment Keys (Blocklist)

The Disallowed Comment Keys section works the same way as the moderation list, but instead of holding comments for review, it moves them directly to the trash. Use this for known spam phrases, malicious URLs, or repeat offenders. Be careful not to add overly common words that might accidentally trash legitimate comments.

Using WP-CLI to Manage Discussion Settings

Advanced users and developers can manage discussion settings directly from the command line using WP-CLI. This is especially useful for bulk changes across multiple sites or for automating setup during deployment.

# Disable comments site-wide via WP-CLI
wp option update default_comment_status closed

# Require comment author name and email
wp option update require_name_email 1

# Set comments to close after 60 days
wp option update close_comments_for_old_posts 1
wp option update close_comments_days_old 60

# Enable comment moderation (must approve all comments)
wp option update comment_moderation 1

These commands update the WordPress options table directly, producing the same result as saving changes through the admin panel. You can verify any setting with wp option get [option_name].

Configuring Avatar Settings

The final section of the Discussion Settings page controls how user avatars (profile images) are displayed next to comments. WordPress uses the Gravatar service by default.

Show Avatars

Check or uncheck Show Avatars to enable or disable avatar images in comment sections globally. Disabling avatars can slightly improve page load performance and gives your comment section a cleaner, more minimal look.

Maximum Rating

Gravatar images carry content ratings similar to movie ratings. The options are G (suitable for all audiences), PG, R, and X. For most public-facing websites, keeping the maximum rating at G is the safest choice. This ensures that any avatar pulled from Gravatar is appropriate for all visitors.

Default Avatar

When a commenter does not have a Gravatar account, WordPress displays a default avatar image. You can choose from several built-in options including Mystery Person, Blank, Gravatar Logo, Identicon, Wavatar, MonsterID, and Retro. Identicon and MonsterID generate unique, colorful images based on the user's email hash, which makes comment sections feel more personalized even for users without a Gravatar account.

Best Practices for WordPress Discussion Settings

Configuring the settings correctly from the start saves you hours of spam management and moderation work later. Here are the most effective practices to implement:

Recommended Settings for Most Sites

  • Disable pingbacks and trackbacks unless you actively use them for SEO or networking.
  • Require commenter name and email to reduce anonymous spam.
  • Enable automatic comment closing after 60 to 90 days on older posts.
  • Set comments to require a previously approved comment rather than manual approval for every single comment.
  • Keep the link threshold at 2 for moderation to catch spam automatically.
  • Use the disallowed keys list to permanently block known spam phrases and URLs.

Combining Discussion Settings With Anti-Spam Plugins

While the built-in Discussion Settings are powerful, pairing them with a dedicated anti-spam plugin like Akismet adds an additional layer of protection. Akismet analyzes comment content against a global database of known spam patterns and automatically filters suspicious submissions. Together, the native settings and a plugin can eliminate nearly all comment spam from your site.

Overriding Settings on Individual Posts

Remember that you can override global discussion settings on a per-post basis. When editing any post or page, scroll down to the Discussion meta box (you may need to enable it via Screen Options at the top of the editor). From there, you can enable or disable comments and pingbacks for that specific piece of content, giving you precise control regardless of your global defaults.

Frequently Asked Questions

How do I turn off comments on all existing WordPress posts at once?

Go to Posts > All Posts, select all posts using the checkbox at the top, choose Edit from the Bulk Actions dropdown, and click Apply. In the bulk edit panel, set the Comments field to Do Not Allow and click Update. You can also use WP-CLI with the command wp post list --format=ids | xargs wp post update --comment_status=closed to close comments on all posts in one step.

Why are pingbacks and trackbacks considered a spam risk?

Pingbacks and trackbacks are automated notifications sent between WordPress sites when one links to another. Spammers exploit this system to generate fake notifications that appear as comments on your site, pointing to low-quality or malicious websites. Since the legitimate SEO benefit of trackbacks is minimal, most site owners disable them to keep their moderation queue clean.

What is the difference between the comment moderation list and the disallowed comment keys list?

The comment moderation list holds matching comments in a pending queue for you to review and approve or delete manually. The disallowed comment keys list automatically moves matching comments straight to the trash without any notification, as if they never existed. Use the moderation list for borderline terms and the disallowed list only for content you are certain is always unwanted.

Can I require login to comment without requiring user registration on my site?

No. The Users must be registered and logged in to comment option requires commenters to have an account on your specific WordPress site. If you want to allow social login alternatives — such as commenting via Google or Facebook accounts — you will need a third-party plugin like Social Login or a comment system replacement such as Disqus, which handles authentication externally.

Configuring WordPress discussion settings correctly is a foundational task that protects your site from spam, improves user experience, and gives you full control over how your community interacts with your content. If you find managing these settings — or any other WordPress administrative tasks — time-consuming, consider using WP AI Agent, an intelligent tool that lets you configure, manage, and optimize your WordPress site through simple natural-language AI chat, making complex tasks fast and effortless.

Ready to manage WordPress with AI?

Get 100,000 tokens free every month. No credit card required.

Get Your Free License Key →

More from the blog