wordpress "older entries" not working

Discussion in 'WordPress' started by mezner, Jul 16, 2010.

  1. #1
    I tried adding a link to my archive page to just basically get older posts, but I have no idea why it's not working. I checked the wordpress codex, so I don't see why those wouldn't be working. Anyways here is my basic page...

    <?php
    /*
    Template Name: Archive
    */
    ?>
    <?php include 'header2.php'; ?>
    
    		<div id="container">
    			<?php $my_query = new WP_Query('category_name=&posts_per_page=10');
                        while ($my_query->have_posts()) : $my_query->the_post();
                        $do_not_duplicate = $post->ID;?>
                        
                        <div class="content2">
                    	    <h2><?php the_title(); ?></h2>
    				<h3><?php the_time('l, F jS, Y') ?></h3>
                       	    <p><?php the_content_limit(500, "Read More") ?><p>
                        </div>
    		<?php endwhile; ?>   
    		</div>           
    <?php get_footer(); ?>
    PHP:
     
    mezner, Jul 16, 2010 IP
  2. ilovefireflies

    ilovefireflies Peon

    Messages:
    238
    Likes Received:
    0
    Best Answers:
    2
    Trophy Points:
    0
    #2
    ok, so you dont need an archives file to show them. you can do this easily by putting up a search bar, you can also put up an archives widget and have them either listed by month and show the number of posts, or you can have them just listed by month. that is much easier than what you are trying to do.
     
    ilovefireflies, Jul 18, 2010 IP