Click on Category name, take me to its Category Archive Page

Im organizing lists using Categories. I need to be able to click on the Category Title and have it take me to the Categorie's archive page. Im using custom metaboxes and post types.

Yes I know its showing to Cat names, I was testing things out,,, here is the PHP im using....

// get all the categories from the database
$cats = get_categories();

// loop through the categries
foreach ($cats as $cat) {
// setup the cateogory ID
$cat_id= $cat->term_id;
// Make a header for the cateogry

echo '<h2>'.$cat->name.'</h2>';

// create a custom wordpress query
// start the wordpress loop!
$args = array(
'post_type' => 'findadoctor'
); $args = array(
'post_type' => 'docforms'
echo '<a href="';
echo '"><h2>';
single_cat_title();echo '</h2>';
echo '';

echo '<p>';
$query = new WP_Query($args);

if (have_posts()) : while (have_posts()) : the_post();

echo '<a href="';
echo '"><h4>';
echo '</h4>';
echo '';
$text_small = get_post_meta( $post->ID, '_cmb_phonenumber', true ); echo '</i>';
echo '<i class="fa fa-phone">';
$text_small = get_post_meta( $post->ID, '_cmb_phonenumber', true ); echo '</i>';
echo $text_small;
echo '</p>';

<?php endwhile; endif; // done our wordpress loop. Will start again for each category ?>
<?php } // done the foreach statement ?></div>