wordpress随机日志的调用代码如下:<?php $rand_posts = get_posts(‘numberposts=10&orderby=rand’);
foreach( $rand_posts as $post ) : ?>
<li><a href=”<?php the_permalink(); ?>” title=”<?php the_title(); ?>”><?php the_title(); ?></a></li>
<?php endforeach; ?>
Tags: wp技巧
正在寻找这样的代码,不喜欢用插件