Currently my WordPress Archive page will show 10 posts and you will have to click the Older Posts link at the bottom to read more of the older posts. I need to modify the code so that when the Archive is clicked, it will show the full month's posts in one single page. <?php get_header(); ?> <div id="content"> <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <div class="entry"> <p class="entry-meta"> <?php the_content(); ?> <?php wp_link_pages(__('Pages:')); ?> <?php if(function_exists('the_ratings')) { the_ratings(); } ?> <p class="entry-meta"><span class="entry-date"><?php the_time('M d, Y'); ?></span><br /><span class="cat-links"><?php _e('Filed under:'); ?> <?php the_category(', ') ?> Tags: <?php if(function_exists("the_tags")) the_tags(' ', ', ', ''); ?></span><?php edit_post_link(__('Edit'), ' . ', ''); ?></p> </div> </div> <?php endwhile; ?> <div class="navigation"> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?> <?php next_posts_link(__('<span class="nav-previous alignleft">Older posts</span>')) ?> <?php previous_posts_link(__('<span class="nav-next alignright">Newer posts</span>')) ?> <?php } ?> </div> <div class="clear"></div> <?php else : ?> <div class="post"> <h2><?php _e('404 Error: Not Found'); ?></h2> <div class="entry"> <p><?php _e('The page you are looking for is not here.'); ?></p> </div> </div> <?php endif; ?> </div> </div> <?php get_sidebar(); ?> <?php get_footer(); ?> HTML: Thank you for reading.
Try inserting <?php $posts = query_posts($query_string . '&posts_per_page=-1'); ?> between <div id="content"> (line 2) and <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?> (line 3) The posts_per_page=-1 option sets it to show all pages. Hope that helps.
Thank you so much. I am so grateful for the help. I was googling for hours just to find a solution like this but you are better than Google. Thanks again.