<?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: Display WP Post Category without link</title>
	<atom:link href="http://www.tacticaltechnique.com/wordpress/post-category-without-link/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tacticaltechnique.com/wordpress/post-category-without-link/</link>
	<description>Web development with Corey Salzano</description>
	<lastBuildDate>Fri, 03 Feb 2012 02:45:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Luka Savic</title>
		<link>http://www.tacticaltechnique.com/wordpress/post-category-without-link/#comment-73924</link>
		<dc:creator>Luka Savic</dc:creator>
		<pubDate>Sun, 18 Dec 2011 20:44:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.tacticaltechnique.com/?p=364#comment-73924</guid>
		<description>Thanks for this article it saved me some time. I also created simple function that allows using separators( like commas...). Just paste this function in your functions.php and call it in your theme.

function the_cat_name($separate = &quot;, &quot;) {
	global $post;
	$cat = get_the_category($post-&gt;ID);
	$count_cat = count($cat);
	$current_cat_num = 1;
	foreach($cat as $c) {
		$separator = $current_cat_num != $count_cat ? $separate : &quot;&quot;;
		echo $c-&gt;cat_name . $separator;
		$current_cat_num++;
	}
}

I hope this block of code will help someone :)</description>
		<content:encoded><![CDATA[<p>Thanks for this article it saved me some time. I also created simple function that allows using separators( like commas&#8230;). Just paste this function in your functions.php and call it in your theme.</p>
<p>function the_cat_name($separate = &#8220;, &#8220;) {<br />
	global $post;<br />
	$cat = get_the_category($post-&gt;ID);<br />
	$count_cat = count($cat);<br />
	$current_cat_num = 1;<br />
	foreach($cat as $c) {<br />
		$separator = $current_cat_num != $count_cat ? $separate : &#8220;&#8221;;<br />
		echo $c-&gt;cat_name . $separator;<br />
		$current_cat_num++;<br />
	}<br />
}</p>
<p>I hope this block of code will help someone :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karen</title>
		<link>http://www.tacticaltechnique.com/wordpress/post-category-without-link/#comment-73673</link>
		<dc:creator>Karen</dc:creator>
		<pubDate>Mon, 12 Dec 2011 13:58:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.tacticaltechnique.com/?p=364#comment-73673</guid>
		<description>I am using your Twitter plug-in as a widget in my sidebar and I would like to style the output. I can open the CSS stylesheet you have included, but I am not able to make any modifications.

I am wondering if there is a problem with this, or perhaps I am doing something wrong.

Thanks!
Karen</description>
		<content:encoded><![CDATA[<p>I am using your Twitter plug-in as a widget in my sidebar and I would like to style the output. I can open the CSS stylesheet you have included, but I am not able to make any modifications.</p>
<p>I am wondering if there is a problem with this, or perhaps I am doing something wrong.</p>
<p>Thanks!<br />
Karen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.tacticaltechnique.com/wordpress/post-category-without-link/#comment-73655</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 12 Dec 2011 03:01:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.tacticaltechnique.com/?p=364#comment-73655</guid>
		<description>Ok I tried it a used this code and it was nice!</description>
		<content:encoded><![CDATA[<p>Ok I tried it a used this code and it was nice!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.tacticaltechnique.com/wordpress/post-category-without-link/#comment-55521</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Thu, 16 Jun 2011 16:42:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.tacticaltechnique.com/?p=364#comment-55521</guid>
		<description>Thanks so much for this.  I searched Google for hours trying to find this solution.  I added a bit of code to it so each category is displayed in a seperate DIV with a grey background.  This makes each category display in its own little box.


                                               Posted in
												&lt;?php
												foreach (get_the_category() as $category){
												echo &quot;&lt;div&gt;&quot;;
												echo $category-&gt;cat_name;
												echo &quot;&lt;/div&gt;&quot;;
												}
												?&gt;
                                  

Thanks again and also to everyone for the helpful comments.</description>
		<content:encoded><![CDATA[<p>Thanks so much for this.  I searched Google for hours trying to find this solution.  I added a bit of code to it so each category is displayed in a seperate DIV with a grey background.  This makes each category display in its own little box.</p>
<p>                                               Posted in<br />
												&lt;?php<br />
												foreach (get_the_category() as $category){<br />
												echo &quot;&lt;div&gt;&quot;;<br />
												echo $category-&gt;cat_name;<br />
												echo &quot;&lt;/div&gt;&quot;;<br />
												}<br />
												?&gt;</p>
<p>Thanks again and also to everyone for the helpful comments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ohana</title>
		<link>http://www.tacticaltechnique.com/wordpress/post-category-without-link/#comment-46264</link>
		<dc:creator>Ohana</dc:creator>
		<pubDate>Fri, 25 Feb 2011 14:45:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.tacticaltechnique.com/?p=364#comment-46264</guid>
		<description>how can i post category of a post?</description>
		<content:encoded><![CDATA[<p>how can i post category of a post?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ohana</title>
		<link>http://www.tacticaltechnique.com/wordpress/post-category-without-link/#comment-46262</link>
		<dc:creator>Ohana</dc:creator>
		<pubDate>Fri, 25 Feb 2011 14:28:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.tacticaltechnique.com/?p=364#comment-46262</guid>
		<description>easy like stealing candy from the baby</description>
		<content:encoded><![CDATA[<p>easy like stealing candy from the baby</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Corey</title>
		<link>http://www.tacticaltechnique.com/wordpress/post-category-without-link/#comment-45424</link>
		<dc:creator>Corey</dc:creator>
		<pubDate>Fri, 18 Feb 2011 13:04:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.tacticaltechnique.com/?p=364#comment-45424</guid>
		<description>Thanks, Victoria. Glad it worked out for you.</description>
		<content:encoded><![CDATA[<p>Thanks, Victoria. Glad it worked out for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victoria</title>
		<link>http://www.tacticaltechnique.com/wordpress/post-category-without-link/#comment-45385</link>
		<dc:creator>Victoria</dc:creator>
		<pubDate>Fri, 18 Feb 2011 06:56:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.tacticaltechnique.com/?p=364#comment-45385</guid>
		<description>That worked great, thank you! :]

Just on a note, I also modified it to show spaces (in case anyone is interested).

&lt;code&gt;
echo &#039;&#160;&#039; . $category-&gt;cat_name . &#039;&#160;&#039;;
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>That worked great, thank you! :]</p>
<p>Just on a note, I also modified it to show spaces (in case anyone is interested).</p>
<p><code><br />
echo '&nbsp;' . $category-&gt;cat_name . '&nbsp;';<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Corey</title>
		<link>http://www.tacticaltechnique.com/wordpress/post-category-without-link/#comment-45333</link>
		<dc:creator>Corey</dc:creator>
		<pubDate>Thu, 17 Feb 2011 21:35:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.tacticaltechnique.com/?p=364#comment-45333</guid>
		<description>Victoria:

I would try something like this: 

&lt;code&gt;
	foreach (get_the_category() as $category){
		echo $category-&gt;cat_name;
	}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Victoria:</p>
<p>I would try something like this: </p>
<p><code><br />
	foreach (get_the_category() as $category){<br />
		echo $category->cat_name;<br />
	}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victoria</title>
		<link>http://www.tacticaltechnique.com/wordpress/post-category-without-link/#comment-45327</link>
		<dc:creator>Victoria</dc:creator>
		<pubDate>Thu, 17 Feb 2011 20:29:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.tacticaltechnique.com/?p=364#comment-45327</guid>
		<description>Yes, I have posts in several categories, but it seems that only one is showing up when I use the above code. http://varriaga.com/artwork/ this page, though I don&#039;t have the code inserted right now, just the standard one.</description>
		<content:encoded><![CDATA[<p>Yes, I have posts in several categories, but it seems that only one is showing up when I use the above code. <a href="http://varriaga.com/artwork/" rel="nofollow">http://varriaga.com/artwork/</a> this page, though I don&#8217;t have the code inserted right now, just the standard one.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

