Typecho调用最新文章

在需要调用的地方添加

<?php
$this->widget('Widget_Contents_Post_Recent','pageSize=10')->to($recent);
if($recent->have()):
while($recent->next()):
?>

<li><a href="<?php $recent->permalink();?>"><?php $recent->title();?></a></li>

<?php endwhile; endif;?>

已发布

分类

作者:

标签

评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注