デモ
http://kato.space/wp/wordpress/
上のデモで、2013年
http://kato.space/wp/wordpress/2013/
の2013をページに表示させたい。
問題は、page/2/ とか来た場合だが、
まずは確認
<h2><?php single_cat_title()?>の記事一覧</h2>
上記に、前に出したい
<h2><?php
echo get_the_date('Y');
single_cat_title();?>
の記事一覧</h2>
これだと現在の年も出るので、
<h2><?php
$now = date('Y');
if($now != get_the_date('Y')){echo get_the_date('Y').'年 ';}
//echo get_the_date('Y');
single_cat_title();?>
の記事一覧</h2>
とか