Compdigitec Labs

« | Home | »

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:

  1. 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.
  2. Your blog is not set to enable commenting. Enable “Allow people to post comments on new articles” under Settings->Discussion.
  3. 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 | 9 Comments »

9 Responses to “Debugging comments on old posts in WordPress”

  1. vegus666 Says:
    July 29th, 2025 at 21:32

    … [Trackback]

    […] Find More Information here on that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]

  2. Alexander Debelov Says:
    August 1st, 2025 at 06:17

    … [Trackback]

    […] Read More here on that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]

  3. Debelov Says:
    August 1st, 2025 at 10:33

    … [Trackback]

    […] Here you can find 35161 more Information on that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]

  4. hiso23 Says:
    August 6th, 2025 at 22:03

    … [Trackback]

    […] Find More to that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]

  5. ทัวร์ลาว Says:
    August 8th, 2025 at 20:52

    … [Trackback]

    […] Info to that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]

  6. escort kibris Says:
    August 17th, 2025 at 20:52

    … [Trackback]

    […] Find More on that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]

  7. Pregonagropecuario tips and tricks for beginners Says:
    August 19th, 2025 at 01:08

    … [Trackback]

    […] Information on that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]

  8. essentials Says:
    August 28th, 2025 at 21:08

    … [Trackback]

    […] Read More Information here on that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]

  9. index Says:
    September 5th, 2025 at 05:29

    … [Trackback]

    […] Find More to that Topic: compdigitec.com/labs/2011/03/07/debugging-comments-on-old-posts-in-wordpress/ […]

Comments