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 | 6 Comments »

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

  1. Online medicatie kopen zonder recept bij het beste Benu apotheek alternatief in Amsterdam Rotterdam Utrecht Den Haag Eindhoven Groningen Tilburg Almere Breda Nijmegen Noord-Holland Zuid-Holland Noord-Brabant Limburg Zeeland Online medicatie kopen zonder recept bij beste Benu apotheek alternatief Says:
    October 17th, 2023 at 04:35

    … [Trackback]

    […] There you will find 98991 more Info on that Topic: […]

  2. แทงบอลออนไลน์ Says:
    October 23rd, 2023 at 19:39

    … [Trackback]

    […] Find More to that Topic: […]

  3. ทัวร์หลีเป๊ะ Says:
    November 11th, 2023 at 21:42

    … [Trackback]

    […] Read More Info here to that Topic: […]

  4. bonanza178 Says:
    November 12th, 2023 at 11:30

    … [Trackback]

    […] Information to that Topic: […]

  5. 웹툰 다시보기 Says:
    November 13th, 2023 at 20:01

    … [Trackback]

    […] Find More Information here on that Topic: […]

  6. แทงบอล Lsm99 Says:
    December 7th, 2023 at 20:48

    … [Trackback]

    […] Find More here on that Topic: […]