[WORDPRESS] – How to enable Comments on old Posts?

November 28, 2016

This is not a very easy one.

WordPress doesn’t provide a native way to massive update all the posts and enable the comments even on old posts. This happened to us when we wanted to have Disqus available on all our posts. The only solution is to run a SQL Query on the Database and update the column ‘comment_status’ to ‘open’.

Code:

UPDATE wp_posts SET comment_status = "open" ;

This will make the comments enabled on all the posts, if you have specific ones you don’t want to have them enabled, just go to the post and disable them individually.