WordPress - Theme Options Page with Category List
I am trying to create an options page for my theme, where on the options page there is a dropdown list that displays all of the category names, with the option value as the ID number of the category, so that on the dropdown itself, it displays all of the category names, but then when you select your category, and echo this in the frontend, it echos the categories ID.

The code I have at the moment displays the list of category names, but also echos the name onto the frontend.  I  have tried to modify it for the ID number, but I've had no luck. 

My current code:

    $categories = get_categories('hide_empty=0&orderby=name');
    $wp_cats = array();
    foreach ($categories as $category_list ) {
           $wp_cats[$category_list->cat_ID] = $category_list->cat_name;
    }
    array_unshift($wp_cats, "Choose a category");
    
    global $options;
    $options = array (
              array(  "name" => "Select Featured Category",
    			"desc" => "Choose a category from the list",
    			"id" => $shortname."_categories",
    			"type" => "select",
    			"options" => $wp_cats,
    			"std" => ""),
    			
    	array(	"type" => "close")
    	
    );

So just to summarize, on the options page, it needs to display the category names in the dropdown, but on the frontend it should echo the category's ID number.
WordPress - Theme Options Page with Category List
===

I am trying to create an options page for my theme, where on the options page there is a dropdown list that displays all of the category names, with the option value as the ID number of the category, so that on the dropdown itself, it displays all of the category names, but then when you select your category, and echo this in the frontend, it echos the categories ID.

The code I have at the moment displays the list of category names, but also echos the name onto the frontend.  I  have tried to modify it for the ID number, but I've had no luck. 

My current code:

    $categories = get_categories('hide_empty=0&orderby=name');
    $wp_cats = array();
    foreach ($categories as $category_list ) {
           $wp_cats[$category_list->cat_ID] = $category_list->cat_name;
    }
    array_unshift($wp_cats, "Choose a category");
    
    global $options;
    $options = array (
              array(  "name" => "Select Featured Category",
    			"desc" => "Choose a category from the list",
    			"id" => $shortname."_categories",
    			"type" => "select",
    			"options" => $wp_cats,
    			"std" => ""),
    			
    	array(	"type" => "close")
    	
    );

So just to summarize, on the options page, it needs to display the category names in the dropdown, but on the frontend it should echo the category's ID number.