WIKI使用導(dǎo)航
站長百科導(dǎo)航
站長專題
- 網(wǎng)站推廣
- 網(wǎng)站程序
- 網(wǎng)站賺錢
- 虛擬主機
- cPanel
- 網(wǎng)址導(dǎo)航專題
- 云計算
- 微博營銷
- 虛擬主機管理系統(tǒng)
- 開放平臺
- WIKI程序與應(yīng)用
- 美國十大主機
WordPress:Template Tags/get bookmarks
來自站長百科
Description[ ]
描述[ ]
This function will be found in WordPress v2.1, it is NOT supported by WordPress v2.0. get_bookmarks() returns an array of bookmarks found in the Administration > Blogroll > Manage Blogroll panel. This Template Tag allows the user to retrieve the bookmark information directly.
這個函數(shù)可以在WordPress2.1版本中找到,WordPress2.0不支持這個函數(shù)。get_bookmarks()返回了一組bookmarks,這組bookmarks是從顯示管理 > 友情鏈接 > 管理友情鏈接面板中找到的。這個[WordPress:Template_Tags|模板標簽]]能夠使用戶直接得到bookmark信息。
Usage[ ]
用法[ ]
%%% <?php get_bookmarks('arguments'); ?> %%%
%%% <?php get_bookmarks('arguments'); ?> %%%
Examples[ ]
Default Usage[ ]
例子[ ]
默認用法[ ]
'orderby' => 'name', 'order' => 'ASC', 'limit' => -1, 'category' => '', 'category_name' => '', 'hide_invisible' => 1, 'show_updated' => 0, 'include' => '', 'exclude' => ''
'orderby' => 'name', 'order' => 'ASC', 'limit' => -1, 'category' => '', 'category_name' => '', 'hide_invisible' => 1, 'show_updated' => 0, 'include' => '', 'exclude' => ''
By default, the usage gets: 默認情況下,用法得到:
- All bookmarks ordered by name, ascending
- 所有的bookmarks根據(jù)名稱,按升序排列
- Bookmarks marked as hidden are not returned.
- 標記為隱藏的Bookmarks不會返回。
- The link_updated_f field (the update time in the form of a timestamp) is not returned.
- The link_updated_f field(以時間戳形式出現(xiàn)的更新時間)不會返回。
Parameters[ ]
參數(shù)[ ]
- orderby
- (string) Value to sort bookmarks on. Defaults to 'name' unless you pass the value of '' (empty), in which case it sets to 'id'. Valid options:
- orderby
- (string)給bookmark分類的參數(shù)。默認為'名稱',除非你驗證通過了參數(shù)'' (空的),在這種情況下,設(shè)置為'id'。有效的選項:
- 'id'
- 'url'
- 'name'
- 'target'
- 'description'
- 'owner' - User who added bookmark through bookmarks Manager.
- 'rating'
- 'updated'
- 'rel' - bookmark relationship (XFN).
- 'notes'
- 'rss'
- 'length' - The length of the bookmark name, shortest to longest.
- 'rand' - Display bookmarks in random order.
- 'id'
- 'url'
- '名稱'
- '目標'
- '描述'
- '用戶' - 通過bookmarks管理器添加bookmark的用戶
- '等級級別'
- '更新的'
- 'rel' - bookmark關(guān)系 (XFN).
- '注意'
- 'rss'
- '長度' - bookmark名稱的長度,從最短到最長。
- 'rand' -以任意的順序顯示bookmarks。
- order
- (string) Sort order, ascending or descending for the orderby parameter. Valid values:
;順序:(string)分類順序,根據(jù)參數(shù)的升序或者降序。有效的參數(shù)值:
- ASC (Default)
- DESC
- ASC (默認)
- DESC
- limit
- (integer) Maximum number of bookmarks to display. Defaults to -1 (all bookmarks).
;限制:(整數(shù))最多顯示的bookmarks的數(shù)目。默認為-1(所有的bookmarks)。
- category
- (string) Comma separated list of bookmark category ID's.
- 類別
- (string)用逗號分開列表上bookmark類別的ID。
- category_name
- (string) Category name of a catgeory of bookmarks to retrieve. Overrides category parameter.
- category_name
- (string)需要返回的bookmark的類別名稱。撤除了類別參數(shù)。
- hide_invisible
- (boolean) TRUE causes only bookmarks with link_visible set to 'Y' to be retrieved.
- hide_invisible
- (boolean)正確的,導(dǎo)致?lián)碛衛(wèi)ink_visible設(shè)置為'Y'的bookmarks返回。
- 1 (True - default)
- 0 (False)
- 1 (正確的 – 默認)
- 0 (錯誤的)
- show_updated
- (boolean) TRUE causes an extra column called "link_category_f" to be inserted into the results, which contains the same value as "link_updated", but in a unix timestamp format. Handy for using PHP date functions on this data.
- show_updated
- (boolean')TRUE導(dǎo)致了一個額外的,稱為"link_category_f"的欄,插入了結(jié)果中,結(jié)果包含了與"link_updated"相同的值,但是是以unix時間戳的格式。在這個數(shù)據(jù)上使用PHP日期函數(shù)非常方便。
- 1 (True)
- 0 (False - default)
- 1 (正確的)
- 0 (錯誤的 – 默認)
- include
- (string) Comma separated list of numeric bookmark IDs to include in the output. For example, 'include=1,3,6' means to return or echo bookmark IDs 1, 3, and 6. If the include string is used, the category, category_name, and exclude parameters are ignored. Defaults to (all Bookmarks).
- 包含
- (string)用逗號分開列表上的bookmark的ID數(shù)字,并且將其包含在輸出中。例如,, '包含=1,3,6'指的是返回或者echo bookmark ID1,3,和6。如果使用了包含字符串,便忽視了類別, category_name, 和 刪除參數(shù)。默認為(所有的Bookmarks)。
- exclude
- (string) Comma separated list of numeric bookmark IDs to exclude. For example, 'exclude=4,12' means that bookmark IDs 4 and 12 will NOT be returned or echoed. Defaults to (exclude nothing).
- 刪除
- (string)刪除列表上用逗號分開的bookmark ID 數(shù)字。例如,'刪除=4,12'指的是bookmark ID 為4和12的bookmark不會返回或者echod。默認為(不刪除任何內(nèi)容)。
Related[ ]