Table of Contents
Disable comments on old posts in WordPress
Updated May 4th, 2021 at 15:35 BST
You can prevent users from commenting on old WordPress pages and posts as a way to help prevent comment spam.
Log in to your WordPress admin dashboard.
Go to Settings > Discussion
Locate the Other comment settings section
Check the box next to the line stating, "Automatically close comments on articles older than XX days"
On the same line, change the Day setting to the number you prefer
Scroll to the bottom of the page, and click Save Changes.
After making the above changes, users will not be able to comment on any pages or posts after the number of days you specified.