<?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: Displaying single post pages differently in specific categories</title>
	<atom:link href="http://wpgarage.com/tips/displaying-single-post-pages-differently-in-specific-categories/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpgarage.com/tips/displaying-single-post-pages-differently-in-specific-categories/</link>
	<description>wordpress tricks, hacks, and tips</description>
	<lastBuildDate>Thu, 26 Jan 2012 06:40:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: seanjacob</title>
		<link>http://wpgarage.com/tips/displaying-single-post-pages-differently-in-specific-categories/#comment-62246</link>
		<dc:creator>seanjacob</dc:creator>
		<pubDate>Fri, 25 Mar 2011 15:27:29 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/tips/displaying-single-post-pages-differently-in-specific-categories/#comment-62246</guid>
		<description>The second code example is wrong, closing } brackets need to be inserted.</description>
		<content:encoded><![CDATA[<p>The second code example is wrong, closing } brackets need to be inserted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://wpgarage.com/tips/displaying-single-post-pages-differently-in-specific-categories/#comment-62108</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 01 Feb 2011 23:49:26 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/tips/displaying-single-post-pages-differently-in-specific-categories/#comment-62108</guid>
		<description>Just wanted to say thank you for this post, even though it is slightly old. This helped with getting my PHP to display the comments template ONLY for pages that are within a certain category. Worked like a charm!

&lt;?php
$post = $wp_query-&gt;post;
if ( in_category(&#039;16&#039;) )
{
comments_template();;
}
else {
null;
}
?&gt;
</description>
		<content:encoded><![CDATA[<p>Just wanted to say thank you for this post, even though it is slightly old. This helped with getting my PHP to display the comments template ONLY for pages that are within a certain category. Worked like a charm!</p>
<p>&lt;?php<br />
$post = $wp_query-&gt;post;<br />
if ( in_category(&#8217;16&#8242;) )<br />
{<br />
comments_template();;<br />
}<br />
else {<br />
null;<br />
}<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miriam Schwab</title>
		<link>http://wpgarage.com/tips/displaying-single-post-pages-differently-in-specific-categories/#comment-60832</link>
		<dc:creator>Miriam Schwab</dc:creator>
		<pubDate>Thu, 28 Jan 2010 15:58:22 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/tips/displaying-single-post-pages-differently-in-specific-categories/#comment-60832</guid>
		<description>&lt;p&gt;Tommy, that&#039;s exactly what this tutorial teaches you to do: style single post pages differently according to which category they are in. Yes, you can also style complete categories/tags etc. a certain way, but this allows you to style single pages in those categories too.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Tommy, that&#8217;s exactly what this tutorial teaches you to do: style single post pages differently according to which category they are in. Yes, you can also style complete categories/tags etc. a certain way, but this allows you to style single pages in those categories too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tommy</title>
		<link>http://wpgarage.com/tips/displaying-single-post-pages-differently-in-specific-categories/#comment-60831</link>
		<dc:creator>Tommy</dc:creator>
		<pubDate>Thu, 28 Jan 2010 10:11:19 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/tips/displaying-single-post-pages-differently-in-specific-categories/#comment-60831</guid>
		<description>The method can be done with categories, tags, and pages. However I don&#039;t think it can be done with single yet.
Here is a link to the Wordpress Codex which further details hierarchy. Notice with single there is no slug or post # available:
http://codex.wordpress.org/Template_Hierarchy</description>
		<content:encoded><![CDATA[<p>The method can be done with categories, tags, and pages. However I don&#8217;t think it can be done with single yet.<br />
Here is a link to the WordPress Codex which further details hierarchy. Notice with single there is no slug or post # available:<br />
<a href="http://codex.wordpress.org/Template_Hierarchy" rel="nofollow">http://codex.wordpress.org/Template_Hierarchy</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deluxe : The creative practice of Sean Gallagher</title>
		<link>http://wpgarage.com/tips/displaying-single-post-pages-differently-in-specific-categories/#comment-60289</link>
		<dc:creator>Deluxe : The creative practice of Sean Gallagher</dc:creator>
		<pubDate>Fri, 04 Sep 2009 18:06:29 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/tips/displaying-single-post-pages-differently-in-specific-categories/#comment-60289</guid>
		<description>[...] article : tips/displaying-single-post-pages-differently-in-specific-categories goes over some great methods for using the default Single.php file as a way of determining which [...]</description>
		<content:encoded><![CDATA[<p>[...] article : tips/displaying-single-post-pages-differently-in-specific-categories goes over some great methods for using the default Single.php file as a way of determining which [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miriam Schwab</title>
		<link>http://wpgarage.com/tips/displaying-single-post-pages-differently-in-specific-categories/#comment-60280</link>
		<dc:creator>Miriam Schwab</dc:creator>
		<pubDate>Sun, 30 Aug 2009 05:50:47 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/tips/displaying-single-post-pages-differently-in-specific-categories/#comment-60280</guid>
		<description>@Domonic That&#039;s just the name of the header file we were using in this example since we wanted a certain category to display a Hebrew header. It could have been named header-gibberish or anything else. So just replace the name of the header file with whatever you think you&#039;ll name your header file.</description>
		<content:encoded><![CDATA[<p>@Domonic That&#8217;s just the name of the header file we were using in this example since we wanted a certain category to display a Hebrew header. It could have been named header-gibberish or anything else. So just replace the name of the header file with whatever you think you&#8217;ll name your header file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Domonic</title>
		<link>http://wpgarage.com/tips/displaying-single-post-pages-differently-in-specific-categories/#comment-60278</link>
		<dc:creator>Domonic</dc:creator>
		<pubDate>Sat, 29 Aug 2009 12:36:48 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/tips/displaying-single-post-pages-differently-in-specific-categories/#comment-60278</guid>
		<description>I thought i got it right up until you mentioned &#039;header-hebrew&#039; thats gotten me confused...Obviously you mean somoething else, can you explain please?
Thanks</description>
		<content:encoded><![CDATA[<p>I thought i got it right up until you mentioned &#8216;header-hebrew&#8217; thats gotten me confused&#8230;Obviously you mean somoething else, can you explain please?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Soper</title>
		<link>http://wpgarage.com/tips/displaying-single-post-pages-differently-in-specific-categories/#comment-60236</link>
		<dc:creator>Nick Soper</dc:creator>
		<pubDate>Wed, 12 Aug 2009 09:20:13 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/tips/displaying-single-post-pages-differently-in-specific-categories/#comment-60236</guid>
		<description>A super simple way to do this is simply create a new single.php file called single-9.php or single-2.php, the number being the category number of the custom page you want.
(Note this works with category.php too eg. category-8.php)
As this is built into wordpress, performance should be a bit quicker than an if statement in the template.</description>
		<content:encoded><![CDATA[<p>A super simple way to do this is simply create a new single.php file called single-9.php or single-2.php, the number being the category number of the custom page you want.<br />
(Note this works with category.php too eg. category-8.php)<br />
As this is built into wordpress, performance should be a bit quicker than an if statement in the template.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://wpgarage.com/tips/displaying-single-post-pages-differently-in-specific-categories/#comment-60160</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Sun, 19 Jul 2009 18:55:35 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/tips/displaying-single-post-pages-differently-in-specific-categories/#comment-60160</guid>
		<description>It&#039;s a good read, but i am guessing there is a more simple method out there and your article got me thinking...
What it you write a php code that says: if the category is &#039;X&#039; then get stylesheet &quot;X.CSS&quot;?
I think that&#039;s a far more simple method but the thing is i know too little about PHP but i think it is possible.
I need to change my title colors and that&#039;s i was reading this. If nothing esle crops up then i&#039;ll need to use your solution.  :P
 </description>
		<content:encoded><![CDATA[<p>It&#8217;s a good read, but i am guessing there is a more simple method out there and your article got me thinking&#8230;<br />
What it you write a php code that says: if the category is &#8216;X&#8217; then get stylesheet &#8220;X.CSS&#8221;?<br />
I think that&#8217;s a far more simple method but the thing is i know too little about PHP but i think it is possible.<br />
I need to change my title colors and that&#8217;s i was reading this. If nothing esle crops up then i&#8217;ll need to use your solution.  <img src='http://wpgarage.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
 </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Premium Wordpress Themes</title>
		<link>http://wpgarage.com/tips/displaying-single-post-pages-differently-in-specific-categories/#comment-42695</link>
		<dc:creator>Premium Wordpress Themes</dc:creator>
		<pubDate>Tue, 24 Feb 2009 15:59:22 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/tips/displaying-single-post-pages-differently-in-specific-categories/#comment-42695</guid>
		<description>If it weren&#039;t for the comment from Chris Burns I would&#039;ve given up on this - but it works perfectly, thank you very much indeed!</description>
		<content:encoded><![CDATA[<p>If it weren&#8217;t for the comment from Chris Burns I would&#8217;ve given up on this &#8211; but it works perfectly, thank you very much indeed!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

