I am not sure if that code you posted is complete, but I keep getting a fatal error trying to replace:
<?php if($prev_year_posts->have_posts()) : ?>
<!-- <a href="<?php echo get_month_link($current_year - 1, ioya_format_month($current_month)); ?>" class="prevyear" rel="<?php echo ($current_year-1) . ioya_format_month($current_month) ?>"><</a> -->
<a href="<? echo get_site_url() .'/ioya/'.($current_year - 1) .'/'. ioya_format_month($current_month) ?>" class="prevyear" rel="<?php echo ($current_year-1) . ioya_format_month($current_month) ?>"><</a>
<?php endif; ?>
…with what you posted. Can you show exactly what I’m supposed to do? And how would you modify this to replace the code for next_year_posts as well?
Thanks in advance.