global $post;
$tmp_post = $post;
$category_ids = array( '7' ); //カテゴリーID
$numberposts = '10'; //一覧表示したい記事数
foreach ( $category_ids as $category_id ) {
?>
$tmp_post = $post;
$category_ids = array( '7' ); //カテゴリーID
$numberposts = '10'; //一覧表示したい記事数
foreach ( $category_ids as $category_id ) {
?>
-
$postslist = get_posts( "category=$category_id&numberposts=$numberposts&order=DESC&orderby=date" );
- ID ); ?>>post_title; ?>
foreach ( $postslist as $post ) {
?>
}
?>
}
$post = $tmp_post;
?>