$d = get_the_category();
$glu = [];
foreach($d as $rst ):
//exclude category name
if($rst->name != 'Sticky'):
$glu[]="<a href="https://wordpress.stackexchange.com/questions/276556/.get_category_link( $rst->cat_ID ).">{$rst->name}</a>";
endif;
endforeach;
//error_log(print_r($glu, true).'/n', 3, WP_CONTENT_DIR.'/debug.log');
echo "These are the categories". implode(', ', $glu);
I’m a beginner. Hope this will help!