正しいやり方なのかは分からないのですが、関数を作って解決しました。
<?php
/*==============================================
年別アーカイブ表示
==============================================*/
function archiveFunc($year){
if(have_posts()) : query_posts('posts_per_page=-1&year='.$year.'');
?>
<div class="archives">
<h2><?php print $year; ?></h2>
<dl>
<?php while(have_posts()) : the_post(); ?>
<dt><?php the_time('Y-m-d'); ?></dt>
<dd><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></dd>
<?php endwhile; ?>
</dl>
</div>
<?php endif; wp_reset_query(); ?>
<?php
}
?>
ありがとうございました。
lilyfanさん>
お返事遅れてすみませんでした。
無事問題解決しました!ありがとうございました☆