wp_list_bookmarks 链接显示函数详解
2009年9月1日
没有评论
今天看了看友情链接 想手动改变下方式,于是熟悉下了wp_list_bookmarks这个函数,这个函数用在Blogroll,是在wordpress2.1版本时启用的,替代了原来的get_links_list() 和 get_links()两个函数,用法:
<?php wp_list_bookmarks("各类参数"); ?>
各类参数用&分开,默认参数列表有:
<?php $default = array(
'orderby' => 'name',
'order' => 'ASC',
'limit' => -1,
'category' => '',
'category_name' => '',
'hide_invisible' => 1,
'show_updated' => 0,
'echo' => 1,
'categorize' => 1,
'title_li' => __('Bookmarks'),
'title_before' => '<h2>',
'title_after' => '</h2>',
'category_orderby' => 'name',
'category_order' => 'ASC',
'class' => 'linkcat',
'category_before' => '<li id="%id" class="%class">',
'category_after' => '</li>'
);
?>
Recent Comments