久久精品水蜜桃av综合天堂,久久精品丝袜高跟鞋,精品国产肉丝袜久久,国产一区二区三区色噜噜,黑人video粗暴亚裔

WordPress: Function Reference/get category link:修訂間差異

來自站長(zhǎng)百科
跳轉(zhuǎn)至: 導(dǎo)航、? 搜索
無編輯摘要
?
(未顯示同一用戶的5個(gè)中間版本)
第1行: 第1行:
== Description ==
== 描述 ==
== 描述 ==
Returns the correct url for a given Category ID.


為一個(gè)特定的類別ID返回正確的url。
為一個(gè)特定的類別ID返回正確的url。
This is a category id of blog posts, not links.


這是博客文章的一個(gè)類別id,而不是鏈接。
這是博客文章的一個(gè)類別id,而不是鏈接。
Using a nonexistent Category ID will return a link to the parent directory


使用不存在的ID會(huì)返回一個(gè)鏈接,鏈接到母目錄
使用不存在的ID會(huì)返回一個(gè)鏈接,鏈接到母目錄
eg: http://yoursite.com/baseurl/archives/category/


例子: http://yoursite.com/baseurl/archives/category/
例子: http://yoursite.com/baseurl/archives/category/


== Usage ==
== 用法 ==
== 用法 ==
<code><a href="</code>%%%<?php echo get_category_link($cat);?>%%%<code>">category name</a></code>


<code><a href="</code>%%%<?php echo get_category_link($cat);?>%%%<code>">類別 名</a></code>
<code><a href="</code>%%%<?php echo get_category_link($cat);?>%%%<code>">類別 名</a></code>


== Parameters ==
== 參數(shù) ==
== 參數(shù) ==
{{Parameter|$category_id|integer|The category ID whose link will be retrieved.}}


{{Parameter|$category_id|integer|鏈接能夠重新找回的類別ID。}}
{{Parameter|$category_id|integer|鏈接能夠重新找回的類別ID。}}


== Related ==


== 相關(guān)的 ==
{{Tag Category Tags}}
{{Tag Category Tags}}


{{PHP Function Tag Footer}}
{{PHP Function Tag Footer}}
[[WordPress:Category:Functions]]
{{Copyedit}}
== 相關(guān)的 ==
{{標(biāo)簽 類別 標(biāo)簽}}
{{PHP 函數(shù) 標(biāo)簽 頁底文字}}
[[WordPress:Category:Functions|類別:函數(shù)]]
{{Copyedit}}

2008年9月27日 (六) 15:04的最新版本

描述[ ]

為一個(gè)特定的類別ID返回正確的url。

這是博客文章的一個(gè)類別id,而不是鏈接。

使用不存在的ID會(huì)返回一個(gè)鏈接,鏈接到母目錄

例子: 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,

模板:PHP Function Tag Footer