cat_ID; $category_id = $categories[1]->cat_ID; //echo $parent_category_id; Category ID ?>