
最新の投稿を取得して出力する
<ul>
<?php $posts = get_posts('numberposts=5&orderby=post_date&order=DESC'); ?>
<?php foreach($posts as $post): ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul>

<ul>
<?php $posts = get_posts('numberposts=5&orderby=post_date&order=DESC'); ?>
<?php foreach($posts as $post): ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul>