<?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: WordPress theme files processing order</title>
	<atom:link href="http://sltaylor.co.uk/blog/wordpress-theme-files-processing-order/feed/" rel="self" type="application/rss+xml" />
	<link>http://sltaylor.co.uk/blog/wordpress-theme-files-processing-order/</link>
	<description>Freelance WordPress developer in London - XHTML, CSS &#38; design</description>
	<lastBuildDate>Wed, 19 Oct 2011 15:15:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: JeffM</title>
		<link>http://sltaylor.co.uk/blog/wordpress-theme-files-processing-order/#comment-2386</link>
		<dc:creator>JeffM</dc:creator>
		<pubDate>Sun, 08 Nov 2009 17:12:23 +0000</pubDate>
		<guid isPermaLink="false">http://sltaylor.co.uk/?p=160#comment-2386</guid>
		<description>Steve:

OK, I see where you&#039;re coming from.

It&#039;s a given that if you rely on archive.php as your catch-all template, you&#039;re bound to write a lot of conditional logic.

How&#039;s about some more specific templates, so WP will have made at least one decision for you?

Personally, I try to limit my use of hooks to situations where they&#039;re the only way to do the job in hand. There is an overhead, after all.

And by using a globally-accessible function rather than a constant, I&#039;ve abstracted somewhat, and I have future options that don&#039;t involve trawling  all the code to modify references to constants.

Just a suggestion ;)</description>
		<content:encoded><![CDATA[<p>Steve:</p>
<p>OK, I see where you&#8217;re coming from.</p>
<p>It&#8217;s a given that if you rely on archive.php as your catch-all template, you&#8217;re bound to write a lot of conditional logic.</p>
<p>How&#8217;s about some more specific templates, so WP will have made at least one decision for you?</p>
<p>Personally, I try to limit my use of hooks to situations where they&#8217;re the only way to do the job in hand. There is an overhead, after all.</p>
<p>And by using a globally-accessible function rather than a constant, I&#8217;ve abstracted somewhat, and I have future options that don&#8217;t involve trawling  all the code to modify references to constants.</p>
<p>Just a suggestion ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Taylor</title>
		<link>http://sltaylor.co.uk/blog/wordpress-theme-files-processing-order/#comment-2384</link>
		<dc:creator>Steve Taylor</dc:creator>
		<pubDate>Sun, 08 Nov 2009 13:55:07 +0000</pubDate>
		<guid isPermaLink="false">http://sltaylor.co.uk/?p=160#comment-2384</guid>
		<description>Thanks Jeff - having absorbed all my programming knowledge via ColdFusion rather than a &quot;proper&quot; language, there&#039;s a lot of basics I only slowly pick up on. Without knowing what I&#039;m after I&#039;ve nearly got to &quot;static&quot; variables a few times, but never nailed it.

I&#039;m pretty happy with constants at the moment, but I&#039;ll bear the getter / static technique in mind for when it works better.</description>
		<content:encoded><![CDATA[<p>Thanks Jeff &#8211; having absorbed all my programming knowledge via ColdFusion rather than a &#8220;proper&#8221; language, there&#8217;s a lot of basics I only slowly pick up on. Without knowing what I&#8217;m after I&#8217;ve nearly got to &#8220;static&#8221; variables a few times, but never nailed it.</p>
<p>I&#8217;m pretty happy with constants at the moment, but I&#8217;ll bear the getter / static technique in mind for when it works better.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JeffM</title>
		<link>http://sltaylor.co.uk/blog/wordpress-theme-files-processing-order/#comment-2383</link>
		<dc:creator>JeffM</dc:creator>
		<pubDate>Sun, 08 Nov 2009 10:49:37 +0000</pubDate>
		<guid isPermaLink="false">http://sltaylor.co.uk/?p=160#comment-2383</guid>
		<description>Steve:

Have you considered a static variable in a getter function in functions.php?

First time you call the getter from within the title tag, the getter gets the title, storing it one time as a static.

Next call to the getter (from wherever) returns the same. Avoids gunking up the global space.</description>
		<content:encoded><![CDATA[<p>Steve:</p>
<p>Have you considered a static variable in a getter function in functions.php?</p>
<p>First time you call the getter from within the title tag, the getter gets the title, storing it one time as a static.</p>
<p>Next call to the getter (from wherever) returns the same. Avoids gunking up the global space.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  sltaylor.co.uk/blog/wordpress-theme-files-processing-order/feed/ ) in 0.22835 seconds, on Feb 4th, 2012 at 3:01 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 4th, 2012 at 4:01 am UTC -->
