• This page of archived posts won’t display more than 9 posts. Here is the code —

    <?php
    /*
    Template Name: Talks-Archives
    */
    ?>
    
    <?php get_header(); ?>
    
    <?php $today2 = (date('Y-m-d H:d:s')); ?>
    <?php $today = strtotime($today2); ?>
    
    	<?php query_posts('category_name=talks-seminars');
    
    	$wp_query->is_category = false;
    	$wp_query->is_archive = false;
    	$wp_query->is_home = false;
    	?>
    
            <div class="post" id="post-<?php the_ID(); ?>">
    
                   <div class="header">
                     <table width="100%"><tr><td>
                     <h2>Talks and Seminars</h2></td>
                     <td> <span class="date"><?php echo date('F jS, Y') ?></span>
                     </td></tr></table>
                  </div>
    
    	<ul style="padding-left: 10px">
                   	<h3>Archived Talks &amp; Seminars</h3><br />
    
    	<?php while (have_posts()) : the_post(); ?>
                    <?php $posttime = strtotime($post->post_date); ?>
                    <?php $md_posttime = date("dmy",$posttime); ?>
    
                    <?php if ($posttime < $today) { ?>
    
    		<div class="entry" style="padding-bottom:0;margin-bottom:0" id="post-<?php the_ID(); ?>">
    
                      <?php if ($md_posttime == $old_posttime) { ?>
    		   <p style="margin-left:26px; margin-top:-12px; margin-bottom:7px"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></p>
    
    		<?php } else { ?>
    
    		<li><strong style="font-style:italic;font-size:11px"><?php the_date(); ?></strong><br /><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
    	     <?php } ?>
    		</div>
                     <?php $old_posttime = date("dmy",$posttime); ?>
    	<?php } ?>	
    
    	<?php endwhile; ?>
    		</ul>

    It makes no sense to me that it won’t display beyond 9 posts, any help greatly appreciated! thanks! vicki

Viewing 1 replies (of 1 total)
  • For proper pagination with 17 posts per page:
    <?php
    $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
    query_posts(‘category_name=talks-seminars&showposts=17&paged=’ . $paged);
    ?>

Viewing 1 replies (of 1 total)
  • The topic ‘won’t display more than 9 posts’ is closed to new replies.