WordPress: Function Reference/get category link:修訂間差異
來自站長百科
? |
|||
第19行: | 第19行: | ||
== 相關(guān)的 == | == 相關(guān)的 == | ||
{{Tag Category Tags}} | |||
{{PHP Function Tag Footer}} |
2008年9月27日 (六) 15:04的最新版本
描述[ ]
為一個特定的類別ID返回正確的url。
這是博客文章的一個類別id,而不是鏈接。
使用不存在的ID會返回一個鏈接,鏈接到母目錄
例子: http://yoursite.com/baseurl/archives/category/
用法[ ]
<a href="
%%%<?php echo get_category_link($cat);?>%%%">類別 名</a>
參數(shù)[ ]
相關(guān)的[ ]
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,