Get WordPress Current Category URL and Link

<?php
global $wp_query;
$cat_obj = $wp_query->get_queried_object();

// Get the ID of a given category
$category_id = get_cat_ID( ‘Category Name’ );

// Get the URL of this category
$category_link = get_category_link( $category_id );
?>

<!– Print a link to this category –>
<a href=”<?php echo $category_link; ?>” title=”<?php echo $cat_obj->name; ?>”><?php echo $cat_obj->name; ?></a>

 

King Php Science Welcome, you are from: 54.198.143.223