-1, 'post_type' => array( 'post' ), 'caller_get_posts' => true ); /* Query posts from the database. */ $loop = new WP_Query( $args ); /* If posts were found, format them for output. */ if ( $loop->have_posts() ) { /* Loop through the individual posts. */ while ( $loop->have_posts() ) { /* Set up the post. */ $loop->the_post(); /* Get the post's time. We need this to compare it with the previous post date. */ $month = get_the_time( 'M' ); /* If the current date doesn't match this post's date, we need extra formatting. */ if ( $current_month !== $month ) { /* Close the list if this isn't the first post. */ if ( !empty( $current_month ) ) $archives .= ''; /* Set the current month. */ $current_month = $month; /* Add a heading with the date. */ $archives .= '

' . get_the_time( 'F' ) . '

'; /* Open a new unordered list. */ $archives .= '
    '; } /* Get the post's time. */ $time = '' . get_the_time( 'm.d.Y' ) . ''; /* Add the post list item to the formatted archives. */ $archives .= the_title( '
  • ', ' ' . $time . '
  • ', false ); } /* Close the final unordered list. */ $archives .= '
'; } /* Reset the query to the page's original query. */ wp_reset_query(); /* Return the formatted archives. */ echo $archives; ?> '', 'link_before' => '', 'link_after' => '' ) ); ?>
', '' ); ?>