Ok. I've gotten something so far, that looks like this:
- August 2005
-
- Post 1 (in august)
- Post 2 (in august)
- Post 3 (in august)
- Post 4 (from july)
I've gotten to it by finding some Nicer Archives hack and modifying it a bit and made it a Plugin, the code of which can be found: http://pastebin.com/336747
And by adding the following in my date.php template (obviously after the if is_year part:
<?php
if ($posts) {
print '<ul>';
$prevDays = array();
foreach ($posts as $post) { start_wp();
$day = " "; //get_day_nice(the_time("d", false));
$year = get_archive_header('<li class="arch-year">', '</li>');
$output = '';
if ($prevDay != $day) {
if ($prevDay) { $output .= "</ul></li>"; }
$output .= $year;
// $output .= '<li class="arch-day">';
$output .= '<ul class="arch-post">';
}
print $output;
print '<li class="arch-post"><a href="'. get_permalink() .'" rel="bookmark" title="'; the_title(); print'">'; the_title(); print '</a></li>';
$prevDay = $day;
}
print "</ul></li>";
print '</ul>';
} else { // end foreach, end if any posts ?>
Nothing to show here.
<?php } ?>
So, any ideas from there? Or something totally different that'll get me what I want?
BTW: I have no idea where I got the code from... I'd love to give credit to whoever wrote it, but as I've been downloading things here and there... well, you get the point. So, if it's yours please do say.