How to list all posts from a certain month on archives? (3 posts)

  1. palmettostar
    Posted 3 years ago #

    If you visit: http://blissful-reviews.com/archives/ you'll see that I have my archives broken down by month and then by category. Currently, when you click on a month say for example July, it'll bring you to the page that lists ALL of the posts made in July in the format of: Date post: Title of Blog Post.

    This is how I want it to be displayed but I can't figure out how to display ALL the posts from a month on the same page. For example, July has 10 total blog posts so far but when you click on the July link only 7 of the blog posts are listed on the page and you have to click the Next page link to see the other 3 blog posts for that month. How do I change it to make all the posts show up on one page?

    Current coding is:

    <?php get_header(); ?>
    <div id="content">
    	<?php if (have_posts()) : ?>
    		<?php while (have_posts()) : the_post(); ?>
    			<b><?php the_time('F jS, Y') ?></b>: <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
    			<?php the_title(); ?></a>
    			<div class="filler"></div>
    		<?php endwhile; ?>
    			<div class="pages">			<?php next_posts_link('Older &raquo;','') ?> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <?php previous_posts_link('&laquo; Newer') ?>		</div>
    	<?php else : ?>
    		<h1>Not Found</h1>
    		<?php _e("Sorry, but you are looking for something that isn't here."); ?>
    	<?php endif; ?>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    For the page once you click on the monthly link you want to see. I also want to change the category archive pages to display the Date post: Title of Blog Post as well.

    Hopefully this makes sense! Thanks!

  2. graphical_force
    Posted 3 years ago #

    Have you tried to set the 'posts_per_page' => X; where x is a large number? Say a number that you would never exceed? There may be another way but I would imagine that would work. http://codex.wordpress.org/Template_Tags/get_posts

  3. palmettostar
    Posted 3 years ago #

    I haven't tried that yet - where would I add that to?

Topic Closed

This topic has been closed to new replies.

About this Topic