The page you are looking at now is at this URL: http://pastoid.com/q8
This paste was last updated on May 7, 2008 at 9:40 pm.
<?p-code if ( $posts) { $first = true; $lastdate = ''; foreach ($posts as $post) { $thisdate = $post->date; // only want the date, not the time! if ( $lastdate != $thisdate AND !$first ) { // end the existing div ?> </div> <?p-code } if ($first OR $lastdate != $thisdate) { // need a new div ?> <div class="date"><?p-code $first = false; } else { // do nothing, you don't need to do anything if the date matches } // display your post meta // display your post } else { // no posts } ?>
| Referring Domain | Hits |
|---|---|
| Unknown Referer | 127 |
| www.bing.com | 11 |
| search.live.com | 1 |
Tip: Use Pastoid to shorten URLs with this bookmarklet: Pastoid This