Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Feb 8th, 2013  |  syntax: PHP  |  size: 0.40 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. $args = array('posts_per_page' => -1, 'orderby' => 'date' );
  2.  
  3. $myQuery = new WP_Query($args);
  4.  
  5. $date = '';
  6.  
  7. if ( $myQuery->have_posts() ) : while ( $myQuery->have_posts() ) : $myQuery->the_post();
  8.  
  9. if ( $date != get_the_date() ) {
  10.     echo $date;
  11.     echo '<hr />';
  12.     $date = get_the_date();
  13. }
  14.  
  15. the_title(); // or whatever you want here.
  16. echo '<br />';
  17.  
  18. endwhile; endif;
  19. wp_reset_postdata();