<?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: Get the Category ID in WordPress</title>
	<atom:link href="http://curtishenson.com/get-the-category-id-in-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://curtishenson.com/version7/get-the-category-id-in-wordpress/</link>
	<description>Freelance Web Designer and Wordpress Guru</description>
	<lastBuildDate>Mon, 27 Sep 2010 12:59:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Lewis</title>
		<link>http://curtishenson.com/version7/get-the-category-id-in-wordpress/comment-page-2/#comment-2852</link>
		<dc:creator>Lewis</dc:creator>
		<pubDate>Sun, 19 Sep 2010 00:21:18 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=123#comment-2852</guid>
		<description>TY TY TY!

goodness, why can;t the good chaps at WP just list the cat id on the category page, under posts?

sooo many plugins require it as an input and its so hard to find for a novice!</description>
		<content:encoded><![CDATA[<p>TY TY TY!</p>
<p>goodness, why can;t the good chaps at WP just list the cat id on the category page, under posts?</p>
<p>sooo many plugins require it as an input and its so hard to find for a novice!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reed</title>
		<link>http://curtishenson.com/version7/get-the-category-id-in-wordpress/comment-page-2/#comment-2847</link>
		<dc:creator>Reed</dc:creator>
		<pubDate>Sat, 11 Sep 2010 20:16:56 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=123#comment-2847</guid>
		<description>You made my life easier.</description>
		<content:encoded><![CDATA[<p>You made my life easier.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://curtishenson.com/version7/get-the-category-id-in-wordpress/comment-page-2/#comment-2845</link>
		<dc:creator>David</dc:creator>
		<pubDate>Thu, 09 Sep 2010 02:46:40 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=123#comment-2845</guid>
		<description>Idem. Muchas Gracias!</description>
		<content:encoded><![CDATA[<p>Idem. Muchas Gracias!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Linda Jobs</title>
		<link>http://curtishenson.com/version7/get-the-category-id-in-wordpress/comment-page-2/#comment-2842</link>
		<dc:creator>Linda Jobs</dc:creator>
		<pubDate>Thu, 02 Sep 2010 00:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=123#comment-2842</guid>
		<description>hey hey hey... First of all many many thanks for instantiating this useful topic. You won&#039;t believe how much I was struggling to workout with categories, their titles, links etc.. for a custom WP project. I love it...

Best,
Linda</description>
		<content:encoded><![CDATA[<p>hey hey hey&#8230; First of all many many thanks for instantiating this useful topic. You won&#8217;t believe how much I was struggling to workout with categories, their titles, links etc.. for a custom WP project. I love it&#8230;</p>
<p>Best,<br />
Linda</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Design Saga</title>
		<link>http://curtishenson.com/version7/get-the-category-id-in-wordpress/comment-page-1/#comment-2825</link>
		<dc:creator>Design Saga</dc:creator>
		<pubDate>Sun, 18 Jul 2010 22:33:12 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=123#comment-2825</guid>
		<description>And if anyone is wanting to do the opposite.. 

get_cat_name(&#039;2&#039;);</description>
		<content:encoded><![CDATA[<p>And if anyone is wanting to do the opposite.. </p>
<p>get_cat_name(&#8217;2&#8242;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://curtishenson.com/version7/get-the-category-id-in-wordpress/comment-page-1/#comment-2790</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 06 May 2010 19:46:07 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=123#comment-2790</guid>
		<description>Just to add, you required the category ID then you can also view it by turning off permalinks, refreshing your wp site, noting it down, and then turning permalinks back on. Thought Id mention this just incase anyone was unsure!</description>
		<content:encoded><![CDATA[<p>Just to add, you required the category ID then you can also view it by turning off permalinks, refreshing your wp site, noting it down, and then turning permalinks back on. Thought Id mention this just incase anyone was unsure!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: evocati</title>
		<link>http://curtishenson.com/version7/get-the-category-id-in-wordpress/comment-page-1/#comment-2789</link>
		<dc:creator>evocati</dc:creator>
		<pubDate>Sun, 02 May 2010 18:52:45 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=123#comment-2789</guid>
		<description>thx buddy
in fact i need term_id:
$categories=get_the_category(); 
$tmp=$categories[0];
$cat_id = $tmp-&gt;term_id;
$cat_id can be used (with get_bloginfo(&#039;template_url&#039;)) for custom style
thx again</description>
		<content:encoded><![CDATA[<p>thx buddy<br />
in fact i need term_id:<br />
$categories=get_the_category();<br />
$tmp=$categories[0];<br />
$cat_id = $tmp-&gt;term_id;<br />
$cat_id can be used (with get_bloginfo(&#8216;template_url&#8217;)) for custom style<br />
thx again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Curtis Henson</title>
		<link>http://curtishenson.com/version7/get-the-category-id-in-wordpress/comment-page-1/#comment-2788</link>
		<dc:creator>Curtis Henson</dc:creator>
		<pubDate>Sun, 02 May 2010 17:15:32 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=123#comment-2788</guid>
		<description>&lt;code&gt;$categories = get_the_category();&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><code>$categories = get_the_category();</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: evocati</title>
		<link>http://curtishenson.com/version7/get-the-category-id-in-wordpress/comment-page-1/#comment-2787</link>
		<dc:creator>evocati</dc:creator>
		<pubDate>Sun, 02 May 2010 10:30:32 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=123#comment-2787</guid>
		<description>How can i find category ID of curent post?
I want to make custom background of post page depending of category.
thx</description>
		<content:encoded><![CDATA[<p>How can i find category ID of curent post?<br />
I want to make custom background of post page depending of category.<br />
thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Curtis Henson</title>
		<link>http://curtishenson.com/version7/get-the-category-id-in-wordpress/comment-page-1/#comment-2776</link>
		<dc:creator>Curtis Henson</dc:creator>
		<pubDate>Thu, 22 Apr 2010 16:41:37 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=123#comment-2776</guid>
		<description>If you just want to print out the category ID in the template you can do this:

&lt;code&gt;
$id = get_cat_id(&#039;po-campoi&#039;);
echo $id;
echo $post-&gt;ID;
&lt;/code&gt;

The $post-&gt;ID code may not work for the product ID since I&#039;m not sure how that&#039;s setup. You could try:
&lt;code&gt;print_r($post);&lt;/code&gt;
to see the entire array to find the right key for product_id.</description>
		<content:encoded><![CDATA[<p>If you just want to print out the category ID in the template you can do this:</p>
<p><code><br />
$id = get_cat_id('po-campoi');<br />
echo $id;<br />
echo $post->ID;<br />
</code></p>
<p>The $post->ID code may not work for the product ID since I&#8217;m not sure how that&#8217;s setup. You could try:<br />
<code>print_r($post);</code><br />
to see the entire array to find the right key for product_id.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

