<?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: Get Tags for a Specific Category</title>
	<atom:link href="http://www.joshstauffer.com/wordpress-get-tags-for-a-specific-category/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joshstauffer.com/wordpress-get-tags-for-a-specific-category/</link>
	<description>WordPress, Genesis, &#38; Things I Care About</description>
	<lastBuildDate>Wed, 18 Jan 2012 21:10:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Josh Stauffer</title>
		<link>http://www.joshstauffer.com/wordpress-get-tags-for-a-specific-category/comment-page-1/#comment-2122</link>
		<dc:creator>Josh Stauffer</dc:creator>
		<pubDate>Tue, 19 Jul 2011 14:41:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshstauffer.com/?p=266#comment-2122</guid>
		<description>@Abbey, You will use &lt;code&gt;$thecat&lt;/code&gt; in the query. It would look something like this:

[php]WP_Query( &#039;posts_per_page=-1&amp;category_name=&#039; . $thecat )[/php]</description>
		<content:encoded><![CDATA[<p>@Abbey, You will use <code>$thecat</code> in the query. It would look something like this:</p>
<pre class="brush: php; title: ; notranslate">WP_Query( 'posts_per_page=-1&amp;category_name=' . $thecat )</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abbey</title>
		<link>http://www.joshstauffer.com/wordpress-get-tags-for-a-specific-category/comment-page-1/#comment-2121</link>
		<dc:creator>Abbey</dc:creator>
		<pubDate>Tue, 19 Jul 2011 10:34:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshstauffer.com/?p=266#comment-2121</guid>
		<description>Hi Josh, I have been trying to get this little change to work but I just can&#039;t...I can edit code and figure things out through trial and error but I don&#039;t actually know how to write code so I&#039;m not sure what is wrong. Could you please post an example of the whole code? 

I understand that this assigns the text from the database under category to $thecat but then how do you use that? Basically I want to display the tags per category but only on some categories. The original code works if I add a if in_category check before it but to do it in more than one category means I have to paste that code in over and over for every category. So I am just trying to get the current category and then insert it automatically into new WP_Query(&#039;posts_per_page=-1&amp;category_name=blog&#039;)

I think that&#039;s the right logic anyway lol please correct me if I&#039;m on the wrong track...

Anyway any help you can be would be greatly appreciated. I have successfully wasted about 4 hours on this thus far (why isn&#039;t this native? ugh!). Using Wordpress 3.0</description>
		<content:encoded><![CDATA[<p>Hi Josh, I have been trying to get this little change to work but I just can&#8217;t&#8230;I can edit code and figure things out through trial and error but I don&#8217;t actually know how to write code so I&#8217;m not sure what is wrong. Could you please post an example of the whole code? </p>
<p>I understand that this assigns the text from the database under category to $thecat but then how do you use that? Basically I want to display the tags per category but only on some categories. The original code works if I add a if in_category check before it but to do it in more than one category means I have to paste that code in over and over for every category. So I am just trying to get the current category and then insert it automatically into new WP_Query(&#8216;posts_per_page=-1&amp;category_name=blog&#8217;)</p>
<p>I think that&#8217;s the right logic anyway lol please correct me if I&#8217;m on the wrong track&#8230;</p>
<p>Anyway any help you can be would be greatly appreciated. I have successfully wasted about 4 hours on this thus far (why isn&#8217;t this native? ugh!). Using WordPress 3.0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: raju</title>
		<link>http://www.joshstauffer.com/wordpress-get-tags-for-a-specific-category/comment-page-1/#comment-2118</link>
		<dc:creator>raju</dc:creator>
		<pubDate>Fri, 15 Jul 2011 00:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshstauffer.com/?p=266#comment-2118</guid>
		<description>Thanks for this cool script. I have a long list of tags which makes the page so long. How to get the tags in drop down? 
Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Thanks for this cool script. I have a long list of tags which makes the page so long. How to get the tags in drop down?<br />
Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Stauffer</title>
		<link>http://www.joshstauffer.com/wordpress-get-tags-for-a-specific-category/comment-page-1/#comment-2082</link>
		<dc:creator>Josh Stauffer</dc:creator>
		<pubDate>Thu, 02 Jun 2011 12:45:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshstauffer.com/?p=266#comment-2082</guid>
		<description>Unfortunately, it doesn&#039;t look like it can do what you are asking. Take a look at the &lt;a href=&quot;http://codex.wordpress.org/Template_Tags/wp_tag_cloud&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;wp_tag_cloud()&lt;/code&gt;&lt;/a&gt; function reference to see how this function can be used.</description>
		<content:encoded><![CDATA[<p>Unfortunately, it doesn&#8217;t look like it can do what you are asking. Take a look at the <a href="http://codex.wordpress.org/Template_Tags/wp_tag_cloud" rel="nofollow"><code>wp_tag_cloud()</code></a> function reference to see how this function can be used.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rabin</title>
		<link>http://www.joshstauffer.com/wordpress-get-tags-for-a-specific-category/comment-page-1/#comment-2081</link>
		<dc:creator>Rabin</dc:creator>
		<pubDate>Thu, 02 Jun 2011 10:05:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshstauffer.com/?p=266#comment-2081</guid>
		<description>Josh, sorry to disturb you again...
Can I show the post count next to the tags? like - Photoshop (15 posts)
Currently it shows only when hovering the mouse pointer.</description>
		<content:encoded><![CDATA[<p>Josh, sorry to disturb you again&#8230;<br />
Can I show the post count next to the tags? like &#8211; Photoshop (15 posts)<br />
Currently it shows only when hovering the mouse pointer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rabin</title>
		<link>http://www.joshstauffer.com/wordpress-get-tags-for-a-specific-category/comment-page-1/#comment-2080</link>
		<dc:creator>Rabin</dc:creator>
		<pubDate>Wed, 01 Jun 2011 09:12:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshstauffer.com/?p=266#comment-2080</guid>
		<description>Oops! I missed that. Thank you Josh once again. Now I have the result that I want.</description>
		<content:encoded><![CDATA[<p>Oops! I missed that. Thank you Josh once again. Now I have the result that I want.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Stauffer</title>
		<link>http://www.joshstauffer.com/wordpress-get-tags-for-a-specific-category/comment-page-1/#comment-2079</link>
		<dc:creator>Josh Stauffer</dc:creator>
		<pubDate>Tue, 31 May 2011 23:46:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshstauffer.com/?p=266#comment-2079</guid>
		<description>To limit the number of tags to show, take a look at the &lt;a href=&quot;http://codex.wordpress.org/Template_Tags/wp_tag_cloud#Parameters&quot; rel=&quot;nofollow&quot;&gt;parameters&lt;/a&gt; for &lt;code&gt;wp_tag_cloud()&lt;/code&gt;, specifically the &lt;code&gt;number&lt;/code&gt; parameter.</description>
		<content:encoded><![CDATA[<p>To limit the number of tags to show, take a look at the <a href="http://codex.wordpress.org/Template_Tags/wp_tag_cloud#Parameters" rel="nofollow">parameters</a> for <code>wp_tag_cloud()</code>, specifically the <code>number</code> parameter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rabin</title>
		<link>http://www.joshstauffer.com/wordpress-get-tags-for-a-specific-category/comment-page-1/#comment-2078</link>
		<dc:creator>Rabin</dc:creator>
		<pubDate>Tue, 31 May 2011 22:03:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshstauffer.com/?p=266#comment-2078</guid>
		<description>This is exactly what I needed. Thank you so much Josh.
Is there any way to limit how many tags to show?
I&#039;m using it on my site and I&#039;m having a little problem. I have many (possibly 20-30) tags in some categories and that&#039;s why the tag list is getting too long.
It would be great if you add this feature too.</description>
		<content:encoded><![CDATA[<p>This is exactly what I needed. Thank you so much Josh.<br />
Is there any way to limit how many tags to show?<br />
I&#8217;m using it on my site and I&#8217;m having a little problem. I have many (possibly 20-30) tags in some categories and that&#8217;s why the tag list is getting too long.<br />
It would be great if you add this feature too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Stauffer</title>
		<link>http://www.joshstauffer.com/wordpress-get-tags-for-a-specific-category/comment-page-1/#comment-2045</link>
		<dc:creator>Josh Stauffer</dc:creator>
		<pubDate>Fri, 08 Apr 2011 14:21:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshstauffer.com/?p=266#comment-2045</guid>
		<description>Anita, thanks for making it clear for me. Add this code to the beginning of the code in this tutorial:

&lt;code&gt;if ( is_category() ) {
	$cat = get_category( get_query_var( &#039;cat&#039; ), false );
	$thecat = $cat-&gt;slug;
} else {
	$thecat = &#039;&#039;;
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Anita, thanks for making it clear for me. Add this code to the beginning of the code in this tutorial:</p>
<p><code>if ( is_category() ) {<br />
	$cat = get_category( get_query_var( 'cat' ), false );<br />
	$thecat = $cat-&gt;slug;<br />
} else {<br />
	$thecat = '';<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anita</title>
		<link>http://www.joshstauffer.com/wordpress-get-tags-for-a-specific-category/comment-page-1/#comment-2044</link>
		<dc:creator>Anita</dc:creator>
		<pubDate>Wed, 06 Apr 2011 18:12:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshstauffer.com/?p=266#comment-2044</guid>
		<description>I think AlexPop meant:
How can the current category be put inside the category_name? Meaning if I am actually in the category &quot;News&quot; how does the code need to look to display the tags in the current category &quot;News&quot;. Making it variable. One code for all categories? Something like: &quot;.$mycatid.&quot;
I&#039;ve tried for hours, but couldnt figure it out. Would be nice, if you could help!</description>
		<content:encoded><![CDATA[<p>I think AlexPop meant:<br />
How can the current category be put inside the category_name? Meaning if I am actually in the category &#8220;News&#8221; how does the code need to look to display the tags in the current category &#8220;News&#8221;. Making it variable. One code for all categories? Something like: &#8220;.$mycatid.&#8221;<br />
I&#8217;ve tried for hours, but couldnt figure it out. Would be nice, if you could help!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

