Support » Fixing WordPress » turn category name into a hyperlink

  • Hi. I am using this to show category name, what should it be to be hyperlink to the category as well, not merely a raw text?

    <?php $cat_id = get_cat_id($featured_category); $category = get_cat_name($cat_id); echo $category; ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘turn category name into a hyperlink’ is closed to new replies.