kullandığım kod
<?php
$myposts=get_posts(numberposts=-1&orderby=post_date&order=DESC');
foreach($myposts as $post) :
$year = mysql2date('Y-M', $post->post_date);
if($year != $previous_year){
echo '<li style="list-style:none;"><b>'.$year.'</b>';
}
echo '<li style="list-style:disc;margin-left:3em;"><b>';
the_time('j F');
echo '</b>: <a href="';the_permalink();echo '">';
the_title();echo '</a></li>';
if($year != $previous_year){echo '</li>';}
$previous_year = $year;
endforeach;
?>
</div>
</div>
<?php endwhile;else : ?>
<?php endif; ?>