Display category as link to archive and not in list item
-
I’m trying to display the category as a link to archive.php and not as a list item. The code I have lists the category, but I’m not sure how to link it up to the archive page.
Category: <a href=""><?php $category = get_the_category(); echo $category[0]->cat_name; ?></a>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Display category as link to archive and not in list item’ is closed to new replies.