<?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: How To Display Category Name And Description on Category Page in Wordpress</title>
	<atom:link href="http://nerdboys.com/2009/10/05/how-to-display-category-name-and-description-on-category-page-in-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://nerdboys.com/2009/10/05/how-to-display-category-name-and-description-on-category-page-in-wordpress/</link>
	<description>Tech tips, news and reviews</description>
	<lastBuildDate>Sat, 04 Feb 2012 15:08:34 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Joe Kelly</title>
		<link>http://nerdboys.com/2009/10/05/how-to-display-category-name-and-description-on-category-page-in-wordpress/comment-page-1/#comment-34124</link>
		<dc:creator>Joe Kelly</dc:creator>
		<pubDate>Wed, 25 Jan 2012 19:48:30 +0000</pubDate>
		<guid isPermaLink="false">http://nerdboys.com/?p=557#comment-34124</guid>
		<description>Hi Neil, see the &lt;a href=&quot;http://www.php.net/manual/en/control-structures.elseif.php&quot; rel=&quot;nofollow&quot;&gt;elseif page&lt;/a&gt; in the PHP manual. 

Basically you need something like:
if (is_category()) {
 // do category stuff
} elseif (is_tag()) {
 // do tag stuff
}

Hope that helps!</description>
		<content:encoded><![CDATA[<p>Hi Neil, see the <a href="http://www.php.net/manual/en/control-structures.elseif.php" rel="nofollow">elseif page</a> in the PHP manual. </p>
<p>Basically you need something like:<br />
if (is_category()) {<br />
 // do category stuff<br />
} elseif (is_tag()) {<br />
 // do tag stuff<br />
}</p>
<p>Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: neil</title>
		<link>http://nerdboys.com/2009/10/05/how-to-display-category-name-and-description-on-category-page-in-wordpress/comment-page-1/#comment-33777</link>
		<dc:creator>neil</dc:creator>
		<pubDate>Fri, 20 Jan 2012 23:23:59 +0000</pubDate>
		<guid isPermaLink="false">http://nerdboys.com/?p=557#comment-33777</guid>
		<description>Thanks Joe, sorry what I meant was to have both, so if the page is a cat. page the original code will function but if it&#039;s a tag page the substitute code will function instead. I had already tried the substitution you suggested tacked on to the end of the original code but I guess it needs some kind of OR syntax. I don&#039;t speak php unfortunately!</description>
		<content:encoded><![CDATA[<p>Thanks Joe, sorry what I meant was to have both, so if the page is a cat. page the original code will function but if it&#8217;s a tag page the substitute code will function instead. I had already tried the substitution you suggested tacked on to the end of the original code but I guess it needs some kind of OR syntax. I don&#8217;t speak php unfortunately!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Kelly</title>
		<link>http://nerdboys.com/2009/10/05/how-to-display-category-name-and-description-on-category-page-in-wordpress/comment-page-1/#comment-33716</link>
		<dc:creator>Joe Kelly</dc:creator>
		<pubDate>Fri, 20 Jan 2012 02:39:21 +0000</pubDate>
		<guid isPermaLink="false">http://nerdboys.com/?p=557#comment-33716</guid>
		<description>Hi Neil. If haven&#039;t tested this yet but off the top of my head, try making these substitutions in the code:

is_category() --&gt; is_tag()
single_cat_title() --&gt; single_tag_title()
category_description() --&gt; tag_description()

Let me know if that works.</description>
		<content:encoded><![CDATA[<p>Hi Neil. If haven&#8217;t tested this yet but off the top of my head, try making these substitutions in the code:</p>
<p>is_category() &#8211;> is_tag()<br />
single_cat_title() &#8211;> single_tag_title()<br />
category_description() &#8211;> tag_description()</p>
<p>Let me know if that works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: neil</title>
		<link>http://nerdboys.com/2009/10/05/how-to-display-category-name-and-description-on-category-page-in-wordpress/comment-page-1/#comment-33711</link>
		<dc:creator>neil</dc:creator>
		<pubDate>Fri, 20 Jan 2012 01:04:50 +0000</pubDate>
		<guid isPermaLink="false">http://nerdboys.com/?p=557#comment-33711</guid>
		<description>This is really useful. Is there a way to add to this so that if a tag is selected  so a list of posts for a tag is displayed, the tag title can be displayed instead of a category title?</description>
		<content:encoded><![CDATA[<p>This is really useful. Is there a way to add to this so that if a tag is selected  so a list of posts for a tag is displayed, the tag title can be displayed instead of a category title?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

