term_id;
    $myposts = get_posts(‘numberposts=’ .$num. ‘&category_name=’ .$cat);
    if ($myposts) {
        echo ‘Category: ‘ .get_the_category_by_ID($term_id). ‘‘;
        foreach($myposts as $post):
            setup_postdata($post);
            echo ‘

‘;
            echo ‘‘ .get_the_time(‘Y/n/j H:i:j’).’‘;
            echo ‘

‘. the_title(“”,””,false).’

‘;
            echo ‘

‘ .mb_substr( strip_tags( $post -> post_content ), 0, 32 ). ‘…

‘;
        endforeach;
    echo ‘

カテゴリの一覧 ≫

‘;
    } else {
    echo ‘

記事がありません。

‘;
    }
 
?>

LINEで送る
[`yahoo` not found]