WordPress

Remove Comment Form in WordPress Single Post

0
WordPress

Method 1: Using the WordPress dashboard

  1. Go to Posts > All Posts.
  2. Click on the title of the post where you want to remove the comment form.
  3. Under the Discussion section, uncheck the Allow comments box.
  4. Click the Update button.

Method 2: Editing the post template

  1. Open the post template file for the post where you want to remove the comment form in a text editor.
  2. Locate the following code:
PHP
<?php if ( comments_open() || get_comments_number() ) : ?>
  <?php comments_template(); ?>
<?php endif; ?>
  1. Delete the entire code block.
  2. Save the file and upload it back to your WordPress installation.

Method 3: Using a WordPress plugin

There are also a number of WordPress plugins that can be used to remove the comment form. One popular plugin is called Disable Comments.

To use this plugin:

  1. Install and activate the plugin.
  2. Go to Settings > Disable Comments.
  3. Select the post types where you want to disable comments.
  4. Click the Save Changes button.

Once you have followed one of the above methods, the comment form will be removed from the single post.

Please note that removing the comment form will prevent users from commenting on the post. If you are unsure whether or not to remove the comment form, you may want to consult with a WordPress developer.

Get Post Page URL in WordPress

Previous article

White Screen of Death in WP-Admin

Next article

You may also like

Comments

Leave a reply

Your email address will not be published. Required fields are marked *

More in WordPress