msgbartop
同一天地间,同一网络下,P9′Blog与您共享今日互联网→WWW.P9.NET.CN
msgbarbottom

wordpress随机日志的调用代码

WordPress 调用随机日志

WordPress 调用随机日志

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:

Reader's Comments

  1. |

    正在寻找这样的代码,不喜欢用插件

Leave a Comment

You must be logged in to post a comment.