« Setting up a ProFTPd port-based VirtualHost | Home | Distributing small Java applications (i.e. convert to EXE) »
Debugging comments on old posts in WordPress
By admin | March 7, 2011
Sometimes on a WordPress blog all comment entry points on old blog posts will stop working. This can be caused by a number of problems:
- Posts are set to expire. If you select the option “Automatically close comments on articles older than x days” under Settings->Discussion, then posts will automatically close comments after x days.
- Your blog is not set to enable commenting. Enable “Allow people to post comments on new articles” under Settings->Discussion.
- The specific post is not allowing comments. Edit the post in question and under the “Discussion” section ensure both “Allow comments” and “Allow trackbacks and pingbacks on this page” are both selected.
If the above three steps still do not help, then you can run the following database queries to enable comments globally:
UPDATE wp_posts SET comment_status = REPLACE (comment_status, 'closed', 'open') WHERE post_status = 'publish' AND post_type = 'post';
UPDATE wp_options SET option_value = 0 WHERE option_name = 'close_comments_for_old_posts'
If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!
Topics: PHP | 15 Comments »
March 6th, 2022 at 19:16
… [Trackback]
[…] There you can find 25951 additional Info to that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]
March 23rd, 2022 at 03:13
… [Trackback]
[…] Read More Information here to that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]
May 26th, 2022 at 17:12
… [Trackback]
[…] Find More on that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]
July 15th, 2022 at 09:11
… [Trackback]
[…] Information to that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]
July 27th, 2022 at 19:18
… [Trackback]
[…] Information to that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]
July 27th, 2022 at 21:17
… [Trackback]
[…] Read More Information here to that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]
August 23rd, 2022 at 17:07
… [Trackback]
[…] Read More Info here on that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]
August 24th, 2022 at 20:01
… [Trackback]
[…] There you can find 31123 additional Info on that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]
September 5th, 2022 at 01:34
… [Trackback]
[…] Read More on that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]
September 30th, 2022 at 19:51
… [Trackback]
[…] There you will find 46564 more Info on that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]
October 5th, 2022 at 05:20
… [Trackback]
[…] Find More here to that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]
November 1st, 2022 at 23:42
… [Trackback]
[…] Read More Information here to that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]
November 18th, 2022 at 18:24
… [Trackback]
[…] Read More Information here to that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]
December 4th, 2022 at 16:32
… [Trackback]
[…] Information to that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]
December 22nd, 2022 at 10:53
… [Trackback]
[…] Information to that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]