Support » Plugins and Hacks » Hacks » How to Show Category URL on post page?
5 years, 8 months ago
I want to echo the category url. example: http://www.sitename.com/category
I don’t want to use the “the_category” codex. I would like to only output the url. Can someone please help me with this….
foreach( get_the_category() as $cat ) echo get_category_link( $cat->term_id );
if you have more than one category in the post, you will need to add formatting, or line breaks, or….