How to find the Category ID number in Wordpress ?

Usage

http://www.blogger.com/img/blank.gif

Example

$category_id = get_cat_ID('Category Name');
$q = 'cat=' . $category_id;
query_posts($q);
if (have_posts()) : while (have_posts()) : the_post();

the_content();

endwhile; endif;
?>


Ref