i want to group posts by month, but not have the month display every day.
here is the code for my blog page
<div class="entry-content">
<?php the_content(); ?></div>
<div class="journals">
<?php
$paged = ( get_query_var( 'paged' ) ) ? absint( get_query_var( 'paged' ) ) : 1;
$args = array(
'posts_per_page' => 10,
'paged' => $paged
);
$loop = new WP_Query( $args );
?>
<ul class="journal-post">
<?php while ( $loop->have_posts() ) : $loop->the_post();?>
<span class="post-month"><?php $my_date = the_date('F', '<h3>', '</h3>', FALSE); echo $my_date; ?></span>
<li>
<a href="<?php echo get_permalink(); ?>">
<h2><?php the_title();?></h2>
</a>
<h3><?php echo get_the_date( 'm-d-y'); ?></h3>
<span class="content"><?php the_excerpt(); ?></span>
<span class="tags"><?php the_tags('',' '); ?></span>
</li>
<?php endwhile;?>
</ul><!-- .journal -->
<div class="pagination">
<?php
$big = 999999999; // need an unlikely integer
echo paginate_links( array(
'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var('paged') ),
'end_size' => 0,
'mid_size' => 1,
'prev_text' => 'Previous',
'next_text' => 'Next',
'type' => 'list',
'total' => $loop->max_num_pages
) );
?>
</div><!-- .pagination -->
</div><!-- .journals -->
<?php endwhile; // end of the loop. ?>
and here is a screenshot of it
https://drive.google.com/file/d/0B99cydODex2QT3hxb0VXVGticDA/edit?usp=sharing
as you can tell, i have posts from different days this week, and the month is displayed each day. i just want the month to be displayed once.