<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Advent Calendar- How to disable comments for WordPress pages in any theme</title>
	<atom:link href="http://wpengineer.com/2302/how-to-disable-comments-for-wordpress-pages-in-any-theme/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpengineer.com/2302/how-to-disable-comments-for-wordpress-pages-in-any-theme/</link>
	<description>WordPress News, Hacks, Tips, Tutorials, Plugins and Themes</description>
	<lastBuildDate>Sat, 06 Apr 2013 22:57:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Vic Dinovici</title>
		<link>http://wpengineer.com/2302/how-to-disable-comments-for-wordpress-pages-in-any-theme/#comment-9262</link>
		<dc:creator>Vic Dinovici</dc:creator>
		<pubDate>Thu, 15 Dec 2011 02:12:07 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=2302#comment-9262</guid>
		<description><![CDATA[hehe, this is an useful snippet. Always wondering why WordPress is making possible commenting on pages, kind of dumb. 

Thanks for sharing!]]></description>
		<content:encoded><![CDATA[<p>hehe, this is an useful snippet. Always wondering why WordPress is making possible commenting on pages, kind of dumb. </p>
<p>Thanks for sharing!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ein zweites Adventstürchen &#171; F-LOG-GE</title>
		<link>http://wpengineer.com/2302/how-to-disable-comments-for-wordpress-pages-in-any-theme/#comment-9183</link>
		<dc:creator>Ein zweites Adventstürchen &#171; F-LOG-GE</dc:creator>
		<pubDate>Tue, 06 Dec 2011 08:04:34 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=2302#comment-9183</guid>
		<description><![CDATA[[...] Die Wordpress-Seite wpengineer.com ver&#246;ffentlicht auch wieder einen Adventskalender. Gestern schrieb Frank B&#252;ltge &#252;ber das einfache Update des Wordpress-Core&#8220;. Heute beschreibt Thomas Scholz, wie man global f&#252;r alle Themes Kommentare auf Wordpress-Seiten (Pages) deaktiviert. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Die WordPress-Seite wpengineer.com ver&#246;ffentlicht auch wieder einen Adventskalender. Gestern schrieb Frank B&#252;ltge &#252;ber das einfache Update des WordPress-Core&#8220;. Heute beschreibt Thomas Scholz, wie man global f&#252;r alle Themes Kommentare auf WordPress-Seiten (Pages) deaktiviert. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Advent Calendar- How to disable comments for WordPress pages in any theme &#124; Wordpress Business Tools</title>
		<link>http://wpengineer.com/2302/how-to-disable-comments-for-wordpress-pages-in-any-theme/#comment-9179</link>
		<dc:creator>Advent Calendar- How to disable comments for WordPress pages in any theme &#124; Wordpress Business Tools</dc:creator>
		<pubDate>Mon, 05 Dec 2011 21:22:48 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=2302#comment-9179</guid>
		<description><![CDATA[[...] Advent Calendar- How to disable comments for WordPress pages in any theme    December 5, 2011 &#124; Author staff    Advent Calendar- How to disable comments for WordPress pages in any theme Unfortunately, WordPress doesn&#039;t offer a separate option to leave comments on posts on and turn them off for pages. If your theme calls and you don&#039;t want to break automatic updates, you cannot just remove the function call, because it will be &#8230; Read more on WPengineer.com [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Advent Calendar- How to disable comments for WordPress pages in any theme    December 5, 2011 | Author staff    Advent Calendar- How to disable comments for WordPress pages in any theme Unfortunately, WordPress doesn&#039;t offer a separate option to leave comments on posts on and turn them off for pages. If your theme calls and you don&#039;t want to break automatic updates, you cannot just remove the function call, because it will be &#8230; Read more on WPengineer.com [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: toscho</title>
		<link>http://wpengineer.com/2302/how-to-disable-comments-for-wordpress-pages-in-any-theme/#comment-9150</link>
		<dc:creator>toscho</dc:creator>
		<pubDate>Sat, 03 Dec 2011 04:00:12 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=2302#comment-9150</guid>
		<description><![CDATA[@Rob The index.php in the plugin directory may not exist. In my installations I move this directory to another place usually. And I don’t copy the index.php.
If you have access to your theme just change the page.php.]]></description>
		<content:encoded><![CDATA[<p>@Rob The index.php in the plugin directory may not exist. In my installations I move this directory to another place usually. And I don’t copy the index.php.<br />
If you have access to your theme just change the page.php.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://wpengineer.com/2302/how-to-disable-comments-for-wordpress-pages-in-any-theme/#comment-9147</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Fri, 02 Dec 2011 19:53:41 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=2302#comment-9147</guid>
		<description><![CDATA[Nice one.

To make it work in you functions.php you could use this:

function disable_comments_on_pages( $file ) {
	return is_page() ? WP_PLUGIN_DIR . &quot;/index.php&quot; : $file;
}
add_filter( &#039;comments_template&#039;, &#039;disable_comments_on_pages&#039;, 11 );]]></description>
		<content:encoded><![CDATA[<p>Nice one.</p>
<p>To make it work in you functions.php you could use this:</p>
<p>function disable_comments_on_pages( $file ) {<br />
	return is_page() ? WP_PLUGIN_DIR . "/index.php" : $file;<br />
}<br />
add_filter( 'comments_template', 'disable_comments_on_pages', 11 );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Oeser</title>
		<link>http://wpengineer.com/2302/how-to-disable-comments-for-wordpress-pages-in-any-theme/#comment-9144</link>
		<dc:creator>Michael Oeser</dc:creator>
		<pubDate>Fri, 02 Dec 2011 10:39:55 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=2302#comment-9144</guid>
		<description><![CDATA[My bad. Copy&amp;paste without thinking. Removed the space in front of the lines and now it works like a charm.

Danke!]]></description>
		<content:encoded><![CDATA[<p>My bad. Copy&amp;paste without thinking. Removed the space in front of the lines and now it works like a charm.</p>
<p>Danke!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neolot</title>
		<link>http://wpengineer.com/2302/how-to-disable-comments-for-wordpress-pages-in-any-theme/#comment-9143</link>
		<dc:creator>Neolot</dc:creator>
		<pubDate>Fri, 02 Dec 2011 09:54:42 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=2302#comment-9143</guid>
		<description><![CDATA[Very nice solution, thanks!]]></description>
		<content:encoded><![CDATA[<p>Very nice solution, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: toscho</title>
		<link>http://wpengineer.com/2302/how-to-disable-comments-for-wordpress-pages-in-any-theme/#comment-9142</link>
		<dc:creator>toscho</dc:creator>
		<pubDate>Fri, 02 Dec 2011 09:53:04 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=2302#comment-9142</guid>
		<description><![CDATA[Michael, the critical information is the line number. :)

Could it be an UTF-8 BOM?]]></description>
		<content:encoded><![CDATA[<p>Michael, the critical information is the line number. :)</p>
<p>Could it be an UTF-8 BOM?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Oeser</title>
		<link>http://wpengineer.com/2302/how-to-disable-comments-for-wordpress-pages-in-any-theme/#comment-9141</link>
		<dc:creator>Michael Oeser</dc:creator>
		<pubDate>Fri, 02 Dec 2011 08:59:37 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=2302#comment-9141</guid>
		<description><![CDATA[Nice but I get exactly this error:

Warning: Cannot modify header information - headers already sent by...]]></description>
		<content:encoded><![CDATA[<p>Nice but I get exactly this error:</p>
<p>Warning: Cannot modify header information - headers already sent by...</p>
]]></content:encoded>
	</item>
</channel>
</rss>
