<?php $rand_posts = get_posts('numberposts=5&category=1');foreach($rand_posts as $post) : ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach;?>
numberposts=5 æç« æ°
&category=1 åç±»id
追é®æ¾å°ä»ä¹å°æ¹ï¼é¦é¡µç模æ¿éï¼
追çindex.phpéé¢