Typecho 根据TAG调用相关文章

No Reply , Posted in 代码 on April 16, 2014

Typecho根据TAG调用相关文章代码:

<?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>

标签: tag, 相关文章