<?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: Creating single post templates in WordPress</title>
	<atom:link href="http://justintadlock.com/archives/2008/12/06/creating-single-post-templates-in-wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://justintadlock.com/archives/2008/12/06/creating-single-post-templates-in-wordpress</link>
	<description>Life, Blogging, and WordPress</description>
	<lastBuildDate>Wed, 17 Mar 2010 18:36:20 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Huroman</title>
		<link>http://justintadlock.com/archives/2008/12/06/creating-single-post-templates-in-wordpress#comment-179994</link>
		<dc:creator>Huroman</dc:creator>
		<pubDate>Wed, 03 Mar 2010 17:42:47 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1202#comment-179994</guid>
		<description>@Desi and others who ask about the white screen/blank page.

It&#039;s easy to fix it. When &quot;function.php&quot; code has been modified occurs some problems whith extra-spaces between the code lines. Just delete that spaces and the Admin will save it as normal.</description>
		<content:encoded><![CDATA[<p>@Desi and others who ask about the white screen/blank page.</p>
<p>It&#8217;s easy to fix it. When &#8220;function.php&#8221; code has been modified occurs some problems whith extra-spaces between the code lines. Just delete that spaces and the Admin will save it as normal.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: a&#124;x</title>
		<link>http://justintadlock.com/archives/2008/12/06/creating-single-post-templates-in-wordpress#comment-177645</link>
		<dc:creator>a&#124;x</dc:creator>
		<pubDate>Thu, 11 Feb 2010 15:31:18 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1202#comment-177645</guid>
		<description>Oh, and I&#039;d love to see a plugin version of this, if you&#039;ve not already made one. I&#039;ve seen a couple of plugins allowing selection of a particular template at the post-authoring stage, but not one that allows custom templates to be used on a per-category basis.</description>
		<content:encoded><![CDATA[<p>Oh, and I&#8217;d love to see a plugin version of this, if you&#8217;ve not already made one. I&#8217;ve seen a couple of plugins allowing selection of a particular template at the post-authoring stage, but not one that allows custom templates to be used on a per-category basis.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: a&#124;x</title>
		<link>http://justintadlock.com/archives/2008/12/06/creating-single-post-templates-in-wordpress#comment-177643</link>
		<dc:creator>a&#124;x</dc:creator>
		<pubDate>Thu, 11 Feb 2010 15:24:32 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1202#comment-177643</guid>
		<description>This looks really useful, thanks for putting it out there.

The use that springs to mind is the scenario I&#039;m trying to implement at the moment- I have a particular category of posts that use custom fields, so I need to have custom templates for displaying the additional meta information for just these particular posts and the archive pages for these posts. Wordpress already seems to have the functionality for custom category templates, but I need to do the same thing at the single-post level, too.</description>
		<content:encoded><![CDATA[<p>This looks really useful, thanks for putting it out there.</p>
<p>The use that springs to mind is the scenario I&#8217;m trying to implement at the moment- I have a particular category of posts that use custom fields, so I need to have custom templates for displaying the additional meta information for just these particular posts and the archive pages for these posts. Wordpress already seems to have the functionality for custom category templates, but I need to do the same thing at the single-post level, too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Duncan</title>
		<link>http://justintadlock.com/archives/2008/12/06/creating-single-post-templates-in-wordpress#comment-176959</link>
		<dc:creator>Duncan</dc:creator>
		<pubDate>Wed, 03 Feb 2010 09:44:41 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1202#comment-176959</guid>
		<description>YAHOOO!!!! It WORK!
I search for ways to show different single templates by author, then find your tutorial, follow it, and it work! Save me a lot of time.
Good job Tadlock.
Thanks you.</description>
		<content:encoded><![CDATA[<p>YAHOOO!!!! It WORK!<br />
I search for ways to show different single templates by author, then find your tutorial, follow it, and it work! Save me a lot of time.<br />
Good job Tadlock.<br />
Thanks you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robbie</title>
		<link>http://justintadlock.com/archives/2008/12/06/creating-single-post-templates-in-wordpress#comment-176484</link>
		<dc:creator>Robbie</dc:creator>
		<pubDate>Fri, 29 Jan 2010 06:37:06 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1202#comment-176484</guid>
		<description>I&#039;m currently using this method on my company&#039;s site.  Thanks!

I want to take things up one level, though, and use different templates for a single post depending on the URL (based on category).

Let&#039;s say the default for each post is: /post/foo.html
And I want to use a different template for the private version, which is: /post/private/foo.html

(It serves up different content using different custom fields.)

I can use redirect rules to control access to the private version.  The trouble is, each post exists in _both_ categories, so it will always use one or the other as the template.  I want to use /private/ only when someone goes to that specific URL.  Under this current setup, Wordpress is serving up every /post/foo.html using the private template because it also happens to be in the private category.

Can I fix this with changes to the functions.php file?

In any case, thanks for all your help.</description>
		<content:encoded><![CDATA[<p>I&#8217;m currently using this method on my company&#8217;s site.  Thanks!</p>
<p>I want to take things up one level, though, and use different templates for a single post depending on the URL (based on category).</p>
<p>Let&#8217;s say the default for each post is: /post/foo.html<br />
And I want to use a different template for the private version, which is: /post/private/foo.html</p>
<p>(It serves up different content using different custom fields.)</p>
<p>I can use redirect rules to control access to the private version.  The trouble is, each post exists in _both_ categories, so it will always use one or the other as the template.  I want to use /private/ only when someone goes to that specific URL.  Under this current setup, Wordpress is serving up every /post/foo.html using the private template because it also happens to be in the private category.</p>
<p>Can I fix this with changes to the functions.php file?</p>
<p>In any case, thanks for all your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benjamin Thomas</title>
		<link>http://justintadlock.com/archives/2008/12/06/creating-single-post-templates-in-wordpress#comment-174852</link>
		<dc:creator>Benjamin Thomas</dc:creator>
		<pubDate>Sat, 16 Jan 2010 11:13:19 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1202#comment-174852</guid>
		<description>Great hack, many thanks for sharing this!</description>
		<content:encoded><![CDATA[<p>Great hack, many thanks for sharing this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marg</title>
		<link>http://justintadlock.com/archives/2008/12/06/creating-single-post-templates-in-wordpress#comment-174181</link>
		<dc:creator>Marg</dc:creator>
		<pubDate>Sat, 09 Jan 2010 18:20:35 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1202#comment-174181</guid>
		<description>Follow up: I thought I had this working, but when I came back to the site a day later I was unable to login. Just got a blank screen of death after entering login data no matter what I did. After a good hour or so of panic I thought to delete the edited functions file and replace it with an original, and voila I could login again.

I&#039;m  wondering what I did wrong. Have you had anyone else report this problem? Looks like I will be doing some reading on the functions file.</description>
		<content:encoded><![CDATA[<p>Follow up: I thought I had this working, but when I came back to the site a day later I was unable to login. Just got a blank screen of death after entering login data no matter what I did. After a good hour or so of panic I thought to delete the edited functions file and replace it with an original, and voila I could login again.</p>
<p>I&#8217;m  wondering what I did wrong. Have you had anyone else report this problem? Looks like I will be doing some reading on the functions file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marg</title>
		<link>http://justintadlock.com/archives/2008/12/06/creating-single-post-templates-in-wordpress#comment-173737</link>
		<dc:creator>Marg</dc:creator>
		<pubDate>Thu, 07 Jan 2010 05:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1202#comment-173737</guid>
		<description>Thanks so much! I&#039;m a Wordpress newb, creating a site for a client with Wordpress as a CMS, not for blogging. Found the plug-in for choosing a single post template, but did not want to rely on the client remembering to choose it when they enter a new post. Your method means they don&#039;t have to think about it.

And I&#039;m not a coder, but I was able to follow your step-by-step directions and get it working a just a few minutes. I found some other instructions elsewhere that seemed like they might be what I need, (http://codex.wordpress.org/Theme_Development#Query-based_Templates), but they did not spell out exactly where to paste the code. I&#039;m sure a lot of people here didn&#039;t need every bit of detail, but I did, so thanks for writing it all out.

Thanks so much for helping me out!</description>
		<content:encoded><![CDATA[<p>Thanks so much! I&#8217;m a Wordpress newb, creating a site for a client with Wordpress as a CMS, not for blogging. Found the plug-in for choosing a single post template, but did not want to rely on the client remembering to choose it when they enter a new post. Your method means they don&#8217;t have to think about it.</p>
<p>And I&#8217;m not a coder, but I was able to follow your step-by-step directions and get it working a just a few minutes. I found some other instructions elsewhere that seemed like they might be what I need, (<a href="http://codex.wordpress.org/Theme_Development#Query-based_Templates" rel="nofollow">http://codex.wordpress.org/Theme_Development#Query-based_Templates</a>), but they did not spell out exactly where to paste the code. I&#8217;m sure a lot of people here didn&#8217;t need every bit of detail, but I did, so thanks for writing it all out.</p>
<p>Thanks so much for helping me out!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stela</title>
		<link>http://justintadlock.com/archives/2008/12/06/creating-single-post-templates-in-wordpress#comment-162120</link>
		<dc:creator>Stela</dc:creator>
		<pubDate>Thu, 12 Nov 2009 13:53:15 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1202#comment-162120</guid>
		<description>:-) works great! It as Exactly what i was looking for. I dislike the usage of plugins and this do a great job!</description>
		<content:encoded><![CDATA[<p> <img src='http://justintadlock.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  works great! It as Exactly what i was looking for. I dislike the usage of plugins and this do a great job!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Visual Rhythm</title>
		<link>http://justintadlock.com/archives/2008/12/06/creating-single-post-templates-in-wordpress#comment-161909</link>
		<dc:creator>Visual Rhythm</dc:creator>
		<pubDate>Wed, 11 Nov 2009 02:11:24 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1202#comment-161909</guid>
		<description>It worked!  Fan-frickin-tastic!!  Thank&#039;s for the useful tip Justin!</description>
		<content:encoded><![CDATA[<p>It worked!  Fan-frickin-tastic!!  Thank&#8217;s for the useful tip Justin!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
