<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>The Disqus Blog - Latest Comments in Turning off commenting on a single blog entry?</title><link>http://disqus.disqus.com/</link><description>The Official Disqus Blog</description><atom:link href="https://disqus.disqus.com/turning_off_commenting_on_a_single_blog_entry/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 17 Aug 2009 20:11:51 -0000</lastBuildDate><item><title>Re: Turning off commenting on a single blog entry?</title><link>https://disqus.com/home/discussion/disqus/turning_off_commenting_on_a_single_blog_entry/#comment-14986902</link><description>&lt;p&gt;You don't say?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">obscurelyfamous</dc:creator><pubDate>Mon, 17 Aug 2009 20:11:51 -0000</pubDate></item><item><title>Re: Turning off commenting on a single blog entry?</title><link>https://disqus.com/home/discussion/disqus/turning_off_commenting_on_a_single_blog_entry/#comment-14985110</link><description>&lt;p&gt;I am so sorry to hear that.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">obscurelyfamous</dc:creator><pubDate>Mon, 17 Aug 2009 19:25:36 -0000</pubDate></item><item><title>Re: Turning off commenting on a single blog entry?</title><link>https://disqus.com/home/discussion/disqus/turning_off_commenting_on_a_single_blog_entry/#comment-14984980</link><description>&lt;p&gt;...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Mon, 17 Aug 2009 19:21:26 -0000</pubDate></item><item><title>Re: Turning off commenting on a single blog entry?</title><link>https://disqus.com/home/discussion/disqus/turning_off_commenting_on_a_single_blog_entry/#comment-14375479</link><description>&lt;p&gt;Hey Jake, this works. Email me at &lt;a href="mailto:daniel@disqus.com" rel="nofollow noopener" target="_blank" title="mailto:daniel@disqus.com"&gt;daniel@disqus.com&lt;/a&gt; for personal help. We're phasing out these forums because they don't suit our support process well.&lt;br&gt;&lt;br&gt;Thanks for being patient.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">obscurelyfamous</dc:creator><pubDate>Thu, 06 Aug 2009 15:17:38 -0000</pubDate></item><item><title>Re: Turning off commenting on a single blog entry?</title><link>https://disqus.com/home/discussion/disqus/turning_off_commenting_on_a_single_blog_entry/#comment-13992501</link><description>&lt;p&gt;Hack it like Shiner suggests and it works like a dream.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">JFord</dc:creator><pubDate>Wed, 05 Aug 2009 14:54:07 -0000</pubDate></item><item><title>Re: Turning off commenting on a single blog entry?</title><link>https://disqus.com/home/discussion/disqus/turning_off_commenting_on_a_single_blog_entry/#comment-13881231</link><description>&lt;p&gt;I'm STILL looking for this .... is it REALLY not fixed yet? This is getting to be silly, guy.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jake</dc:creator><pubDate>Tue, 04 Aug 2009 11:02:08 -0000</pubDate></item><item><title>Re: Turning off commenting on a single blog entry?</title><link>https://disqus.com/home/discussion/disqus/turning_off_commenting_on_a_single_blog_entry/#comment-13101628</link><description>&lt;p&gt;Shinerweb,&lt;/p&gt;&lt;p&gt;You are an American hero.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Dugan</dc:creator><pubDate>Wed, 22 Jul 2009 05:17:47 -0000</pubDate></item><item><title>Re: Turning off commenting on a single blog entry?</title><link>https://disqus.com/home/discussion/disqus/turning_off_commenting_on_a_single_blog_entry/#comment-9849805</link><description>&lt;p&gt;Shinerweb,  thanks for the hack this worked perfectly for a new contact me page&lt;/p&gt;&lt;p&gt;Funny thing is that old pages that had comments disabled before Disqus was installed had no issues and were not displaying the disqus comment box.!!?!?! Bizzare&lt;/p&gt;&lt;p&gt;Seems a fairly funadamental thing for the disqus plug-in,  you've even given them the line they need to add in,  can't be that difficult really.&lt;/p&gt;&lt;p&gt;Thanks again&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Virtualpro</dc:creator><pubDate>Sun, 24 May 2009 04:48:27 -0000</pubDate></item><item><title>Re: Turning off commenting on a single blog entry?</title><link>https://disqus.com/home/discussion/disqus/turning_off_commenting_on_a_single_blog_entry/#comment-8774147</link><description>&lt;p&gt;Your hack. :) Sorry for the confusion. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bob Torres</dc:creator><pubDate>Tue, 28 Apr 2009 09:49:06 -0000</pubDate></item><item><title>Re: Turning off commenting on a single blog entry?</title><link>https://disqus.com/home/discussion/disqus/turning_off_commenting_on_a_single_blog_entry/#comment-8768088</link><description>&lt;p&gt;Bob...&lt;/p&gt;&lt;p&gt;Do you mean 'my hack' or their latest release.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Wright</dc:creator><pubDate>Tue, 28 Apr 2009 03:59:00 -0000</pubDate></item><item><title>Re: Turning off commenting on a single blog entry?</title><link>https://disqus.com/home/discussion/disqus/turning_off_commenting_on_a_single_blog_entry/#comment-8737023</link><description>&lt;p&gt;Thank you for this. It works perfectly. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bob Torres</dc:creator><pubDate>Mon, 27 Apr 2009 12:15:39 -0000</pubDate></item><item><title>Re: Turning off commenting on a single blog entry?</title><link>https://disqus.com/home/discussion/disqus/turning_off_commenting_on_a_single_blog_entry/#comment-8684316</link><description>&lt;p&gt;Just installed the latest WP Plugin module and it still doesn't obey is_single and is_page.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Wright</dc:creator><pubDate>Sat, 25 Apr 2009 09:52:22 -0000</pubDate></item><item><title>Re: Turning off commenting on a single blog entry?</title><link>https://disqus.com/home/discussion/disqus/turning_off_commenting_on_a_single_blog_entry/#comment-7156651</link><description>&lt;p&gt;It seems like it should work to check for the WordPress post's comment status if you don't mind it not displaying existing Disqus comments that may have been left.&lt;/p&gt;&lt;p&gt;is_single and is_page are descripted here: &lt;a href="http://codex.wordpress.org/Conditional_Tags" rel="nofollow noopener" target="_blank" title="http://codex.wordpress.org/Conditional_Tags"&gt;http://codex.wordpress.org/...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jason</dc:creator><pubDate>Thu, 12 Mar 2009 19:56:17 -0000</pubDate></item><item><title>Re: Turning off commenting on a single blog entry?</title><link>https://disqus.com/home/discussion/disqus/turning_off_commenting_on_a_single_blog_entry/#comment-7155620</link><description>&lt;p&gt;Is that link correct above? That takes me to a list of my own comments...&lt;/p&gt;&lt;p&gt;EDIT: Ah, now I see what you were suggesting... Ouch. Not a very clean way of doing it...&lt;/p&gt;&lt;p&gt;And did you see my 'fix' below...&lt;br&gt;Works for me..&lt;/p&gt;&lt;p&gt;Chris&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Wright</dc:creator><pubDate>Thu, 12 Mar 2009 19:10:18 -0000</pubDate></item><item><title>Re: Turning off commenting on a single blog entry?</title><link>https://disqus.com/home/discussion/disqus/turning_off_commenting_on_a_single_blog_entry/#comment-7154841</link><description>&lt;p&gt;Yikes.&lt;/p&gt;&lt;p&gt;That's a bit surprising... as it seems like that's an extremely core part of comments.&lt;/p&gt;&lt;p&gt;Any idea what the ETA looks like? i.e. how big of a deal have you guys assessed this to be, thus what priority are you giving it?&lt;/p&gt;&lt;p&gt;Thanks,&lt;br&gt;Jake&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jake</dc:creator><pubDate>Thu, 12 Mar 2009 18:38:14 -0000</pubDate></item><item><title>Re: Turning off commenting on a single blog entry?</title><link>https://disqus.com/home/discussion/disqus/turning_off_commenting_on_a_single_blog_entry/#comment-7152918</link><description>&lt;p&gt;Ok, I've got it to obey the 'no comment' and 'page' by adding a new line.&lt;/p&gt;&lt;p&gt;Edit the Disqus code, and locate&lt;/p&gt;&lt;p&gt;if ( ! (is_single() || is_page() || $withcomments) ) {&lt;br&gt;return;&lt;br&gt;}&lt;/p&gt;&lt;p&gt;Above the "if ( ! (is_single() || is_page() || $withcomments) ) {", add the following:&lt;/p&gt;&lt;p&gt;if ( ('closed' == $post-&amp;gt;comment_status) || ('page' ==  $post-&amp;gt;post_type)){&lt;br&gt;		return;&lt;br&gt;	}&lt;/p&gt;&lt;p&gt;Save the plugin and it should work.&lt;br&gt;Don't forget to clear any cached pages if you have a cache plugin.&lt;/p&gt;&lt;p&gt;I've not tested this fully yet, but it appears to work.&lt;br&gt;I have a sneaky feeling the code&lt;/p&gt;&lt;p&gt;if ( ! (is_single() || is_page() || $withcomments) ) {&lt;br&gt;return;&lt;br&gt;}&lt;/p&gt;&lt;p&gt;is incorrect, (or cut and paste from a different plugin) as I can't see how it would work. &lt;br&gt;I can't find reference to is_single() and is_page().  It sort of rings a MoveableType bell in my head, but I'm not certain on that.&lt;/p&gt;&lt;p&gt;Try it and see if it works for you.  I will ping Giannii and see what he says.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Wright</dc:creator><pubDate>Thu, 12 Mar 2009 17:20:29 -0000</pubDate></item><item><title>Re: Turning off commenting on a single blog entry?</title><link>https://disqus.com/home/discussion/disqus/turning_off_commenting_on_a_single_blog_entry/#comment-7150090</link><description>&lt;p&gt;I think it 'should do' but there is a bug in the code.&lt;br&gt;I just posted a similar thread in another group, but got the wrong code block in that group.&lt;/p&gt;&lt;p&gt;Within the WordPress plugin code there is a function called dsq_comments_template&lt;/p&gt;&lt;p&gt;I think the following line should be responsible for preventing the Disqus module from displaying on various pages:&lt;/p&gt;&lt;p&gt;if ( ! (is_single() || is_page() || $withcomments) ) {&lt;br&gt;		return;&lt;br&gt;	}&lt;/p&gt;&lt;p&gt;To me, that looks like  it shouldn't print out Disqus,  if it's a single page or has comments disabled.&lt;br&gt;That's the line I believe to be broke, but I haven't had to time to dig deeper to find out exactly why.&lt;br&gt;(I need more coffee if I have to go put my 'logic' head on).&lt;/p&gt;&lt;p&gt;I'll dig deeper, but I think it's a bug 'somewhere' (in Disqus plugin or WP 2.7.1) rather than missing functionality.&lt;/p&gt;&lt;p&gt;Regards&lt;/p&gt;&lt;p&gt;Chris&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Wright</dc:creator><pubDate>Thu, 12 Mar 2009 15:30:09 -0000</pubDate></item></channel></rss>