Codex tools: Log in / create account
Contents |
Returns the correct url for a given Category ID.
This is a category id of blog posts, not links.
Using a nonexistent Category ID will return a link to the parent directory
eg: http://yoursite.com/baseurl/archives/category/
<a href="
<?php echo get_category_link($cat);?>
">category name</a>
the_category, the_category_rss, single_cat_title, category_description, wp_dropdown_categories, wp_list_categories, in_category, get_category_parents, get_the_category get_category_link,
This article is marked as in need of editing. You can help Codex by editing it.