WordPress 中文文档
Function Reference/get category link
From WordPress Chinese
目录 |
[编辑]
Description
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/
[编辑]
Usage
%%% <a href="<?php echo get_category_link($cat);?>">category name</a> %%%
[编辑]
Parameters
[编辑]
