get_category_link

CATEGORY TAG

What It Does

Gathers the path (URL) for the specified category numerical ID.

Example

<a href=”<?php echo get_category_link(15);?>”>My Category</a>

The above example will create a hyperlink titled “My Category” that links to category number 15. When clicked, all the posts that reside in category number 15 will be displayed.