Title: Help with Auto-Close Comments plugin
Last modified: August 18, 2016

---

# Help with Auto-Close Comments plugin

 *  [solipsist](https://wordpress.org/support/users/solipsist/)
 * (@solipsist)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/help-with-auto-close-comments-plugin/)
 * Hello. I am using the Auto-Close Comments plugin to automatically close comments
   in posts after 7 days. I edited the plugin to change it to 4 days, and ever since
   I did that, it has been been acting very strangely!! It seems to close each post
   now that is older than 1 day old.
 * I have tried activating and deactivating, deleting and re-uploading the file,
   using the previous file, etc, and it just keeps acting stranger.
 * Here is what I think is the relevant code. Can anyone explain what might be going
   on? Thanks!
 * ` // Set $age to the age at which a post should become stale
    $age = '7 DAY';
 *  $date = $wpdb->get_var("
    SELECT DATE_ADD(DATE_SUB(CURDATE(), INTERVAL $age),
   INTERVAL 1 DAY) ");

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/help-with-auto-close-comments-plugin/#post-196230)
 * Did you get the plugin from the WP Wiki or the Codex? The version on the Codex
   is the latest version and the only version compatible with WP v1.5.
 *  Thread Starter [solipsist](https://wordpress.org/support/users/solipsist/)
 * (@solipsist)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/help-with-auto-close-comments-plugin/#post-196231)
 * I believe I got it some time ago from the Codex. I’ve been using it without any
   problems [until tonight] for a few months. I’ll do a fresh install from the Codex
   version though, and see how that goes…
 *  Thread Starter [solipsist](https://wordpress.org/support/users/solipsist/)
 * (@solipsist)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/help-with-auto-close-comments-plugin/#post-196232)
 * Thanks for the info, but that didn’t work. All my posts older than 1 day are 
   still closed. I’m confused!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Help with Auto-Close Comments plugin’ is closed to new replies.

## Tags

 * [auto](https://wordpress.org/support/topic-tag/auto/)
 * [close](https://wordpress.org/support/topic-tag/close/)

 * 3 replies
 * 2 participants
 * Last reply from: [solipsist](https://wordpress.org/support/users/solipsist/)
 * Last activity: [21 years, 1 month ago](https://wordpress.org/support/topic/help-with-auto-close-comments-plugin/#post-196232)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
