HOW-TO: Disable DISQUS comments on WordPress pages

DISQUS is pretty neat, but there’s no built-in way to make it obey the WP setting of ‘Allow comments on this post’. After a quick search around, I figured it out.

  • Go to Plugins > Editor
  • Select plugin DISQUS Comment System

Around line 100 (you might need to copy this out into a text editor), add the following line.

if ( 'closed' == $post->comment_status ) { return false; }
 

Thanks to Ted Aronson for the tip, found on this blog.

View Comments to “HOW-TO: Disable DISQUS comments on WordPress pages”

  1. [...] Wonald.com: How to Disable Disqus Comments on WordPress Pages [...]

  2. Thanks, this is a very useful tip for Disqus. I've been looking for this.

  3. stayhere01 says:

    This seems like the most comprehensive blog on this niche

    Regards

  4. NiNJADMiN says:

    Thanks, this is a very useful tip for Disqus. I've been looking for this. and this would seem affective. This seems like the most comprehensive blog on this niche

  5. max191 says:

    Your blog is very interesting. I would like to tell that I have been looking for such information and finally got it. Thanks a lot.
    regards
    charcoal grill

  6. bazphone says:

    I just bookmarked this for my future referance.

    Thanks
    mark
    ______________________________________________
    aion kina | aion kina

  7. nileshbabu says:

    this is helpful! thx!

  8. MacPress says:

    great share, thank for post, very useful for blogger

  9. thanks for the info, appreciate you sharing it with us. have bookmarked the site and will be back

  10. this would seem affective. This seems like the most comprehensive blog on this niche

  11. Jennifer Wilson says:

    Worked like a charm. I've also been looking for a solution to this. Thank you for sharing.

  12. Thanks for the hack. I wish they'd just include this as a standard feature.

  13. I've also been looking for a solution to this. Thank you for sharing.

  14. rockymeet says:

    This is really good to see articles in this topic…
    Students must work as part time..anti keylogger It will improve their kwledge as well as their confident…

  15. Mike Greco says:

    SUCCESS!!! Input the code given on line 106, just like Jack says!

  16. thanks for your suggestion

  17. It worked for me on line 105. They should really build this into the plugin! I hope it doesn't break on the next upgrade…

  18. andytraub says:

    ADD TO LINE 106 ABOVE – IF( 'DRAFT' == …..

    Thanks…

  19. Mens Suit says:

    thanks for posting it. it will really help bloggers like me.

  20. Anonymous says:

    Glad I could help. Have a wicked great Friday.

blog comments powered by Disqus