WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've modified my website quite a bit and now looks almost as I desire. I've set all the posts to be commentable in Settings/Discussions but it seems that this imput is not saved and new posts by authors are not commentable. Everytime, I need to "quick edit" the new post and mark the |_|Allow Comments field as selected |x|. This takes me a lot of time and I wonder if there's a way to have a function to make all the new posts as commentable as, just like I said, it seems not possible to choose it as option in Settings/Discussions.


share|improve this question
Something is broken if your global comments are not being saved. Does it work when using a standard theme (twentysomething)? – vancoder Mar 27 '13 at 16:37
You could try adding add_filter('comments_open', '__return_true'); in your functions.php file. – birgire Mar 27 '13 at 16:37
Birgire, you're correct! Do you want to add it as an answer so that I can vote for it? Thanks again! – user27309 Mar 27 '13 at 17:51
up vote 1 down vote accepted

A common method to keep all the posts open for comments, is to add this line into the file functions.php in the current theme directory :

add_filter('comments_open', '__return_true');

where __return_true is just a core function that always returns true.

ps: since this seems to be helpful, regarding to the problem described by @user27309, it's better to have the comment solution, added as an answer ;-)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.