<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>N - DESIGNS &#124; &#187; Wordpress Category</title>
	<atom:link href="http://www.nazcarpine.com/tag/wordpress-category/feed" rel="self" type="application/rss+xml" />
	<link>http://www.nazcarpine.com</link>
	<description>Website design, graphics design, CSS, SEO guild</description>
	<lastBuildDate>Sat, 17 Jul 2010 17:06:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>[ WordPress ] Adding a Category Title &amp; Description</title>
		<link>http://www.nazcarpine.com/2009/11/wordpress-adding-a-category-title-description</link>
		<comments>http://www.nazcarpine.com/2009/11/wordpress-adding-a-category-title-description#comments</comments>
		<pubDate>Thu, 05 Nov 2009 11:45:51 +0000</pubDate>
		<dc:creator>Nazcar Pine</dc:creator>
				<category><![CDATA[Site Updates]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Wordpress Category]]></category>
		<category><![CDATA[Wordpress Support]]></category>

		<guid isPermaLink="false">http://www.nazcarpine.com/?p=2394</guid>
		<description><![CDATA[Wordpress Support: How to add a Category Title and Description in the Category template of your Wordpress Blog. Here's a simple tutorial on how to add Category Title and Description.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.nazcarpine.com/uploads/category0101.png" alt="category0101" title="category0101" width="400" height="100" class="aligncenter size-full wp-image-2434" /></p>
<h4>How to add a Category Title in your WordPress Blog:</h4>
<p>&nbsp;</p>
<p>It&#8217;s been a month since I open the section &#8220;Coding Support&#8221; and glad that I am receiving a lot of queries directly to my inbox using this <a target="_blank"  href="http://www.nazcarpine.com/#coding-support">form</a>. And the most popular question is about their &#8216;Category Templates&#8217;. Here are the sample queries.</p>
<p>&nbsp;</p>
<p>Questions via <a  target="_blank" href="http://www.nazcarpine.com/#coding-support">nazcarpine.com/#coding-support</a>:</p>
<p>&nbsp;</p>
<blockquote><p>
I have this category.php file in my WordPress theme, when they click certain category, the list of post under this category will be listed but the category title does not show up. How will I add the category title in my Category template?
</p></blockquote>
<p>&nbsp;</p>
<p>Here&#8217;s a quick solution for your query:
<p>&nbsp;</p>
<ol>
<li>Open the category.php of your template blog-url/wp-admin/theme-editor.php </li>
<li>Find the code (or similar):<br />
 <pre><code>&lt;?php if (have_posts()) : ?&gt;&lt;?php while (have_posts()) : the_post(); ?&gt;
</code></pre></li>
<p><em>This is the start of the post loop.</em></p>
<p>&nbsp;</p>
<li>Add the following code BEFORE the mentioned code above:</li>
<p><pre><code>
Category: &lt;?php single_cat_title(); ?&gt;
</code></pre>
</ol>
<p>&nbsp;</p>
<p> <div style="clear:both; height:10px;"></div>
<div style="float: left; margin:  0 9px;" > <script type="text/javascript"><!--
google_ad_client = "pub-7531736995998132";
/* 180x150, avatar-like */
google_ad_slot = "1883353682";
google_ad_width = 180;
google_ad_height = 150;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script> </div>  DONE! The process above will display the category name above the posts under the said category. If you want to display the category name in your sidebar, header or any desired place in your template. You can do it so. </p>
<p>&nbsp;</p>
<p>You can also tweak the style of this line by adding heading tags between the given code: <code>&lt;h1&gt;, &lt;h2&gt;, &lt;h3&gt;, &lt;h4&gt;, &lt;strong&gt;, &lt;div&gt; and so on</code></p>
<p>&nbsp;</p>
<p>Sample Output:<br />
<pre><code>
&lt;h1&gt;Category: &lt;?php single_cat_title(); ?&gt;&lt;/h1&gt;
</code></pre></p>
<p>&nbsp;</p>
<h4>How to add a Category Title &amp; Description in your WordPress Blog</h4>
<blockquote><p>
How to add Category Name and its description in my WordPress category template when my visitors are viewing the post under Category mode? </p></blockquote>
<p>&nbsp;</p>
<p>If you want the Category description to be displayed, here&#8217;s the piece of code you will need.<br />
<pre><code>
&lt;?php echo category_description(); ?&gt;
</code></pre></p>
<p>&nbsp;</p>
<p>You can paste this code below the title as discussed above.<br />
<pre><code>
&lt;h1&gt;Category: &lt;?php single_cat_title(); ?&gt;&lt;/h1&gt;
&lt;?php echo category_description(); ?&gt;
</code></pre></p>
<p>&nbsp;</p>
<p>This code will display the Category name and the category description. </p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.nazcarpine.com/2009/11/wordpress-adding-a-category-title-description/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
