シラバス


最新シラバスはこちらへ

count;

while (have_posts()) : the_post();
$year = substr(get_the_title(),0,4);
show_title_list($year,$pg,$url);
the_content();
break;
endwhile;

wp_reset_query();

function show_title_list($year,$paged,$url) {
global $wp_query;

$max_page = $wp_query->max_num_pages;
if ($paged ==1 ){
echo ‘

‘.$year.’年度入学

‘;
if ($max_page != 1){
echo ‘

‘.($year – 1).’年度入学>>

‘;
}
echo “

“;
} else if ($paged < $max_page){ echo '

‘;
echo ‘

‘.$year.’年度入学

‘;
echo ‘

<<'.($year + 1).'年度入学

‘;
echo ‘

‘.($year – 1).’年度入学>>

‘;
echo “

“;
}else if ($paged >= $max_page){
echo ‘

‘;
echo ‘

‘.$year.’年度入学

‘;
echo ‘

<<'.($year + 1).'年度入学

‘;
echo “

“;
}
//echo $paged.’ / ‘.$max_page;
}
?>