I have a blog that I've set to show 6 posts per page in my Settings panel. This is good when just browsing through the most recent entries, except when someone decides to select a monthly archive which happens to have more than 6 posts in it, I don't want it split into multiple pages.
Is there a way to have monthly archives display ALL posts in that month (including 6+) but at the same time not change the posts per page in regular blog browsing?
I'm assuming it's going to have something to do with conditional comments or WP queries... but I'm not that familiar with PHP so I don't know how to properly write whatever bit of code I'd need.
Right now the archive is called via a <select> menu with the following code:
<select name="archivemenu" onChange="document.location.href=this.options[this.selectedIndex].value;">
<option value=""><?php echo attribute_escape(__('Recent Posts')); ?></option>
<?php wp_get_archives('type=monthly&format=option&show_post_count=1'); ?>
</select>
The requested monthly archive is then displayed using the wordpress loop:
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
Archive: <?php the_time('F, Y'); ?>
<?php } ?>
<?php while (have_posts()) : the_post(); ?>
(POST TEMPLATE HERE)
<?php endwhile; ?>
URL of blog in question: http://www.beans-etc.com/fangirl/
I would really appreciate any help in how to write this bit of code or a link to maybe a site/tutorial that already has this...?