Thanks for reading firstly.
I am coding a site that requires 3 post titles for the current month and 3 post titles for the next month (upcoming events)!
I am struggling to get this to work. I am using wp_query to do this but I cannot get to work at all!
Any help would be appreciated :)
Just to expand on this as I might not have made myself clear!
I want to be able to show this months 3 events / posts and next months 3 events / posts - How would I do this? Please help as I am going slightly insane..
This is the code for the current month 3 blog title:
<p class="blue"><?php the_time('F') ?> <span class="small">Events</span></p> <?php if(have_posts()) : while(have_posts()) : the_post();?> <div id="date"> <span class="date"> <?php the_time('j') ?> </span> <br /> <span class="month"> <?php the_time('M') ?> </span> </div> <!-- end date -->
<a href="<?php the_permalink() ?>"><?php the_title(); ?></a> <hr> <?php endwhile; endif; wp_reset_query(); ?>