Typecho调用随机文章

发布日期 2024-01-04

<?php $this->related(5)->to($relatedPosts); ?>

    <ul>

<?php while ($relatedPosts->next()): ?>

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

<?php endwhile; ?>

    </ul>