Title: Disabling comments on posts based on date
Last modified: August 20, 2016

---

# Disabling comments on posts based on date

 *  Resolved [Edde](https://wordpress.org/support/users/edde/)
 * (@edde)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/disabling-comments-on-posts-based-on-date/)
 * I’m looking for a WordPress Plugin that allows me to disable comments on posts
   published before a certain date.
 * Basically it needs to do something like the line below, where the date should
   be something I can set.
 * `UPDATE wp_posts SET comment_status = 'closed' WHERE post_date < '2011-01-01'
   AND post_status = 'publish';`
 * I found the above query @ [http://lrtm.nl/onv5OW](http://lrtm.nl/onv5OW) (and
   here [http://lrtm.nl/q8Ye4a](http://lrtm.nl/q8Ye4a)), but is it available as 
   a plugin?
 * Thanks!
    Edde

Viewing 1 replies (of 1 total)

 *  Thread Starter [Edde](https://wordpress.org/support/users/edde/)
 * (@edde)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/disabling-comments-on-posts-based-on-date/#post-2190943)
 * Not exactly what I was look for, but related and nice: [http://wordpress.org/extend/plugins/comment-timeout/](http://wordpress.org/extend/plugins/comment-timeout/)

Viewing 1 replies (of 1 total)

The topic ‘Disabling comments on posts based on date’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [Edde](https://wordpress.org/support/users/edde/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/disabling-comments-on-posts-based-on-date/#post-2190943)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
