<div class="gmail_quote"><div><br></div><span class="Apple-style-span" style="border-collapse: collapse; ">Anyone know how I can query for a cat_ID off a category_nicename?<div><br></div><div>I'm building a category template and I'm using something like:</div>
<div><br></div><div><div><?php</div><div>if (in_category('CATEGORY-NAME')) {</div><div><span style="white-space: pre; ">        </span>load_template(TEMPLATEPATH . '/category-special.php');</div><div><span style="white-space: pre; ">        </span>}</div>
<div>else { </div><div><span style="white-space: pre; ">        </span>get_header(); </div><div><span style="white-space: pre; ">        </span>load_template(TEMPLATEPATH . '/category-default.php');</div><div>} ?></div><div>
<br></div><div><br></div><div>but I have to use a cat ID and it's necessary I use the category name.</div><div><br></div></div></span><div><span class="Apple-style-span" style="border-collapse: collapse; ">Any help would be appreciated, thanks.</span> </div>
</div>