<?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 Wednesday: Thesis Theme Tag Text</title>
	<atom:link href="http://www.davidgagne.net/2009/06/17/wordpress-wednesday-thesis-theme-tag-text/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidgagne.net/2009/06/17/wordpress-wednesday-thesis-theme-tag-text/</link>
	<description>The personal weblog of David Vincent Gagne</description>
	<lastBuildDate>Tue, 07 Feb 2012 18:06:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Thesis Tutorial Compilation</title>
		<link>http://www.davidgagne.net/2009/06/17/wordpress-wednesday-thesis-theme-tag-text/#comment-369561</link>
		<dc:creator>Thesis Tutorial Compilation</dc:creator>
		<pubDate>Mon, 29 Jun 2009 15:56:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidgagne.net/?p=7753#comment-369561</guid>
		<description>[...] Use Thesis to Display Text associated with Tag Author [...]</description>
		<content:encoded><![CDATA[<p>[...] Use Thesis to Display Text associated with Tag Author [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: girliegeek</title>
		<link>http://www.davidgagne.net/2009/06/17/wordpress-wednesday-thesis-theme-tag-text/#comment-369464</link>
		<dc:creator>girliegeek</dc:creator>
		<pubDate>Thu, 18 Jun 2009 07:03:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidgagne.net/?p=7753#comment-369464</guid>
		<description>[...] WordPress Wednesday: Thesis Theme Tag Text [...]</description>
		<content:encoded><![CDATA[<p>[...] WordPress Wednesday: Thesis Theme Tag Text [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kristarella</title>
		<link>http://www.davidgagne.net/2009/06/17/wordpress-wednesday-thesis-theme-tag-text/#comment-369461</link>
		<dc:creator>kristarella</dc:creator>
		<pubDate>Wed, 17 Jun 2009 23:49:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidgagne.net/?p=7753#comment-369461</guid>
		<description>Cool cool. Yeah, I&#039;m really not sure. To be honest I feel like if someone uses Thesis then they can&#039;t be too fussed about PHP requests to the server because the entire thing is massively PHP, more so than previous WP themes. You&#039;re explanation is perfectly reasonable though.</description>
		<content:encoded><![CDATA[<p>Cool cool. Yeah, I&#8217;m really not sure. To be honest I feel like if someone uses Thesis then they can&#8217;t be too fussed about PHP requests to the server because the entire thing is massively PHP, more so than previous WP themes. You&#8217;re explanation is perfectly reasonable though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dvg</title>
		<link>http://www.davidgagne.net/2009/06/17/wordpress-wednesday-thesis-theme-tag-text/#comment-369456</link>
		<dc:creator>dvg</dc:creator>
		<pubDate>Wed, 17 Jun 2009 15:07:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidgagne.net/?p=7753#comment-369456</guid>
		<description>You won&#039;t be bursting &lt;em&gt;my&lt;/em&gt; bubble, Kristarella.

Yes, you could use the &lt;strong&gt;has_tag()&lt;/strong&gt; function instead of the &lt;strong&gt;switch()&lt;/strong&gt; statement.  It&#039;s really a rock and a hard place issue.  If you use the &lt;strong&gt;switch()&lt;/strong&gt; statement like I did, then you&#039;re looping through every tag every time a post is displayed.  If you use the &lt;strong&gt;has_tag()&lt;/strong&gt; function then you have to execute an extra &lt;strong&gt;if()&lt;/strong&gt; for each tag you want to target.  And I&#039;m not 100% certain because I haven&#039;t really read through the entire WordPress core code, but I&#039;m guessing that calling &lt;strong&gt;has_tag()&lt;/strong&gt; for each tag you want to check is -- unless you are only doing it once -- going to require more server resources / database requests.

Using the &lt;strong&gt;switch()&lt;/strong&gt; is a single database query.  Using the &lt;strong&gt;if ( has_tag( &#039; tag&#039; ) )&lt;/strong&gt; method will require a separate query for each tag you want to target.

Now ... I could be wrong about this because &lt;strong&gt;has_tag()&lt;/strong&gt; might simply be checking a post class object which has already done the query, but I still think you&#039;re going to incur a greater processing cost that way.

For a low-traffic blog the difference is probably irrelevant, though.</description>
		<content:encoded><![CDATA[<p>You won&#8217;t be bursting <em>my</em> bubble, Kristarella.</p>
<p>Yes, you could use the <strong>has_tag()</strong> function instead of the <strong>switch()</strong> statement.  It&#8217;s really a rock and a hard place issue.  If you use the <strong>switch()</strong> statement like I did, then you&#8217;re looping through every tag every time a post is displayed.  If you use the <strong>has_tag()</strong> function then you have to execute an extra <strong>if()</strong> for each tag you want to target.  And I&#8217;m not 100% certain because I haven&#8217;t really read through the entire WordPress core code, but I&#8217;m guessing that calling <strong>has_tag()</strong> for each tag you want to check is &#8212; unless you are only doing it once &#8212; going to require more server resources / database requests.</p>
<p>Using the <strong>switch()</strong> is a single database query.  Using the <strong>if ( has_tag( &#8216; tag&#8217; ) )</strong> method will require a separate query for each tag you want to target.</p>
<p>Now &#8230; I could be wrong about this because <strong>has_tag()</strong> might simply be checking a post class object which has already done the query, but I still think you&#8217;re going to incur a greater processing cost that way.</p>
<p>For a low-traffic blog the difference is probably irrelevant, though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kristarella</title>
		<link>http://www.davidgagne.net/2009/06/17/wordpress-wednesday-thesis-theme-tag-text/#comment-369455</link>
		<dc:creator>kristarella</dc:creator>
		<pubDate>Wed, 17 Jun 2009 14:47:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidgagne.net/?p=7753#comment-369455</guid>
		<description>Wow, I am not at all familiar with &lt;code&gt;switch&lt;/code&gt; and &lt;code&gt;case&lt;/code&gt;. I&#039;m sure that will come in handy sometime.

Would I be busting a bubble if I pointed out &lt;a href=&quot;http://codex.wordpress.org/Conditional_Tags#A_Tag_Page&quot; rel=&quot;nofollow&quot;&gt;has_tag()&lt;/a&gt;?</description>
		<content:encoded><![CDATA[<p>Wow, I am not at all familiar with <code>switch</code> and <code>case</code>. I&#8217;m sure that will come in handy sometime.</p>
<p>Would I be busting a bubble if I pointed out <a href="http://codex.wordpress.org/Conditional_Tags#A_Tag_Page" rel="nofollow">has_tag()</a>?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

