term_id;
$myposts = get_posts('numberposts=' .$num. '&category_name=' .$cat);
if ($myposts) {
echo '

' .get_the_category_by_ID($term_id). '

';
foreach($myposts as $post):
setup_postdata($post);
echo '

';
echo '

'. the_title("","",false).'

';
echo '

' .mb_substr( strip_tags( $post -> post_content ), 0, 100 ). '...

';
endforeach;
} else {
echo '

記事がありません。

';
}

?>
 
term_id;
$myposts = get_posts('numberposts=' .$num. '&category_name=' .$cat);
if ($myposts) {
echo '

' .get_the_category_by_ID($term_id). '

';
foreach($myposts as $post):
setup_postdata($post);
echo '

';
echo '

'. the_title("","",false).'

';
echo '

' .mb_substr( strip_tags( $post -> post_content ), 0, 100 ). '...

';
endforeach;
} else {
echo '

記事がありません。

';
}

?>
 
term_id;
$myposts = get_posts('numberposts=' .$num. '&category_name=' .$cat);
if ($myposts) {
echo '

' .get_the_category_by_ID($term_id). '

';
foreach($myposts as $post):
setup_postdata($post);
echo '

';
echo '

'. the_title("","",false).'

';
echo '

' .mb_substr( strip_tags( $post -> post_content ), 0, 100 ). '...

';
endforeach;
} else {
echo '

記事がありません。

';
}

?>
 
term_id;
$myposts = get_posts('numberposts=' .$num. '&category_name=' .$cat);
if ($myposts) {
echo '

' .get_the_category_by_ID($term_id). '

';
foreach($myposts as $post):
setup_postdata($post);
echo '

';
echo '

'. the_title("","",false).'

';
echo '

' .mb_substr( strip_tags( $post -> post_content ), 0, 100 ). '...

';
endforeach;
} else {
echo '

記事がありません。

';
}

?>
 
term_id;
$myposts = get_posts('numberposts=' .$num. '&category_name=' .$cat);
if ($myposts) {
echo '

' .get_the_category_by_ID($term_id). '

';
foreach($myposts as $post):
setup_postdata($post);
echo '

';
echo '

'. the_title("","",false).'

';
echo '

' .mb_substr( strip_tags( $post -> post_content ), 0, 100 ). '...

';
endforeach;
} else {
echo '

記事がありません。

';
}

?>
 
term_id;
$myposts = get_posts('numberposts=' .$num. '&category_name=' .$cat);
if ($myposts) {
echo '

' .get_the_category_by_ID($term_id). '

';
foreach($myposts as $post):
setup_postdata($post);
echo '

';
echo '

'. the_title("","",false).'

';
echo '

' .mb_substr( strip_tags( $post -> post_content ), 0, 100 ). '...

';
endforeach;
} else {
echo '

記事がありません。

';
}

?>
 
term_id;
$myposts = get_posts('numberposts=' .$num. '&category_name=' .$cat);
if ($myposts) {
echo '

' .get_the_category_by_ID($term_id). '

';
foreach($myposts as $post):
setup_postdata($post);
echo '

';
echo '

'. the_title("","",false).'

';
echo '

' .mb_substr( strip_tags( $post -> post_content ), 0, 100 ). '...

';
endforeach;
} else {
echo '

記事がありません。

';
}

?>
 
term_id;
$myposts = get_posts('numberposts=' .$num. '&category_name=' .$cat);
if ($myposts) {
echo '

' .get_the_category_by_ID($term_id). '

';
foreach($myposts as $post):
setup_postdata($post);
echo '

';
echo '

'. the_title("","",false).'

';
echo '

' .mb_substr( strip_tags( $post -> post_content ), 0, 100 ). '...

';
endforeach;
} else {
echo '

記事がありません。

';
}

?>
 
term_id;
$myposts = get_posts('numberposts=' .$num. '&category_name=' .$cat);
if ($myposts) {
echo '

' .get_the_category_by_ID($term_id). '

';
foreach($myposts as $post):
setup_postdata($post);
echo '

';
echo '

'. the_title("","",false).'

';
echo '

' .mb_substr( strip_tags( $post -> post_content ), 0, 100 ). '...

';
endforeach;
} else {
echo '

記事がありません。

';
}

?>