调整blogroll的显示

调整blogroll的显示

Filed under: IT |  

好不容易把blogroll给调试出来了,可是只显示名字,感觉好苍白,还是加上描述好看些

起先使用的是get_links_list();函数,发现这个函数没有现实描述的参数?

还是放弃了,使用wp_get_links()函数吧,这下总算显示描述了,发现不大好看,挤的密密麻麻的,而且中间使用空格分割不大好

修改./wp-includes/deprecated.php文件中的wp_get_links()函数:

? $defaults = array(
? 'category' => -1, 'before' => '',
? 'after' => '<br /><br />
', 'between' => ' - ',
? 'show_images' => true, 'orderby' => 'name',
? 'show_description' => true, 'show_rating' => false,
? 'limit' => -1, 'show_updated' => true,
? 'echo' => true
? );

大家可以看看我的blogroll是不是漂亮很多了呢?^_^


Del.icio.us Google书签 Digg Live Bookmark Technorati Furl Yahoo书签 Facebook 百度搜藏 新浪ViVi 365Key网摘 天极网摘 和讯网摘 博拉网 POCO网摘 添加到饭否 QQ书签 Digbuzz我挖网

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

If you want to leave a feedback to this post or to some other user´s comment, simply fill out the form below.

(required)

(required)