Archive listing of posts by publish year (multiple years)
My original impression was that I believe that what is happening is that the Loop doesn’t get incremented until the_post runs so your && $postyear == $i check is actually looking at the previous post not the current one. You are going to have to reorganize this to get that check after the Loop is … Read more