Quick Online Tips
Home     About     Popular     Photoblog     Themes     Advertise     Shop     Jobs     Contact

Automatically Close Comments in Wordpress After Few Days

October 3rd, 2006
ADVERTISEMENTS

You type a controversial post, you get a flurry of comments and they keep coming as your post is digged, slashdotted … and then after a few days the post is forgotten in the archives to be picked up a year later by an occasional Googler, who decides to leave a comment, that features now in your recent comments in the sidebar and restarts the comment boom on an outdated, not-to-be-discussed now post. Remember many people look at the post date of an actively discussed article after the comment is posted and live and they have no way to change it.

A simple way to do it is to simply turn off comments in an individual post. But doing it to hundreds of posts after a period of time is difficult, especially if you are a popular quick posting blogger.

I found this Auto Shutoff Comments wordpress plugin on the official wordpress codex. It is a raw text code which you paste in any text editor like notepad in Windows and save as autoshutoff.php, then simply upload to your Wordpress plugin folders and activate it. It will autoclose comments after 21 days. I think you can change the number of days it closes by tweaking the 21 value.

// Set $age to the age at which a post should become stale
$age = '21 DAY';

I have no need to use it now, but if you are looking for a simple solution to close off comments after a few days automatically, give it a try.

RSS Subscribe RSS feed     Bookmark and Share



2 Responses to “Automatically Close Comments in Wordpress After Few Days”

  1. Sarit says:

    I like the way you presented the plugin, telling a possible situation.
    Thanks for recommending.

  2. Brad says:

    I love how 3 years after posting this article, it is still open to comments. Oh the irony…

Leave a Reply

  • Subscribe free daily email newsletter Why?
  • RSS   Feed readers   Add to Google Reader or Homepage   Twitter
writeWrite a guest article - Showcase your site to our active community of bloggers, technology experts, and geeks. Now read 100+ guest articles
Jobs
Jobs on SEO | Blogging | SEM | Marketing | Software | More...
Jobs in Google | Yahoo | Microsoft | Adobe | Ebay | Cisco | Intel
Post a job - only $50 for 30 days! | 8 more reasons

Must Buy Software