<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: Comments on Pages</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Sun, 19 May 2013 14:35:38 +0000</pubDate>

<item>
<title>stever on "Comments on Pages"</title>
<link>http://themeshaper.com/forums/topic/comments-on-pages#post-17508</link>
<pubDate>Sat, 04 Dec 2010 22:07:47 +0000</pubDate>
<dc:creator>stever</dc:creator>
<guid isPermaLink="false">17508@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi Helga, thank you for your help on this one. Tried both options, the latter one first but that didn't work for me. However the first option worked a treat, no comments. Is this normal to have comments on pages or have I missed something in the Docs?&#60;/p&#62;
&#60;p&#62;Can't thank you enough.&#60;br /&#62;
Steve
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Comments on Pages"</title>
<link>http://themeshaper.com/forums/topic/comments-on-pages#post-17507</link>
<pubDate>Sat, 04 Dec 2010 20:18:06 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">17507@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;doing some more research on my own themes... i discovered you can kill the metabox bubbles for comments on the backend too... via remove_post_type_support&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;/* Remove Comments */
function remove_comments(){
	if(is_page()){
	remove_action(&#38;#39;thematic_comments_template&#38;#39;,&#38;#39;thematic_include_comments&#38;#39;,5);
	}
	remove_post_type_support( &#38;#39;page&#38;#39;, &#38;#39;comments&#38;#39; ); //totally disable comments in backend
}
add_action(&#38;#39;init&#38;#39;,&#38;#39;remove_comments&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;in my first reply i added the action to template_redirect.  i often do that so i can get conditionals to work for is_page_template(), but to use remove_post_type support you have to add it to init
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Comments on Pages"</title>
<link>http://themeshaper.com/forums/topic/comments-on-pages#post-17506</link>
<pubDate>Sat, 04 Dec 2010 19:53:45 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">17506@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;i think this is what you are after:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;/* Remove Comments */
function remove_comments(){
if(is_page()){
	remove_action(&#38;#39;thematic_comments_template&#38;#39;,&#38;#39;thematic_include_comments&#38;#39;,5);
}
}
add_action(&#38;#39;template_redirect&#38;#39;,&#38;#39;remove_comments&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>stever on "Comments on Pages"</title>
<link>http://themeshaper.com/forums/topic/comments-on-pages#post-17505</link>
<pubDate>Sat, 04 Dec 2010 17:47:23 +0000</pubDate>
<dc:creator>stever</dc:creator>
<guid isPermaLink="false">17505@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi Guys, new to Thematic, well done Ian this is a work of art.&#60;/p&#62;
&#60;p&#62;I have 0.9.7.7 Thematic installed, working very well. I can see from the page templates in Thematic they call for the comment template, and hence my child theme pages have comments. All the posts I have seen on the forum have been about page comments going missing, requiring the comment/comment custom field to enable them. In reverse how do I get rid of them for pages only, not posts? &#60;/p&#62;
&#60;p&#62;I can see that I could remove the call for the comments template in my child theme page templates, but is this the correct way to do it? Or have I missed something very simple here? Because that's happened before!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
