Wordpress 随机显示10条友情链接的代码:
<?php get_links(-1, ‘<li>‘, ‘</li>‘,0,0, ‘rand‘, 0, 0, 10, 0); ?>
解释:get_links 这个函数其中第6个参数“rand”是设置显示方式:随机;第9个参数是设置显示连接的个数,我设的是10。
Tags: 代码
谢谢,来过。
有点用处,从谷歌来的
Name (required)
Mail (will not be published) (required)
Website
谢谢,来过。
有点用处,从谷歌来的