Do not want to display random category. Want to exclude a few or make post show only the category I want [closed]

You can use this code in your functions.php to hide the TopBar category.

function the_category_filter($thelist,$separator=" ") {
    if(!defined('WP_ADMIN')) {
        //list the category names to exclude
        $exclude = array('TopBar');
        $cats = explode($separator,$thelist);
        $newlist = array();
        foreach($cats as $cat) {
            $catname = trim(strip_tags($cat));
            if(!in_array($catname,$exclude))
                $newlist[] = $cat;
        }
        return implode($separator,$newlist);
    } else
        return $thelist;
}
add_filter('the_category','the_category_filter',10,2);