<?php
$information= get_posts( array(
//ここで取得条件を指定する
));
if( $information):
?>
<ul>
<?php
foreach( $information as $post ):
setup_postdata( $post );
?>
<li>
<?php the_time(‘Y年n月j日’); ?> – <a href=”<?php the_permalink(); ?>”> <?php the_title(); ?></a>
</li>
<?php
endforeach;
wp_reset_postdata();
?>
</ul>
<?php else: ?>
<p>表示できる情報はありません。</p>
<?php endif; ?>