<dl>
<?php
$newslist = get_posts( array(
//'category_name' => 'slug', //特定のカテゴリースラッグを指定
//'tag' => 'slug', //特定のタグスラッグを指定
//'post_type' => 'slug', //特定のカスタム投稿タイプスラッグを指定
//'taxonomy' =>'slug', //特定のカスタムタクソノミースラッグを指定
//'term' =>'slug', //特定のカスタムタクソノミー内のタームスラッグを指定
//'terms' => array( 'slug1', 'slug2' ), //特定のカスタムタクソノミー内のタームスラッグを複数指定
/*'tax_query' => array( //複数条件指定
'relation' => 'AND', //AND(かつ)かOR(または)
array(
'taxonomy' => 'color',
'field' => 'slug', //スラッグで指定
'terms' => 'red'
), array(
'taxonomy' => 'size',
'field' => 'slug',
'terms' => 'small'
)),*/
/*'meta_query' => array( array( //カスタムフィールド指定
'key' => 'keyname', //カスタムフィールドのキー名
'value' => 'value' //そのフィールドに入れられている値名
)),*/
//'orderby' => 'modified', //何順で並べるか
//'order' => 'ASC', //昇順にしたいとき
'posts_per_page' => 10 //取得記事件数
));
foreach( $newslist as $post ):
setup_postdata( $post );
?>
<dt> <?php the_time('Y年n月j日'); ?></dt>
<dd> <a href="<?php the_permalink(); ?>"> <?php the_title(); ?></a>
<?php global $more;
$more = false;
the_content('≫続きを読む');
?>
</dd>
<?php
endforeach;
wp_reset_postdata();
?>
</dl>