Quick Online Tips
Home     About     Popular     Cool     Blogging     Downloads     How-to     WP-Themes     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.

Liked it? Subscribe feed and keep reading our latest articles for free.
Share:  Digg   Delicious   Stumbleupon   Twitter   Email to friend

Related Posts

  1. Google Shares Close All Time High on Nasdaq
  2. Separate Trackbacks, Style Comments in WordPress 2.7
  3. Moderate Wordpress Comments Live on Your Desktop
  4. 5 WordPress Plugins to Skyrocket Your Blog Comments
  5. Import Blogger Posts & Comments to Wordpress Easily



One Response 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.

Leave a Reply

writeWrite a guest article - Showcase your site to our active community of bloggers, technology experts, geeks and internet marketers. Read guest articles

Site Hosted by KnownHost.

Fully managed VPS Hosting