how is this done with a regular loop? i did this:
<?php /* Start the loop */ if ( have_posts() ) : while ( have_posts() ): the_post(); ?>
<?php
$prev_date = null;
$posts = get_posts(array('orderby'=>'post_date'));
foreach( $posts as $post ):
$date = date( "F j, Y" , strtotime( $post->post_date ) );
if( $date != $prev_date ): ?>
<h3><?php echo $date ?></h3>
<?php $prev_date = $date; endif; ?>
<div class="<?php if ( is_home() or is_front_page() ) { ?>hentry<?php } ?>" id="post-<?php the_ID(); ?>">
<div class="entry-head">
<h3 class="entry-title">
<a rel="bookmark" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</h3>
<?php if ( comments_open() ) : comments_popup_link( '<span>0</span>', '<span>1</span>', '<span>%</span>', 'commentslink', ''); endif; ?>
<span class="entry-date">Published <abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php if (function_exists('time_since')) {
echo time_since(abs(strtotime($post->post_date_gmt . " GMT")), time()) . " ago";
} else {
the_time('H:i:s a'); ?> on <?php the_time('F j, Y');
} ?></abbr></span>
</div>
<div class="entry-meta">
<span class="entry-author">
<address class="vcard author">
<span class="fn"><?php the_author(); ?></a>
</address>
</span>
<span class="entry-categories"><?php the_category(', '); ?></span>
</div>
<div class="entry-content"><?php the_content(); ?></div>
</div>
<?php endforeach; ?>
<?php endwhile; /* End The Loop */ else:
include("fourohfour.php");
endif; ?>
but the loop repeats 3 times? what happened?
a bit off-topic, but how about changing it to “today” and “yesterday” if the posts below were actually today or yesterday?