I can only put 1 category in this line of code $category_id = get_cat_ID( ‘Fruits’ );

Is it possible to have multiple categories? What I want is that when I click Go Back on fruits I will go back to an overview with only fruits; and when I click Go Back on vegetables I will go back to an overview with only vegetables?