<?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: Create multiple single page templates by category in WordPress</title>
	<atom:link href="http://www.mikemeisner.com/notebook/create-multiple-single-page-templates-in-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mikemeisner.com/notebook/create-multiple-single-page-templates-in-wordpress/</link>
	<description>Web analytics and inbound marketing expert</description>
	<lastBuildDate>Wed, 27 Jul 2011 07:45:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Zakir</title>
		<link>http://www.mikemeisner.com/notebook/create-multiple-single-page-templates-in-wordpress/#comment-34</link>
		<dc:creator>Zakir</dc:creator>
		<pubDate>Sat, 18 Jun 2011 16:11:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikemeisner.com/?p=305#comment-34</guid>
		<description>doesn&#039;t work in 3.0.1

the following works for me , i just copied into single.php.









</description>
		<content:encoded><![CDATA[<p>doesn&#8217;t work in 3.0.1</p>
<p>the following works for me , i just copied into single.php.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.mikemeisner.com/notebook/create-multiple-single-page-templates-in-wordpress/#comment-33</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 06 May 2011 01:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikemeisner.com/?p=305#comment-33</guid>
		<description>Glad it could be of some use to you Brian. :)</description>
		<content:encoded><![CDATA[<p>Glad it could be of some use to you Brian. <img src='http://www.mikemeisner.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan</title>
		<link>http://www.mikemeisner.com/notebook/create-multiple-single-page-templates-in-wordpress/#comment-32</link>
		<dc:creator>Bryan</dc:creator>
		<pubDate>Sun, 24 Apr 2011 22:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikemeisner.com/?p=305#comment-32</guid>
		<description>One more try, with added spaces:
&lt;code&gt;
 post ;
if ( in_category(&#039;blog&#039;) ) {
include(TEMPLATEPATH . &#039;/blogsingle.php&#039;); }
 elseif ( in_category(&#039;events&#039;) ) {
include(TEMPLATEPATH . &#039;/eventssingle.php&#039;); 
}  
else {
include(TEMPLATEPATH . &#039;/single1.php&#039;);
} ?&gt;

&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>One more try, with added spaces:<br />
<code><br />
 post ;<br />
if ( in_category('blog') ) {<br />
include(TEMPLATEPATH . '/blogsingle.php'); }<br />
 elseif ( in_category('events') ) {<br />
include(TEMPLATEPATH . '/eventssingle.php');<br />
}<br />
else {<br />
include(TEMPLATEPATH . '/single1.php');<br />
} ?&gt;</p>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan</title>
		<link>http://www.mikemeisner.com/notebook/create-multiple-single-page-templates-in-wordpress/#comment-31</link>
		<dc:creator>Bryan</dc:creator>
		<pubDate>Sun, 24 Apr 2011 22:25:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikemeisner.com/?p=305#comment-31</guid>
		<description>This is fantastic.  I had to change it a little to get it working with my project in wordpress 3.0.  I doubt the code will post, but:

&lt;code&gt;
post;
if ( in_category(&#039;blog&#039;) ) {
include(TEMPLATEPATH . &#039;/blogsingle.php&#039;); }
 elseif ( in_category(&#039;events&#039;) ) {
include(TEMPLATEPATH . &#039;/eventssingle.php&#039;); 
}  
else {
include(TEMPLATEPATH . &#039;/single1.php&#039;);
} ?&gt;
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>This is fantastic.  I had to change it a little to get it working with my project in wordpress 3.0.  I doubt the code will post, but:</p>
<p><code><br />
post;<br />
if ( in_category('blog') ) {<br />
include(TEMPLATEPATH . '/blogsingle.php'); }<br />
 elseif ( in_category('events') ) {<br />
include(TEMPLATEPATH . '/eventssingle.php');<br />
}<br />
else {<br />
include(TEMPLATEPATH . '/single1.php');<br />
} ?&gt;<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.mikemeisner.com/notebook/create-multiple-single-page-templates-in-wordpress/#comment-30</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sat, 23 Apr 2011 05:07:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikemeisner.com/?p=305#comment-30</guid>
		<description>I haven&#039;t seen this problem. What version WP are you using?</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t seen this problem. What version WP are you using?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kayla</title>
		<link>http://www.mikemeisner.com/notebook/create-multiple-single-page-templates-in-wordpress/#comment-29</link>
		<dc:creator>Kayla</dc:creator>
		<pubDate>Sat, 23 Apr 2011 04:36:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikemeisner.com/?p=305#comment-29</guid>
		<description>This doesn&#039;t work for one reason: The one single pages cannot load the comments. It can show a form to add comments, but there is no way to load comments for that post. I am doing the same thing using my own code, and have been trying to find a solution for it. You didn&#039;t find one did you? Another method I saw was simply swapping style sheet, but this won&#039;t work for me because the websites are so different.</description>
		<content:encoded><![CDATA[<p>This doesn&#8217;t work for one reason: The one single pages cannot load the comments. It can show a form to add comments, but there is no way to load comments for that post. I am doing the same thing using my own code, and have been trying to find a solution for it. You didn&#8217;t find one did you? Another method I saw was simply swapping style sheet, but this won&#8217;t work for me because the websites are so different.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hugo</title>
		<link>http://www.mikemeisner.com/notebook/create-multiple-single-page-templates-in-wordpress/#comment-28</link>
		<dc:creator>Hugo</dc:creator>
		<pubDate>Fri, 17 Dec 2010 16:59:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikemeisner.com/?p=305#comment-28</guid>
		<description>Great! Save my day! :D Thanks!</description>
		<content:encoded><![CDATA[<p>Great! Save my day! <img src='http://www.mikemeisner.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Williamson</title>
		<link>http://www.mikemeisner.com/notebook/create-multiple-single-page-templates-in-wordpress/#comment-27</link>
		<dc:creator>Paul Williamson</dc:creator>
		<pubDate>Wed, 15 Dec 2010 10:49:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikemeisner.com/?p=305#comment-27</guid>
		<description>Hi Guys,

I&#039;m having a bit of a problem with this. I&#039;m routing posts by category to two different single files; single-profile.php and single-minutes.php. 

Problem is the first one works fine (so in theory the routing code in single.php is good) but the other returns a 404 error. 

Any thoughts on where to look? The obvious one is that there is a problem in the single-minutes.php file but i&#039;ve kept the code real basic and even stripped out the loop and just put in some static content to test but it always returns a 404!

cheers</description>
		<content:encoded><![CDATA[<p>Hi Guys,</p>
<p>I&#8217;m having a bit of a problem with this. I&#8217;m routing posts by category to two different single files; single-profile.php and single-minutes.php. </p>
<p>Problem is the first one works fine (so in theory the routing code in single.php is good) but the other returns a 404 error. </p>
<p>Any thoughts on where to look? The obvious one is that there is a problem in the single-minutes.php file but i&#8217;ve kept the code real basic and even stripped out the loop and just put in some static content to test but it always returns a 404!</p>
<p>cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.mikemeisner.com/notebook/create-multiple-single-page-templates-in-wordpress/#comment-26</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 09 Aug 2010 15:37:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikemeisner.com/?p=305#comment-26</guid>
		<description>Hi Lana

Glad you found it helpful. I&#039;m not sure I follow what you&#039;re trying to do with multiple comments, or conditional sorts of comments based on the type of template. I have not done something like that but if you have unique code snippets for each it should be a simple matter of inserting it in the proper place inside the loop.</description>
		<content:encoded><![CDATA[<p>Hi Lana</p>
<p>Glad you found it helpful. I&#8217;m not sure I follow what you&#8217;re trying to do with multiple comments, or conditional sorts of comments based on the type of template. I have not done something like that but if you have unique code snippets for each it should be a simple matter of inserting it in the proper place inside the loop.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lana Holy</title>
		<link>http://www.mikemeisner.com/notebook/create-multiple-single-page-templates-in-wordpress/#comment-25</link>
		<dc:creator>Lana Holy</dc:creator>
		<pubDate>Mon, 09 Aug 2010 11:46:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikemeisner.com/?p=305#comment-25</guid>
		<description>Hi Mike, that was very useful!
Do you know how to make this alternative page template use alternative comments and legacy comments php?
My site has 2 types of entries and I want to be able to manipulate comments differently.
Thanks for the great post!
Lana</description>
		<content:encoded><![CDATA[<p>Hi Mike, that was very useful!<br />
Do you know how to make this alternative page template use alternative comments and legacy comments php?<br />
My site has 2 types of entries and I want to be able to manipulate comments differently.<br />
Thanks for the great post!<br />
Lana</p>
]]></content:encoded>
	</item>
</channel>
</rss>

